| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // The <code>chrome.audio</code> API is provided to allow users to | 5 // The <code>chrome.audio</code> API is provided to allow users to |
| 6 // get information about and control the audio devices attached to the | 6 // get information about and control the audio devices attached to the |
| 7 // system. This API is currently only implemented for ChromeOS. | 7 // system. This API is currently only implemented for ChromeOS. |
| 8 namespace audio { | 8 [use_movable_types=true] namespace audio { |
| 9 | 9 |
| 10 dictionary OutputDeviceInfo { | 10 dictionary OutputDeviceInfo { |
| 11 // The unique identifier of the audio output device. | 11 // The unique identifier of the audio output device. |
| 12 DOMString id; | 12 DOMString id; |
| 13 // The user-friendly name (e.g. "Bose Amplifier"). | 13 // The user-friendly name (e.g. "Bose Amplifier"). |
| 14 DOMString name; | 14 DOMString name; |
| 15 // True if this is the current active device. | 15 // True if this is the current active device. |
| 16 boolean isActive; | 16 boolean isActive; |
| 17 // True if this is muted. | 17 // True if this is muted. |
| 18 boolean isMuted; | 18 boolean isMuted; |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 // |isInput|: true indicating audio input; false indicating audio output. | 106 // |isInput|: true indicating audio input; false indicating audio output. |
| 107 // |isMuted|: new value of mute state. | 107 // |isMuted|: new value of mute state. |
| 108 static void OnMuteChanged(boolean isInput, boolean isMuted); | 108 static void OnMuteChanged(boolean isInput, boolean isMuted); |
| 109 | 109 |
| 110 // Fired when audio devices change, either new devices being added, or | 110 // Fired when audio devices change, either new devices being added, or |
| 111 // existing devices being removed. | 111 // existing devices being removed. |
| 112 // |devices|: List of all present audio devices after the change. | 112 // |devices|: List of all present audio devices after the change. |
| 113 static void OnDevicesChanged(AudioDeviceInfo[] devices); | 113 static void OnDevicesChanged(AudioDeviceInfo[] devices); |
| 114 }; | 114 }; |
| 115 }; | 115 }; |
| OLD | NEW |