| 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 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 213 OnSystemClockTimeUpdated()); | 213 OnSystemClockTimeUpdated()); |
| 214 } | 214 } |
| 215 | 215 |
| 216 void SystemTrayNotifier::NotifyDriveJobUpdated( | 216 void SystemTrayNotifier::NotifyDriveJobUpdated( |
| 217 const DriveOperationStatus& status) { | 217 const DriveOperationStatus& status) { |
| 218 FOR_EACH_OBSERVER(DriveObserver, | 218 FOR_EACH_OBSERVER(DriveObserver, |
| 219 drive_observers_, | 219 drive_observers_, |
| 220 OnDriveJobUpdated(status)); | 220 OnDriveJobUpdated(status)); |
| 221 } | 221 } |
| 222 | 222 |
| 223 void SystemTrayNotifier::NotifyRefreshIME(bool show_message) { | 223 void SystemTrayNotifier::NotifyRefreshIME() { |
| 224 FOR_EACH_OBSERVER(IMEObserver, | 224 FOR_EACH_OBSERVER(IMEObserver, |
| 225 ime_observers_, | 225 ime_observers_, |
| 226 OnIMERefresh(show_message)); | 226 OnIMERefresh()); |
| 227 } | 227 } |
| 228 | 228 |
| 229 void SystemTrayNotifier::NotifyShowLoginButtonChanged(bool show_login_button) { | 229 void SystemTrayNotifier::NotifyShowLoginButtonChanged(bool show_login_button) { |
| 230 FOR_EACH_OBSERVER(LogoutButtonObserver, | 230 FOR_EACH_OBSERVER(LogoutButtonObserver, |
| 231 logout_button_observers_, | 231 logout_button_observers_, |
| 232 OnShowLogoutButtonInTrayChanged(show_login_button)); | 232 OnShowLogoutButtonInTrayChanged(show_login_button)); |
| 233 } | 233 } |
| 234 | 234 |
| 235 void SystemTrayNotifier::NotifyLogoutDialogDurationChanged( | 235 void SystemTrayNotifier::NotifyLogoutDialogDurationChanged( |
| 236 base::TimeDelta duration) { | 236 base::TimeDelta duration) { |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 314 } | 314 } |
| 315 | 315 |
| 316 void SystemTrayNotifier::NotifyScreenShareStop() { | 316 void SystemTrayNotifier::NotifyScreenShareStop() { |
| 317 FOR_EACH_OBSERVER(ScreenShareObserver, screen_share_observers_, | 317 FOR_EACH_OBSERVER(ScreenShareObserver, screen_share_observers_, |
| 318 OnScreenShareStop()); | 318 OnScreenShareStop()); |
| 319 } | 319 } |
| 320 | 320 |
| 321 #endif // OS_CHROMEOS | 321 #endif // OS_CHROMEOS |
| 322 | 322 |
| 323 } // namespace ash | 323 } // namespace ash |
| OLD | NEW |