| 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 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 278 LocaleObserver::Delegate* delegate, | 278 LocaleObserver::Delegate* delegate, |
| 279 const std::string& cur_locale, | 279 const std::string& cur_locale, |
| 280 const std::string& from_locale, | 280 const std::string& from_locale, |
| 281 const std::string& to_locale) { | 281 const std::string& to_locale) { |
| 282 FOR_EACH_OBSERVER( | 282 FOR_EACH_OBSERVER( |
| 283 LocaleObserver, | 283 LocaleObserver, |
| 284 locale_observers_, | 284 locale_observers_, |
| 285 OnLocaleChanged(delegate, cur_locale, from_locale, to_locale)); | 285 OnLocaleChanged(delegate, cur_locale, from_locale, to_locale)); |
| 286 } | 286 } |
| 287 | 287 |
| 288 void SystemTrayNotifier::NotifyUpdateRecommended( | 288 void SystemTrayNotifier::NotifyUpdateRecommended(const UpdateInfo& info) { |
| 289 UpdateObserver::UpdateSeverity severity) { | |
| 290 FOR_EACH_OBSERVER(UpdateObserver, | 289 FOR_EACH_OBSERVER(UpdateObserver, |
| 291 update_observers_, | 290 update_observers_, |
| 292 OnUpdateRecommended(severity)); | 291 OnUpdateRecommended(info)); |
| 293 } | 292 } |
| 294 | 293 |
| 295 void SystemTrayNotifier::NotifyUserUpdate() { | 294 void SystemTrayNotifier::NotifyUserUpdate() { |
| 296 FOR_EACH_OBSERVER(UserObserver, | 295 FOR_EACH_OBSERVER(UserObserver, |
| 297 user_observers_, | 296 user_observers_, |
| 298 OnUserUpdate()); | 297 OnUserUpdate()); |
| 299 } | 298 } |
| 300 | 299 |
| 301 void SystemTrayNotifier::NotifyUserAddedToSession() { | 300 void SystemTrayNotifier::NotifyUserAddedToSession() { |
| 302 FOR_EACH_OBSERVER(UserObserver, | 301 FOR_EACH_OBSERVER(UserObserver, |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 380 | 379 |
| 381 void SystemTrayNotifier::NotifyLastWindowClosed() { | 380 void SystemTrayNotifier::NotifyLastWindowClosed() { |
| 382 FOR_EACH_OBSERVER(LastWindowClosedObserver, | 381 FOR_EACH_OBSERVER(LastWindowClosedObserver, |
| 383 last_window_closed_observers_, | 382 last_window_closed_observers_, |
| 384 OnLastWindowClosed()); | 383 OnLastWindowClosed()); |
| 385 } | 384 } |
| 386 | 385 |
| 387 #endif // OS_CHROMEOS | 386 #endif // OS_CHROMEOS |
| 388 | 387 |
| 389 } // namespace ash | 388 } // namespace ash |
| OLD | NEW |