| 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 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 #endif | 188 #endif |
| 189 | 189 |
| 190 void SystemTrayNotifier::NotifyAccessibilityModeChanged( | 190 void SystemTrayNotifier::NotifyAccessibilityModeChanged( |
| 191 ui::AccessibilityNotificationVisibility notify) { | 191 ui::AccessibilityNotificationVisibility notify) { |
| 192 FOR_EACH_OBSERVER( | 192 FOR_EACH_OBSERVER( |
| 193 AccessibilityObserver, | 193 AccessibilityObserver, |
| 194 accessibility_observers_, | 194 accessibility_observers_, |
| 195 OnAccessibilityModeChanged(notify)); | 195 OnAccessibilityModeChanged(notify)); |
| 196 } | 196 } |
| 197 | 197 |
| 198 void SystemTrayNotifier::NotifyAudioOutputVolumeChanged() { | 198 void SystemTrayNotifier::NotifyAudioOutputVolumeChanged(uint64 node_id, |
| 199 FOR_EACH_OBSERVER( | 199 double volume) { |
| 200 AudioObserver, | 200 FOR_EACH_OBSERVER(AudioObserver, audio_observers_, |
| 201 audio_observers_, | 201 OnOutputNodeVolumeChanged(node_id, volume)); |
| 202 OnOutputVolumeChanged()); | |
| 203 } | 202 } |
| 204 | 203 |
| 205 void SystemTrayNotifier::NotifyAudioOutputMuteChanged() { | 204 void SystemTrayNotifier::NotifyAudioOutputMuteChanged() { |
| 206 FOR_EACH_OBSERVER( | 205 FOR_EACH_OBSERVER( |
| 207 AudioObserver, | 206 AudioObserver, |
| 208 audio_observers_, | 207 audio_observers_, |
| 209 OnOutputMuteChanged()); | 208 OnOutputMuteChanged()); |
| 210 } | 209 } |
| 211 | 210 |
| 212 void SystemTrayNotifier::NotifyAudioNodesChanged() { | 211 void SystemTrayNotifier::NotifyAudioNodesChanged() { |
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 388 void SystemTrayNotifier::NotifyVirtualKeyboardSuppressionChanged( | 387 void SystemTrayNotifier::NotifyVirtualKeyboardSuppressionChanged( |
| 389 bool suppressed) { | 388 bool suppressed) { |
| 390 FOR_EACH_OBSERVER(VirtualKeyboardObserver, | 389 FOR_EACH_OBSERVER(VirtualKeyboardObserver, |
| 391 virtual_keyboard_observers_, | 390 virtual_keyboard_observers_, |
| 392 OnKeyboardSuppressionChanged(suppressed)); | 391 OnKeyboardSuppressionChanged(suppressed)); |
| 393 } | 392 } |
| 394 | 393 |
| 395 #endif // OS_CHROMEOS | 394 #endif // OS_CHROMEOS |
| 396 | 395 |
| 397 } // namespace ash | 396 } // namespace ash |
| OLD | NEW |