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 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
253 clock_observers_, | 253 clock_observers_, |
254 OnDateFormatChanged()); | 254 OnDateFormatChanged()); |
255 } | 255 } |
256 | 256 |
257 void SystemTrayNotifier::NotifySystemClockTimeUpdated() { | 257 void SystemTrayNotifier::NotifySystemClockTimeUpdated() { |
258 FOR_EACH_OBSERVER(ClockObserver, | 258 FOR_EACH_OBSERVER(ClockObserver, |
259 clock_observers_, | 259 clock_observers_, |
260 OnSystemClockTimeUpdated()); | 260 OnSystemClockTimeUpdated()); |
261 } | 261 } |
262 | 262 |
| 263 void SystemTrayNotifier::NotifySystemClockCanSetTimeChanged(bool can_set_time) { |
| 264 FOR_EACH_OBSERVER(ClockObserver, |
| 265 clock_observers_, |
| 266 OnSystemClockCanSetTimeChanged(can_set_time)); |
| 267 } |
| 268 |
263 void SystemTrayNotifier::NotifyDriveJobUpdated( | 269 void SystemTrayNotifier::NotifyDriveJobUpdated( |
264 const DriveOperationStatus& status) { | 270 const DriveOperationStatus& status) { |
265 FOR_EACH_OBSERVER(DriveObserver, | 271 FOR_EACH_OBSERVER(DriveObserver, |
266 drive_observers_, | 272 drive_observers_, |
267 OnDriveJobUpdated(status)); | 273 OnDriveJobUpdated(status)); |
268 } | 274 } |
269 | 275 |
270 void SystemTrayNotifier::NotifyRefreshIME() { | 276 void SystemTrayNotifier::NotifyRefreshIME() { |
271 FOR_EACH_OBSERVER(IMEObserver, | 277 FOR_EACH_OBSERVER(IMEObserver, |
272 ime_observers_, | 278 ime_observers_, |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
374 | 380 |
375 void SystemTrayNotifier::NotifyLastWindowClosed() { | 381 void SystemTrayNotifier::NotifyLastWindowClosed() { |
376 FOR_EACH_OBSERVER(LastWindowClosedObserver, | 382 FOR_EACH_OBSERVER(LastWindowClosedObserver, |
377 last_window_closed_observers_, | 383 last_window_closed_observers_, |
378 OnLastWindowClosed()); | 384 OnLastWindowClosed()); |
379 } | 385 } |
380 | 386 |
381 #endif // OS_CHROMEOS | 387 #endif // OS_CHROMEOS |
382 | 388 |
383 } // namespace ash | 389 } // namespace ash |
OLD | NEW |