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

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

Issue 945103002: Add a new audio extension event OnLevelChanged. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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') | ash/system/audio/tray_audio.cc » ('J')
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 "base/basictypes.h"
9
8 namespace ash { 10 namespace ash {
9 11
10 class AudioObserver { 12 class AudioObserver {
11 public: 13 public:
12 virtual ~AudioObserver() {} 14 virtual ~AudioObserver() {}
13 15
14 // Called when output volume changed. 16 // Called when output volume changed.
15 virtual void OnOutputVolumeChanged() = 0; 17 virtual void OnOutputNodeVolumeChanged(uint64 node_id, double volume) = 0;
16 18
17 // Called when output mute state changed. 19 // Called when output mute state changed.
18 virtual void OnOutputMuteChanged() = 0; 20 virtual void OnOutputMuteChanged() = 0;
19 21
20 // Called when audio nodes changed. 22 // Called when audio nodes changed.
21 virtual void OnAudioNodesChanged() = 0; 23 virtual void OnAudioNodesChanged() = 0;
22 24
23 // Called when active audio output node changed. 25 // Called when active audio output node changed.
24 virtual void OnActiveOutputNodeChanged() = 0; 26 virtual void OnActiveOutputNodeChanged() = 0;
25 27
26 // Called when active audio input node changed. 28 // Called when active audio input node changed.
27 virtual void OnActiveInputNodeChanged() = 0; 29 virtual void OnActiveInputNodeChanged() = 0;
28 }; 30 };
29 31
30 } // namespace ash 32 } // namespace ash
31 33
32 #endif // ASH_SYSTEM_AUDIO_AUDIO_OBSERVER_H_ 34 #endif // ASH_SYSTEM_AUDIO_AUDIO_OBSERVER_H_
OLDNEW
« no previous file with comments | « no previous file | ash/system/audio/tray_audio.h » ('j') | ash/system/audio/tray_audio.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698