| 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 #ifndef ASH_SYSTEM_TRAY_SYSTEM_TRAY_NOTIFIER_H_ | 5 #ifndef ASH_SYSTEM_TRAY_SYSTEM_TRAY_NOTIFIER_H_ |
| 6 #define ASH_SYSTEM_TRAY_SYSTEM_TRAY_NOTIFIER_H_ | 6 #define ASH_SYSTEM_TRAY_SYSTEM_TRAY_NOTIFIER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 #include "ash/system/chromeos/screen_security/screen_share_observer.h" | 28 #include "ash/system/chromeos/screen_security/screen_share_observer.h" |
| 29 #include "ash/system/chromeos/session/last_window_closed_observer.h" | 29 #include "ash/system/chromeos/session/last_window_closed_observer.h" |
| 30 #include "ash/system/chromeos/session/logout_button_observer.h" | 30 #include "ash/system/chromeos/session/logout_button_observer.h" |
| 31 #include "ash/system/chromeos/session/session_length_limit_observer.h" | 31 #include "ash/system/chromeos/session/session_length_limit_observer.h" |
| 32 #include "ash/system/tray/media_security/media_capture_observer.h" | 32 #include "ash/system/tray/media_security/media_capture_observer.h" |
| 33 #include "base/time/time.h" | 33 #include "base/time/time.h" |
| 34 #endif | 34 #endif |
| 35 | 35 |
| 36 namespace ash { | 36 namespace ash { |
| 37 | 37 |
| 38 struct UpdateInfo; |
| 39 |
| 38 #if defined(OS_CHROMEOS) | 40 #if defined(OS_CHROMEOS) |
| 39 class NetworkStateNotifier; | 41 class NetworkStateNotifier; |
| 40 #endif | 42 #endif |
| 41 | 43 |
| 42 class ASH_EXPORT SystemTrayNotifier { | 44 class ASH_EXPORT SystemTrayNotifier { |
| 43 public: | 45 public: |
| 44 SystemTrayNotifier(); | 46 SystemTrayNotifier(); |
| 45 ~SystemTrayNotifier(); | 47 ~SystemTrayNotifier(); |
| 46 | 48 |
| 47 void AddAccessibilityObserver(AccessibilityObserver* observer); | 49 void AddAccessibilityObserver(AccessibilityObserver* observer); |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 void NotifyBluetoothDiscoveringChanged(); | 116 void NotifyBluetoothDiscoveringChanged(); |
| 115 void NotifyRefreshClock(); | 117 void NotifyRefreshClock(); |
| 116 void NotifyDateFormatChanged(); | 118 void NotifyDateFormatChanged(); |
| 117 void NotifySystemClockTimeUpdated(); | 119 void NotifySystemClockTimeUpdated(); |
| 118 void NotifySystemClockCanSetTimeChanged(bool can_set_time); | 120 void NotifySystemClockCanSetTimeChanged(bool can_set_time); |
| 119 void NotifyRefreshIME(); | 121 void NotifyRefreshIME(); |
| 120 void NotifyLocaleChanged(LocaleObserver::Delegate* delegate, | 122 void NotifyLocaleChanged(LocaleObserver::Delegate* delegate, |
| 121 const std::string& cur_locale, | 123 const std::string& cur_locale, |
| 122 const std::string& from_locale, | 124 const std::string& from_locale, |
| 123 const std::string& to_locale); | 125 const std::string& to_locale); |
| 124 void NotifyUpdateRecommended(UpdateObserver::UpdateSeverity severity); | 126 void NotifyUpdateRecommended(const UpdateInfo& info); |
| 125 void NotifyUserUpdate(); | 127 void NotifyUserUpdate(); |
| 126 void NotifyUserAddedToSession(); | 128 void NotifyUserAddedToSession(); |
| 127 #if defined(OS_CHROMEOS) | 129 #if defined(OS_CHROMEOS) |
| 128 void NotifyShowLoginButtonChanged(bool show_login_button); | 130 void NotifyShowLoginButtonChanged(bool show_login_button); |
| 129 void NotifyLogoutDialogDurationChanged(base::TimeDelta duration); | 131 void NotifyLogoutDialogDurationChanged(base::TimeDelta duration); |
| 130 void NotifySessionStartTimeChanged(); | 132 void NotifySessionStartTimeChanged(); |
| 131 void NotifySessionLengthLimitChanged(); | 133 void NotifySessionLengthLimitChanged(); |
| 132 void NotifyRequestToggleWifi(); | 134 void NotifyRequestToggleWifi(); |
| 133 void NotifyOnCaptivePortalDetected(const std::string& service_path); | 135 void NotifyOnCaptivePortalDetected(const std::string& service_path); |
| 134 void NotifyEnterpriseDomainChanged(); | 136 void NotifyEnterpriseDomainChanged(); |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 ObserverList<LastWindowClosedObserver> last_window_closed_observers_; | 171 ObserverList<LastWindowClosedObserver> last_window_closed_observers_; |
| 170 scoped_ptr<NetworkStateNotifier> network_state_notifier_; | 172 scoped_ptr<NetworkStateNotifier> network_state_notifier_; |
| 171 #endif | 173 #endif |
| 172 | 174 |
| 173 DISALLOW_COPY_AND_ASSIGN(SystemTrayNotifier); | 175 DISALLOW_COPY_AND_ASSIGN(SystemTrayNotifier); |
| 174 }; | 176 }; |
| 175 | 177 |
| 176 } // namespace ash | 178 } // namespace ash |
| 177 | 179 |
| 178 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_NOTIFIER_H_ | 180 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_NOTIFIER_H_ |
| OLD | NEW |