Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(25)

Side by Side Diff: ash/system/audio/audio_observer.h

Issue 1268593002: Fix the UI issue for showing output muted in ash tray after the device wakes up with hdmi output re… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2454
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | ash/system/audio/tray_audio.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_AUDIO_OBSERVER_H_ 5 #ifndef ASH_SYSTEM_AUDIO_AUDIO_OBSERVER_H_
6 #define ASH_SYSTEM_AUDIO_AUDIO_OBSERVER_H_ 6 #define ASH_SYSTEM_AUDIO_AUDIO_OBSERVER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 namespace ash { 10 namespace ash {
11 11
12 class AudioObserver { 12 class AudioObserver {
13 public: 13 public:
14 virtual ~AudioObserver() {} 14 virtual ~AudioObserver() {}
15 15
16 // Called when an active output device's volume changed. 16 // Called when an active output device's volume changed.
17 // |node_id|: id of the active node. 17 // |node_id|: id of the active node.
18 // |volume|: volume as a percentage, 0.0 -- 100.0. 18 // |volume|: volume as a percentage, 0.0 -- 100.0.
19 virtual void OnOutputNodeVolumeChanged(uint64_t node_id, double volume) = 0; 19 virtual void OnOutputNodeVolumeChanged(uint64_t node_id, double volume) = 0;
20 20
21 // Called when output mute state changed. 21 // Called when output mute state changed.
22 virtual void OnOutputMuteChanged(bool mute_on) = 0; 22 // |mute_on|: True if output is muted.
23 // |system_adjust|: True if the mute state is adjusted by the system
24 // automatically, UI should be consistent with the system's mute state,
25 // but it should not be too loud, e.g., the volume pop up window should not
26 // be triggered.
27 virtual void OnOutputMuteChanged(bool mute_on, bool system_adjust) = 0;
23 28
24 // Called when audio nodes changed. 29 // Called when audio nodes changed.
25 virtual void OnAudioNodesChanged() = 0; 30 virtual void OnAudioNodesChanged() = 0;
26 31
27 // Called when active audio output node changed. 32 // Called when active audio output node changed.
28 virtual void OnActiveOutputNodeChanged() = 0; 33 virtual void OnActiveOutputNodeChanged() = 0;
29 34
30 // Called when active audio input node changed. 35 // Called when active audio input node changed.
31 virtual void OnActiveInputNodeChanged() = 0; 36 virtual void OnActiveInputNodeChanged() = 0;
32 }; 37 };
33 38
34 } // namespace ash 39 } // namespace ash
35 40
36 #endif // ASH_SYSTEM_AUDIO_AUDIO_OBSERVER_H_ 41 #endif // ASH_SYSTEM_AUDIO_AUDIO_OBSERVER_H_
OLDNEW
« no previous file with comments | « no previous file | ash/system/audio/tray_audio.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698