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

Unified Diff: ash/system/audio/audio_observer.h

Issue 163953007: Refactor the TrayAudio code so that it can be used by other platforms. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix memory leak by using scoped_ptr in TrayAudio Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/ash_switches.cc ('k') | ash/system/audio/tray_audio.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/audio/audio_observer.h
diff --git a/ash/system/audio/audio_observer.h b/ash/system/audio/audio_observer.h
new file mode 100644
index 0000000000000000000000000000000000000000..602322678f73db59bd5c6341460a730d581a7e41
--- /dev/null
+++ b/ash/system/audio/audio_observer.h
@@ -0,0 +1,32 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef ASH_SYSTEM_AUDIO_AUDIO_OBSERVER_H_
+#define ASH_SYSTEM_AUDIO_AUDIO_OBSERVER_H_
+
+namespace ash {
+
+class AudioObserver {
+ public:
+ virtual ~AudioObserver() {}
+
+ // Called when output volume changed.
+ virtual void OnOutputVolumeChanged() = 0;
+
+ // Called when output mute state changed.
+ virtual void OnOutputMuteChanged() = 0;
+
+ // Called when audio nodes changed.
+ virtual void OnAudioNodesChanged() = 0;
+
+ // Called when active audio output node changed.
+ virtual void OnActiveOutputNodeChanged() = 0;
+
+ // Called when active audio input node changed.
+ virtual void OnActiveInputNodeChanged() = 0;
+};
+
+} // namespace ash
+
+#endif // ASH_SYSTEM_AUDIO_AUDIO_OBSERVER_H_
« no previous file with comments | « ash/ash_switches.cc ('k') | ash/system/audio/tray_audio.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698