| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 | 9 |
| 10 #include "ash/accessibility_types.h" | 10 #include "ash/accessibility_types.h" |
| 11 #include "ash/ash_export.h" | 11 #include "ash/ash_export.h" |
| 12 #include "base/callback_forward.h" | 12 #include "base/callback_forward.h" |
| 13 #include "base/macros.h" | 13 #include "base/macros.h" |
| 14 #include "base/observer_list.h" | 14 #include "base/observer_list.h" |
| 15 #include "base/strings/string16.h" | 15 #include "base/strings/string16.h" |
| 16 #include "base/time/time.h" | 16 #include "base/time/time.h" |
| 17 | 17 |
| 18 namespace ash { | 18 namespace ash { |
| 19 | 19 |
| 20 class AccessibilityObserver; | 20 class AccessibilityObserver; |
| 21 class BluetoothObserver; | 21 class BluetoothObserver; |
| 22 class ClockObserver; | 22 class ClockObserver; |
| 23 class EnterpriseDomainObserver; | 23 class EnterpriseDomainObserver; |
| 24 class IMEObserver; | |
| 25 class LastWindowClosedObserver; | 24 class LastWindowClosedObserver; |
| 26 class LogoutButtonObserver; | 25 class LogoutButtonObserver; |
| 27 class NetworkObserver; | 26 class NetworkObserver; |
| 28 class NetworkPortalDetectorObserver; | 27 class NetworkPortalDetectorObserver; |
| 29 class ScreenCaptureObserver; | 28 class ScreenCaptureObserver; |
| 30 class ScreenShareObserver; | 29 class ScreenShareObserver; |
| 31 class SessionLengthLimitObserver; | 30 class SessionLengthLimitObserver; |
| 32 class StatusAreaFocusObserver; | 31 class StatusAreaFocusObserver; |
| 33 class TracingObserver; | 32 class TracingObserver; |
| 34 class VirtualKeyboardObserver; | 33 class VirtualKeyboardObserver; |
| (...skipping 26 matching lines...) Expand all Loading... |
| 61 void NotifyRefreshClock(); | 60 void NotifyRefreshClock(); |
| 62 void NotifyDateFormatChanged(); | 61 void NotifyDateFormatChanged(); |
| 63 void NotifySystemClockTimeUpdated(); | 62 void NotifySystemClockTimeUpdated(); |
| 64 void NotifySystemClockCanSetTimeChanged(bool can_set_time); | 63 void NotifySystemClockCanSetTimeChanged(bool can_set_time); |
| 65 | 64 |
| 66 // Enterprise domain. | 65 // Enterprise domain. |
| 67 void AddEnterpriseDomainObserver(EnterpriseDomainObserver* observer); | 66 void AddEnterpriseDomainObserver(EnterpriseDomainObserver* observer); |
| 68 void RemoveEnterpriseDomainObserver(EnterpriseDomainObserver* observer); | 67 void RemoveEnterpriseDomainObserver(EnterpriseDomainObserver* observer); |
| 69 void NotifyEnterpriseDomainChanged(); | 68 void NotifyEnterpriseDomainChanged(); |
| 70 | 69 |
| 71 // Input methods. | |
| 72 void AddIMEObserver(IMEObserver* observer); | |
| 73 void RemoveIMEObserver(IMEObserver* observer); | |
| 74 void NotifyRefreshIME(); | |
| 75 void NotifyRefreshIMEMenu(bool is_active); | |
| 76 | |
| 77 // Last window closed. | 70 // Last window closed. |
| 78 void AddLastWindowClosedObserver(LastWindowClosedObserver* observer); | 71 void AddLastWindowClosedObserver(LastWindowClosedObserver* observer); |
| 79 void RemoveLastWindowClosedObserver(LastWindowClosedObserver* observer); | 72 void RemoveLastWindowClosedObserver(LastWindowClosedObserver* observer); |
| 80 void NotifyLastWindowClosed(); | 73 void NotifyLastWindowClosed(); |
| 81 | 74 |
| 82 // Logout button. | 75 // Logout button. |
| 83 void AddLogoutButtonObserver(LogoutButtonObserver* observer); | 76 void AddLogoutButtonObserver(LogoutButtonObserver* observer); |
| 84 void RemoveLogoutButtonObserver(LogoutButtonObserver* observer); | 77 void RemoveLogoutButtonObserver(LogoutButtonObserver* observer); |
| 85 void NotifyShowLoginButtonChanged(bool show_login_button); | 78 void NotifyShowLoginButtonChanged(bool show_login_button); |
| 86 void NotifyLogoutDialogDurationChanged(base::TimeDelta duration); | 79 void NotifyLogoutDialogDurationChanged(base::TimeDelta duration); |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 // Virtual keyboard. | 123 // Virtual keyboard. |
| 131 void AddVirtualKeyboardObserver(VirtualKeyboardObserver* observer); | 124 void AddVirtualKeyboardObserver(VirtualKeyboardObserver* observer); |
| 132 void RemoveVirtualKeyboardObserver(VirtualKeyboardObserver* observer); | 125 void RemoveVirtualKeyboardObserver(VirtualKeyboardObserver* observer); |
| 133 void NotifyVirtualKeyboardSuppressionChanged(bool suppressed); | 126 void NotifyVirtualKeyboardSuppressionChanged(bool suppressed); |
| 134 | 127 |
| 135 private: | 128 private: |
| 136 base::ObserverList<AccessibilityObserver> accessibility_observers_; | 129 base::ObserverList<AccessibilityObserver> accessibility_observers_; |
| 137 base::ObserverList<BluetoothObserver> bluetooth_observers_; | 130 base::ObserverList<BluetoothObserver> bluetooth_observers_; |
| 138 base::ObserverList<ClockObserver> clock_observers_; | 131 base::ObserverList<ClockObserver> clock_observers_; |
| 139 base::ObserverList<EnterpriseDomainObserver> enterprise_domain_observers_; | 132 base::ObserverList<EnterpriseDomainObserver> enterprise_domain_observers_; |
| 140 base::ObserverList<IMEObserver> ime_observers_; | |
| 141 base::ObserverList<LastWindowClosedObserver> last_window_closed_observers_; | 133 base::ObserverList<LastWindowClosedObserver> last_window_closed_observers_; |
| 142 base::ObserverList<LogoutButtonObserver> logout_button_observers_; | 134 base::ObserverList<LogoutButtonObserver> logout_button_observers_; |
| 143 base::ObserverList<NetworkObserver> network_observers_; | 135 base::ObserverList<NetworkObserver> network_observers_; |
| 144 base::ObserverList<NetworkPortalDetectorObserver> | 136 base::ObserverList<NetworkPortalDetectorObserver> |
| 145 network_portal_detector_observers_; | 137 network_portal_detector_observers_; |
| 146 base::ObserverList<ScreenCaptureObserver> screen_capture_observers_; | 138 base::ObserverList<ScreenCaptureObserver> screen_capture_observers_; |
| 147 base::ObserverList<ScreenShareObserver> screen_share_observers_; | 139 base::ObserverList<ScreenShareObserver> screen_share_observers_; |
| 148 base::ObserverList<SessionLengthLimitObserver> | 140 base::ObserverList<SessionLengthLimitObserver> |
| 149 session_length_limit_observers_; | 141 session_length_limit_observers_; |
| 150 base::ObserverList<StatusAreaFocusObserver> status_area_focus_observers_; | 142 base::ObserverList<StatusAreaFocusObserver> status_area_focus_observers_; |
| 151 base::ObserverList<TracingObserver> tracing_observers_; | 143 base::ObserverList<TracingObserver> tracing_observers_; |
| 152 base::ObserverList<VirtualKeyboardObserver> virtual_keyboard_observers_; | 144 base::ObserverList<VirtualKeyboardObserver> virtual_keyboard_observers_; |
| 153 | 145 |
| 154 DISALLOW_COPY_AND_ASSIGN(SystemTrayNotifier); | 146 DISALLOW_COPY_AND_ASSIGN(SystemTrayNotifier); |
| 155 }; | 147 }; |
| 156 | 148 |
| 157 } // namespace ash | 149 } // namespace ash |
| 158 | 150 |
| 159 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_NOTIFIER_H_ | 151 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_NOTIFIER_H_ |
| OLD | NEW |