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_SYSTEM_AUDIO_TRAY_AUDIO_DELEGATE_H_ | 5 #ifndef ASH_SYSTEM_AUDIO_TRAY_AUDIO_DELEGATE_H_ |
6 #define ASH_SYSTEM_AUDIO_TRAY_AUDIO_DELEGATE_H_ | 6 #define ASH_SYSTEM_AUDIO_TRAY_AUDIO_DELEGATE_H_ |
7 | 7 |
8 namespace ash { | 8 namespace ash { |
9 namespace system { | 9 namespace system { |
10 | 10 |
(...skipping 29 matching lines...) Expand all Loading... |
40 virtual bool IsOutputAudioMuted() = 0; | 40 virtual bool IsOutputAudioMuted() = 0; |
41 | 41 |
42 // Sets the mute state of the output device. | 42 // Sets the mute state of the output device. |
43 virtual void SetOutputAudioIsMuted(bool is_muted) = 0; | 43 virtual void SetOutputAudioIsMuted(bool is_muted) = 0; |
44 | 44 |
45 // Sets the volume level of the output device in the range 0%-100% | 45 // Sets the volume level of the output device in the range 0%-100% |
46 virtual void SetOutputVolumeLevel(int level) = 0; | 46 virtual void SetOutputVolumeLevel(int level) = 0; |
47 | 47 |
48 // Sets the internal speaker's channel mode. | 48 // Sets the internal speaker's channel mode. |
49 virtual void SetInternalSpeakerChannelMode(AudioChannelMode mode) = 0; | 49 virtual void SetInternalSpeakerChannelMode(AudioChannelMode mode) = 0; |
| 50 |
| 51 // If necessary, sets the starting point for re-discovering the active HDMI |
| 52 // output device caused by device entering/exiting docking mode, HDMI display |
| 53 // changing resolution, or chromeos device suspend/resume. If |
| 54 // |force_rediscovering| is true, it will force to set the starting point for |
| 55 // re-discovering the active HDMI output device again if it has been in the |
| 56 // middle of rediscovering the HDMI active output device. |
| 57 virtual void SetActiveHDMIOutoutRediscoveringIfNecessary( |
| 58 bool force_rediscovering) = 0; |
50 }; | 59 }; |
51 | 60 |
52 } // namespace system | 61 } // namespace system |
53 } // namespace ash | 62 } // namespace ash |
54 | 63 |
55 #endif // ASH_SYSTEM_AUDIO_TRAY_AUDIO_DELEGATE_H_ | 64 #endif // ASH_SYSTEM_AUDIO_TRAY_AUDIO_DELEGATE_H_ |
OLD | NEW |