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

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

Issue 170843009: Revert 251959 "Refactor the TrayAudio code so that it can be use..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: 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
Index: trunk/src/ash/system/tray/system_tray_notifier.cc
===================================================================
--- trunk/src/ash/system/tray/system_tray_notifier.cc (revision 252005)
+++ trunk/src/ash/system/tray/system_tray_notifier.cc (working copy)
@@ -29,14 +29,6 @@
accessibility_observers_.RemoveObserver(observer);
}
-void SystemTrayNotifier::AddAudioObserver(AudioObserver* observer) {
- audio_observers_.AddObserver(observer);
-}
-
-void SystemTrayNotifier::RemoveAudioObserver(AudioObserver* observer) {
- audio_observers_.RemoveObserver(observer);
-}
-
void SystemTrayNotifier::AddBluetoothObserver(BluetoothObserver* observer) {
bluetooth_observers_.AddObserver(observer);
}
@@ -178,41 +170,6 @@
OnAccessibilityModeChanged(notify));
}
-void SystemTrayNotifier::NotifyAudioOutputVolumeChanged() {
- FOR_EACH_OBSERVER(
- AudioObserver,
- audio_observers_,
- OnOutputVolumeChanged());
-}
-
-void SystemTrayNotifier::NotifyAudioOutputMuteChanged() {
- FOR_EACH_OBSERVER(
- AudioObserver,
- audio_observers_,
- OnOutputMuteChanged());
-}
-
-void SystemTrayNotifier::NotifyAudioNodesChanged() {
- FOR_EACH_OBSERVER(
- AudioObserver,
- audio_observers_,
- OnAudioNodesChanged());
-}
-
-void SystemTrayNotifier::NotifyAudioActiveOutputNodeChanged() {
- FOR_EACH_OBSERVER(
- AudioObserver,
- audio_observers_,
- OnActiveOutputNodeChanged());
-}
-
-void SystemTrayNotifier::NotifyAudioActiveInputNodeChanged() {
- FOR_EACH_OBSERVER(
- AudioObserver,
- audio_observers_,
- OnActiveInputNodeChanged());
-}
-
void SystemTrayNotifier::NotifyTracingModeChanged(bool value) {
FOR_EACH_OBSERVER(
TracingObserver,
« no previous file with comments | « trunk/src/ash/system/tray/system_tray_notifier.h ('k') | trunk/src/chrome/browser/ui/ash/system_tray_delegate_chromeos.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698