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

Unified Diff: ash/common/system/tray/wm_system_tray_notifier.h

Issue 2084533008: mash: Migrate tray audio and deps to common. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Sync and rebase. Created 4 years, 6 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/common/system/audio/volume_view.cc ('k') | ash/common/system/tray/wm_system_tray_notifier.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/system/tray/wm_system_tray_notifier.h
diff --git a/ash/common/system/tray/wm_system_tray_notifier.h b/ash/common/system/tray/wm_system_tray_notifier.h
index f6d8c7b52791653da9829e7e37dead400afe9c64..84e081f3bd401331691863497291ec5eacf2bfb5 100644
--- a/ash/common/system/tray/wm_system_tray_notifier.h
+++ b/ash/common/system/tray/wm_system_tray_notifier.h
@@ -14,6 +14,7 @@
namespace ash {
class AccessibilityObserver;
+class AudioObserver;
class ClockObserver;
class IMEObserver;
struct UpdateInfo;
@@ -39,6 +40,15 @@ class ASH_EXPORT WmSystemTrayNotifier {
void NotifyAccessibilityModeChanged(
AccessibilityNotificationVisibility notify);
+ // Audio.
+ void AddAudioObserver(AudioObserver* observer);
+ void RemoveAudioObserver(AudioObserver* observer);
+ void NotifyAudioOutputVolumeChanged(uint64_t node_id, double volume);
+ void NotifyAudioOutputMuteChanged(bool mute_on, bool system_adjust);
+ void NotifyAudioNodesChanged();
+ void NotifyAudioActiveOutputNodeChanged();
+ void NotifyAudioActiveInputNodeChanged();
+
// Date and time.
void AddClockObserver(ClockObserver* observer);
void RemoveClockObserver(ClockObserver* observer);
@@ -75,6 +85,7 @@ class ASH_EXPORT WmSystemTrayNotifier {
private:
base::ObserverList<AccessibilityObserver> accessibility_observers_;
+ base::ObserverList<AudioObserver> audio_observers_;
base::ObserverList<ClockObserver> clock_observers_;
base::ObserverList<IMEObserver> ime_observers_;
base::ObserverList<LocaleObserver> locale_observers_;
« no previous file with comments | « ash/common/system/audio/volume_view.cc ('k') | ash/common/system/tray/wm_system_tray_notifier.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698