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

Unified Diff: ash/system/tray/system_tray_notifier.cc

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 side-by-side diff with in-line comments
Download patch
Index: ash/system/tray/system_tray_notifier.cc
diff --git a/ash/system/tray/system_tray_notifier.cc b/ash/system/tray/system_tray_notifier.cc
index 81ed05f53b38a34ad8706ef3040f2fb23825c57a..b3a01dd815eabf2826c68b27ade6bb574144fc6d 100644
--- a/ash/system/tray/system_tray_notifier.cc
+++ b/ash/system/tray/system_tray_notifier.cc
@@ -195,11 +195,10 @@ void SystemTrayNotifier::NotifyAccessibilityModeChanged(
OnAccessibilityModeChanged(notify));
}
-void SystemTrayNotifier::NotifyAudioOutputVolumeChanged() {
- FOR_EACH_OBSERVER(
- AudioObserver,
- audio_observers_,
- OnOutputVolumeChanged());
+void SystemTrayNotifier::NotifyAudioOutputVolumeChanged(uint64 node_id,
+ double volume) {
+ FOR_EACH_OBSERVER(AudioObserver, audio_observers_,
+ OnOutputNodeVolumeChanged(node_id, volume));
}
void SystemTrayNotifier::NotifyAudioOutputMuteChanged() {

Powered by Google App Engine
This is Rietveld 408576698