| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #ifndef ASH_COMMON_SYSTEM_CHROMEOS_AUDIO_TRAY_AUDIO_DELEGATE_H_ | 5 #ifndef ASH_COMMON_SYSTEM_CHROMEOS_AUDIO_TRAY_AUDIO_DELEGATE_H_ |
| 6 #define ASH_COMMON_SYSTEM_CHROMEOS_AUDIO_TRAY_AUDIO_DELEGATE_H_ | 6 #define ASH_COMMON_SYSTEM_CHROMEOS_AUDIO_TRAY_AUDIO_DELEGATE_H_ |
| 7 | 7 |
| 8 namespace gfx { | 8 namespace gfx { |
| 9 struct VectorIcon; | 9 struct VectorIcon; |
| 10 } | 10 } |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 virtual ~TrayAudioDelegate() {} | 23 virtual ~TrayAudioDelegate() {} |
| 24 | 24 |
| 25 // Sets the volume level of the output device to the minimum level which is | 25 // Sets the volume level of the output device to the minimum level which is |
| 26 // deemed to be audible. | 26 // deemed to be audible. |
| 27 virtual void AdjustOutputVolumeToAudibleLevel() = 0; | 27 virtual void AdjustOutputVolumeToAudibleLevel() = 0; |
| 28 | 28 |
| 29 // Gets the default level in the range 0%-100% at which the output device | 29 // Gets the default level in the range 0%-100% at which the output device |
| 30 // should be muted. | 30 // should be muted. |
| 31 virtual int GetOutputDefaultVolumeMuteLevel() = 0; | 31 virtual int GetOutputDefaultVolumeMuteLevel() = 0; |
| 32 | 32 |
| 33 // Gets the non-MD icon to use for the active output device. | |
| 34 // TODO(mohsen): Remove this once material design is enabled by default. See | |
| 35 // https://crbug.com/614453. | |
| 36 virtual int GetActiveOutputDeviceIconId() = 0; | |
| 37 | |
| 38 // Gets the MD icon to use for the active output device. | 33 // Gets the MD icon to use for the active output device. |
| 39 virtual const gfx::VectorIcon& GetActiveOutputDeviceVectorIcon() = 0; | 34 virtual const gfx::VectorIcon& GetActiveOutputDeviceVectorIcon() = 0; |
| 40 | 35 |
| 41 // Returns the volume level of the output device in the range 0%-100%. | 36 // Returns the volume level of the output device in the range 0%-100%. |
| 42 virtual int GetOutputVolumeLevel() = 0; | 37 virtual int GetOutputVolumeLevel() = 0; |
| 43 | 38 |
| 44 // Returns true if the device has alternative inputs or outputs. | 39 // Returns true if the device has alternative inputs or outputs. |
| 45 virtual bool HasAlternativeSources() = 0; | 40 virtual bool HasAlternativeSources() = 0; |
| 46 | 41 |
| 47 // Returns whether the output volume is muted. | 42 // Returns whether the output volume is muted. |
| (...skipping 15 matching lines...) Expand all Loading... |
| 63 // re-discovering the active HDMI output device again if it has been in the | 58 // re-discovering the active HDMI output device again if it has been in the |
| 64 // middle of rediscovering the HDMI active output device. | 59 // middle of rediscovering the HDMI active output device. |
| 65 virtual void SetActiveHDMIOutoutRediscoveringIfNecessary( | 60 virtual void SetActiveHDMIOutoutRediscoveringIfNecessary( |
| 66 bool force_rediscovering) = 0; | 61 bool force_rediscovering) = 0; |
| 67 }; | 62 }; |
| 68 | 63 |
| 69 } // namespace system | 64 } // namespace system |
| 70 } // namespace ash | 65 } // namespace ash |
| 71 | 66 |
| 72 #endif // ASH_COMMON_SYSTEM_CHROMEOS_AUDIO_TRAY_AUDIO_DELEGATE_H_ | 67 #endif // ASH_COMMON_SYSTEM_CHROMEOS_AUDIO_TRAY_AUDIO_DELEGATE_H_ |
| OLD | NEW |