| 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 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 last_window_closed_observers_.AddObserver(observer); | 171 last_window_closed_observers_.AddObserver(observer); |
| 172 } | 172 } |
| 173 | 173 |
| 174 void SystemTrayNotifier::RemoveLastWindowClosedObserver( | 174 void SystemTrayNotifier::RemoveLastWindowClosedObserver( |
| 175 LastWindowClosedObserver* observer) { | 175 LastWindowClosedObserver* observer) { |
| 176 last_window_closed_observers_.RemoveObserver(observer); | 176 last_window_closed_observers_.RemoveObserver(observer); |
| 177 } | 177 } |
| 178 #endif | 178 #endif |
| 179 | 179 |
| 180 void SystemTrayNotifier::NotifyAccessibilityModeChanged( | 180 void SystemTrayNotifier::NotifyAccessibilityModeChanged( |
| 181 AccessibilityNotificationVisibility notify) { | 181 ui::AccessibilityNotificationVisibility notify) { |
| 182 FOR_EACH_OBSERVER( | 182 FOR_EACH_OBSERVER( |
| 183 AccessibilityObserver, | 183 AccessibilityObserver, |
| 184 accessibility_observers_, | 184 accessibility_observers_, |
| 185 OnAccessibilityModeChanged(notify)); | 185 OnAccessibilityModeChanged(notify)); |
| 186 } | 186 } |
| 187 | 187 |
| 188 void SystemTrayNotifier::NotifyAudioOutputVolumeChanged() { | 188 void SystemTrayNotifier::NotifyAudioOutputVolumeChanged() { |
| 189 FOR_EACH_OBSERVER( | 189 FOR_EACH_OBSERVER( |
| 190 AudioObserver, | 190 AudioObserver, |
| 191 audio_observers_, | 191 audio_observers_, |
| (...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 371 | 371 |
| 372 void SystemTrayNotifier::NotifyLastWindowClosed() { | 372 void SystemTrayNotifier::NotifyLastWindowClosed() { |
| 373 FOR_EACH_OBSERVER(LastWindowClosedObserver, | 373 FOR_EACH_OBSERVER(LastWindowClosedObserver, |
| 374 last_window_closed_observers_, | 374 last_window_closed_observers_, |
| 375 OnLastWindowClosed()); | 375 OnLastWindowClosed()); |
| 376 } | 376 } |
| 377 | 377 |
| 378 #endif // OS_CHROMEOS | 378 #endif // OS_CHROMEOS |
| 379 | 379 |
| 380 } // namespace ash | 380 } // namespace ash |
| OLD | NEW |