| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include "ash/system/tray/system_tray_notifier.h" | 5 #include "ash/system/tray/system_tray_notifier.h" |
| 6 | 6 |
| 7 namespace ash { | 7 namespace ash { |
| 8 | 8 |
| 9 SystemTrayNotifier::SystemTrayNotifier() { | 9 SystemTrayNotifier::SystemTrayNotifier() { |
| 10 } | 10 } |
| (...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 194 accessibility_observers_, | 194 accessibility_observers_, |
| 195 OnAccessibilityModeChanged(notify)); | 195 OnAccessibilityModeChanged(notify)); |
| 196 } | 196 } |
| 197 | 197 |
| 198 void SystemTrayNotifier::NotifyAudioOutputVolumeChanged(uint64_t node_id, | 198 void SystemTrayNotifier::NotifyAudioOutputVolumeChanged(uint64_t node_id, |
| 199 double volume) { | 199 double volume) { |
| 200 FOR_EACH_OBSERVER(AudioObserver, audio_observers_, | 200 FOR_EACH_OBSERVER(AudioObserver, audio_observers_, |
| 201 OnOutputNodeVolumeChanged(node_id, volume)); | 201 OnOutputNodeVolumeChanged(node_id, volume)); |
| 202 } | 202 } |
| 203 | 203 |
| 204 void SystemTrayNotifier::NotifyAudioOutputMuteChanged(bool mute_on) { | 204 void SystemTrayNotifier::NotifyAudioOutputMuteChanged(bool mute_on, |
| 205 bool system_adjust) { |
| 205 FOR_EACH_OBSERVER(AudioObserver, audio_observers_, | 206 FOR_EACH_OBSERVER(AudioObserver, audio_observers_, |
| 206 OnOutputMuteChanged(mute_on)); | 207 OnOutputMuteChanged(mute_on, system_adjust)); |
| 207 } | 208 } |
| 208 | 209 |
| 209 void SystemTrayNotifier::NotifyAudioNodesChanged() { | 210 void SystemTrayNotifier::NotifyAudioNodesChanged() { |
| 210 FOR_EACH_OBSERVER( | 211 FOR_EACH_OBSERVER( |
| 211 AudioObserver, | 212 AudioObserver, |
| 212 audio_observers_, | 213 audio_observers_, |
| 213 OnAudioNodesChanged()); | 214 OnAudioNodesChanged()); |
| 214 } | 215 } |
| 215 | 216 |
| 216 void SystemTrayNotifier::NotifyAudioActiveOutputNodeChanged() { | 217 void SystemTrayNotifier::NotifyAudioActiveOutputNodeChanged() { |
| (...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 385 void SystemTrayNotifier::NotifyVirtualKeyboardSuppressionChanged( | 386 void SystemTrayNotifier::NotifyVirtualKeyboardSuppressionChanged( |
| 386 bool suppressed) { | 387 bool suppressed) { |
| 387 FOR_EACH_OBSERVER(VirtualKeyboardObserver, | 388 FOR_EACH_OBSERVER(VirtualKeyboardObserver, |
| 388 virtual_keyboard_observers_, | 389 virtual_keyboard_observers_, |
| 389 OnKeyboardSuppressionChanged(suppressed)); | 390 OnKeyboardSuppressionChanged(suppressed)); |
| 390 } | 391 } |
| 391 | 392 |
| 392 #endif // OS_CHROMEOS | 393 #endif // OS_CHROMEOS |
| 393 | 394 |
| 394 } // namespace ash | 395 } // namespace ash |
| OLD | NEW |