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_COMMON_SYSTEM_TRAY_WM_SYSTEM_TRAY_NOTIFIER_H_ | 5 #ifndef ASH_COMMON_SYSTEM_TRAY_WM_SYSTEM_TRAY_NOTIFIER_H_ |
6 #define ASH_COMMON_SYSTEM_TRAY_WM_SYSTEM_TRAY_NOTIFIER_H_ | 6 #define ASH_COMMON_SYSTEM_TRAY_WM_SYSTEM_TRAY_NOTIFIER_H_ |
7 | 7 |
8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
9 #include "ash/common/accessibility_types.h" | 9 #include "ash/common/accessibility_types.h" |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 19 matching lines...) Expand all Loading... |
30 void AddAccessibilityObserver(AccessibilityObserver* observer); | 30 void AddAccessibilityObserver(AccessibilityObserver* observer); |
31 void RemoveAccessibilityObserver(AccessibilityObserver* observer); | 31 void RemoveAccessibilityObserver(AccessibilityObserver* observer); |
32 | 32 |
33 void AddClockObserver(ClockObserver* observer); | 33 void AddClockObserver(ClockObserver* observer); |
34 void RemoveClockObserver(ClockObserver* observer); | 34 void RemoveClockObserver(ClockObserver* observer); |
35 | 35 |
36 void AddUpdateObserver(UpdateObserver* observer); | 36 void AddUpdateObserver(UpdateObserver* observer); |
37 void RemoveUpdateObserver(UpdateObserver* observer); | 37 void RemoveUpdateObserver(UpdateObserver* observer); |
38 | 38 |
39 void NotifyAccessibilityModeChanged( | 39 void NotifyAccessibilityModeChanged( |
40 ui::AccessibilityNotificationVisibility notify); | 40 AccessibilityNotificationVisibility notify); |
41 | 41 |
42 void NotifyRefreshClock(); | 42 void NotifyRefreshClock(); |
43 void NotifyDateFormatChanged(); | 43 void NotifyDateFormatChanged(); |
44 void NotifySystemClockTimeUpdated(); | 44 void NotifySystemClockTimeUpdated(); |
45 void NotifySystemClockCanSetTimeChanged(bool can_set_time); | 45 void NotifySystemClockCanSetTimeChanged(bool can_set_time); |
46 | 46 |
47 void NotifyUpdateRecommended(const UpdateInfo& info); | 47 void NotifyUpdateRecommended(const UpdateInfo& info); |
48 | 48 |
49 private: | 49 private: |
50 base::ObserverList<AccessibilityObserver> accessibility_observers_; | 50 base::ObserverList<AccessibilityObserver> accessibility_observers_; |
51 base::ObserverList<ClockObserver> clock_observers_; | 51 base::ObserverList<ClockObserver> clock_observers_; |
52 base::ObserverList<UpdateObserver> update_observers_; | 52 base::ObserverList<UpdateObserver> update_observers_; |
53 | 53 |
54 DISALLOW_COPY_AND_ASSIGN(WmSystemTrayNotifier); | 54 DISALLOW_COPY_AND_ASSIGN(WmSystemTrayNotifier); |
55 }; | 55 }; |
56 | 56 |
57 } // namespace ash | 57 } // namespace ash |
58 | 58 |
59 #endif // ASH_COMMON_SYSTEM_TRAY_WM_SYSTEM_TRAY_NOTIFIER_H_ | 59 #endif // ASH_COMMON_SYSTEM_TRAY_WM_SYSTEM_TRAY_NOTIFIER_H_ |
OLD | NEW |