| 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 #if defined(OS_CHROMEOS) | 7 #if defined(OS_CHROMEOS) |
| 8 #include "ash/system/chromeos/network/network_state_notifier.h" | 8 #include "ash/system/chromeos/network/network_state_notifier.h" |
| 9 #endif | 9 #endif |
| 10 | 10 |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 last_window_closed_observers_.AddObserver(observer); | 178 last_window_closed_observers_.AddObserver(observer); |
| 179 } | 179 } |
| 180 | 180 |
| 181 void SystemTrayNotifier::RemoveLastWindowClosedObserver( | 181 void SystemTrayNotifier::RemoveLastWindowClosedObserver( |
| 182 LastWindowClosedObserver* observer) { | 182 LastWindowClosedObserver* observer) { |
| 183 last_window_closed_observers_.RemoveObserver(observer); | 183 last_window_closed_observers_.RemoveObserver(observer); |
| 184 } | 184 } |
| 185 #endif | 185 #endif |
| 186 | 186 |
| 187 void SystemTrayNotifier::NotifyAccessibilityModeChanged( | 187 void SystemTrayNotifier::NotifyAccessibilityModeChanged( |
| 188 AccessibilityNotificationVisibility notify) { | 188 ui::AccessibilityNotificationVisibility notify) { |
| 189 FOR_EACH_OBSERVER( | 189 FOR_EACH_OBSERVER( |
| 190 AccessibilityObserver, | 190 AccessibilityObserver, |
| 191 accessibility_observers_, | 191 accessibility_observers_, |
| 192 OnAccessibilityModeChanged(notify)); | 192 OnAccessibilityModeChanged(notify)); |
| 193 } | 193 } |
| 194 | 194 |
| 195 void SystemTrayNotifier::NotifyAudioOutputVolumeChanged() { | 195 void SystemTrayNotifier::NotifyAudioOutputVolumeChanged() { |
| 196 FOR_EACH_OBSERVER( | 196 FOR_EACH_OBSERVER( |
| 197 AudioObserver, | 197 AudioObserver, |
| 198 audio_observers_, | 198 audio_observers_, |
| (...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 378 | 378 |
| 379 void SystemTrayNotifier::NotifyLastWindowClosed() { | 379 void SystemTrayNotifier::NotifyLastWindowClosed() { |
| 380 FOR_EACH_OBSERVER(LastWindowClosedObserver, | 380 FOR_EACH_OBSERVER(LastWindowClosedObserver, |
| 381 last_window_closed_observers_, | 381 last_window_closed_observers_, |
| 382 OnLastWindowClosed()); | 382 OnLastWindowClosed()); |
| 383 } | 383 } |
| 384 | 384 |
| 385 #endif // OS_CHROMEOS | 385 #endif // OS_CHROMEOS |
| 386 | 386 |
| 387 } // namespace ash | 387 } // namespace ash |
| OLD | NEW |