| 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 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 225 ime_observers_, | 225 ime_observers_, |
| 226 OnIMERefresh(show_message)); | 226 OnIMERefresh(show_message)); |
| 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( |
| 236 base::TimeDelta duration) { |
| 237 FOR_EACH_OBSERVER(LogoutButtonObserver, |
| 238 logout_button_observers_, |
| 239 OnLogoutDialogDurationChanged(duration)); |
| 240 } |
| 241 |
| 235 void SystemTrayNotifier::NotifyLocaleChanged( | 242 void SystemTrayNotifier::NotifyLocaleChanged( |
| 236 LocaleObserver::Delegate* delegate, | 243 LocaleObserver::Delegate* delegate, |
| 237 const std::string& cur_locale, | 244 const std::string& cur_locale, |
| 238 const std::string& from_locale, | 245 const std::string& from_locale, |
| 239 const std::string& to_locale) { | 246 const std::string& to_locale) { |
| 240 FOR_EACH_OBSERVER( | 247 FOR_EACH_OBSERVER( |
| 241 LocaleObserver, | 248 LocaleObserver, |
| 242 locale_observers_, | 249 locale_observers_, |
| 243 OnLocaleChanged(delegate, cur_locale, from_locale, to_locale)); | 250 OnLocaleChanged(delegate, cur_locale, from_locale, to_locale)); |
| 244 } | 251 } |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 307 } | 314 } |
| 308 | 315 |
| 309 void SystemTrayNotifier::NotifyScreenShareStop() { | 316 void SystemTrayNotifier::NotifyScreenShareStop() { |
| 310 FOR_EACH_OBSERVER(ScreenShareObserver, screen_share_observers_, | 317 FOR_EACH_OBSERVER(ScreenShareObserver, screen_share_observers_, |
| 311 OnScreenShareStop()); | 318 OnScreenShareStop()); |
| 312 } | 319 } |
| 313 | 320 |
| 314 #endif // OS_CHROMEOS | 321 #endif // OS_CHROMEOS |
| 315 | 322 |
| 316 } // namespace ash | 323 } // namespace ash |
| OLD | NEW |