Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(25)

Side by Side Diff: ash/system/tray/system_tray_notifier.h

Issue 22654003: Create system tray item for accessing chrome://slow (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix non-chromeos build Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ash/system/tray/system_tray_delegate.h ('k') | ash/system/tray/system_tray_notifier.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
11 #include "ash/ash_export.h" 11 #include "ash/ash_export.h"
12 #include "ash/system/bluetooth/bluetooth_observer.h" 12 #include "ash/system/bluetooth/bluetooth_observer.h"
13 #include "ash/system/brightness/brightness_observer.h" 13 #include "ash/system/brightness/brightness_observer.h"
14 #include "ash/system/chromeos/enterprise/enterprise_domain_observer.h" 14 #include "ash/system/chromeos/enterprise/enterprise_domain_observer.h"
15 #include "ash/system/chromeos/network/network_observer.h" 15 #include "ash/system/chromeos/network/network_observer.h"
16 #include "ash/system/chromeos/network/sms_observer.h" 16 #include "ash/system/chromeos/network/sms_observer.h"
17 #include "ash/system/chromeos/tray_tracing.h"
17 #include "ash/system/date/clock_observer.h" 18 #include "ash/system/date/clock_observer.h"
18 #include "ash/system/drive/drive_observer.h" 19 #include "ash/system/drive/drive_observer.h"
19 #include "ash/system/ime/ime_observer.h" 20 #include "ash/system/ime/ime_observer.h"
20 #include "ash/system/locale/locale_observer.h" 21 #include "ash/system/locale/locale_observer.h"
21 #include "ash/system/logout_button/logout_button_observer.h" 22 #include "ash/system/logout_button/logout_button_observer.h"
22 #include "ash/system/session_length_limit/session_length_limit_observer.h" 23 #include "ash/system/session_length_limit/session_length_limit_observer.h"
23 #include "ash/system/tray_accessibility.h" 24 #include "ash/system/tray_accessibility.h"
24 #include "ash/system/tray_caps_lock.h" 25 #include "ash/system/tray_caps_lock.h"
25 #include "ash/system/user/update_observer.h" 26 #include "ash/system/user/update_observer.h"
26 #include "ash/system/user/user_observer.h" 27 #include "ash/system/user/user_observer.h"
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 68
68 void AddLocaleObserver(LocaleObserver* observer); 69 void AddLocaleObserver(LocaleObserver* observer);
69 void RemoveLocaleObserver(LocaleObserver* observer); 70 void RemoveLocaleObserver(LocaleObserver* observer);
70 71
71 void AddLogoutButtonObserver(LogoutButtonObserver* observer); 72 void AddLogoutButtonObserver(LogoutButtonObserver* observer);
72 void RemoveLogoutButtonObserver(LogoutButtonObserver* observer); 73 void RemoveLogoutButtonObserver(LogoutButtonObserver* observer);
73 74
74 void AddSessionLengthLimitObserver(SessionLengthLimitObserver* observer); 75 void AddSessionLengthLimitObserver(SessionLengthLimitObserver* observer);
75 void RemoveSessionLengthLimitObserver(SessionLengthLimitObserver* observer); 76 void RemoveSessionLengthLimitObserver(SessionLengthLimitObserver* observer);
76 77
78 void AddTracingObserver(TracingObserver* observer);
79 void RemoveTracingObserver(TracingObserver* observer);
80
77 void AddUpdateObserver(UpdateObserver* observer); 81 void AddUpdateObserver(UpdateObserver* observer);
78 void RemoveUpdateObserver(UpdateObserver* observer); 82 void RemoveUpdateObserver(UpdateObserver* observer);
79 83
80 void AddUserObserver(UserObserver* observer); 84 void AddUserObserver(UserObserver* observer);
81 void RemoveUserObserver(UserObserver* observer); 85 void RemoveUserObserver(UserObserver* observer);
82 86
83 #if defined(OS_CHROMEOS) 87 #if defined(OS_CHROMEOS)
84 void AddNetworkObserver(NetworkObserver* observer); 88 void AddNetworkObserver(NetworkObserver* observer);
85 void RemoveNetworkObserver(NetworkObserver* observer); 89 void RemoveNetworkObserver(NetworkObserver* observer);
86 90
87 void AddSmsObserver(SmsObserver* observer); 91 void AddSmsObserver(SmsObserver* observer);
88 void RemoveSmsObserver(SmsObserver* observer); 92 void RemoveSmsObserver(SmsObserver* observer);
89 93
90 void AddEnterpriseDomainObserver(EnterpriseDomainObserver* observer); 94 void AddEnterpriseDomainObserver(EnterpriseDomainObserver* observer);
91 void RemoveEnterpriseDomainObserver(EnterpriseDomainObserver* observer); 95 void RemoveEnterpriseDomainObserver(EnterpriseDomainObserver* observer);
92 96
93 void AddScreenCaptureObserver(ScreenCaptureObserver* observer); 97 void AddScreenCaptureObserver(ScreenCaptureObserver* observer);
94 void RemoveScreenCaptureObserver(ScreenCaptureObserver* observer); 98 void RemoveScreenCaptureObserver(ScreenCaptureObserver* observer);
95 99
96 void AddScreenShareObserver(ScreenShareObserver* observer); 100 void AddScreenShareObserver(ScreenShareObserver* observer);
97 void RemoveScreenShareObserver(ScreenShareObserver* observer); 101 void RemoveScreenShareObserver(ScreenShareObserver* observer);
98 #endif 102 #endif
99 103
100 void NotifyAccessibilityModeChanged( 104 void NotifyAccessibilityModeChanged(
101 AccessibilityNotificationVisibility notify); 105 AccessibilityNotificationVisibility notify);
106 void NotifyTracingModeChanged(bool value);
102 void NotifyRefreshBluetooth(); 107 void NotifyRefreshBluetooth();
103 void NotifyBluetoothDiscoveringChanged(); 108 void NotifyBluetoothDiscoveringChanged();
104 void NotifyBrightnessChanged(double level, bool user_initialted); 109 void NotifyBrightnessChanged(double level, bool user_initialted);
105 void NotifyCapsLockChanged(bool enabled, bool search_mapped_to_caps_lock); 110 void NotifyCapsLockChanged(bool enabled, bool search_mapped_to_caps_lock);
106 void NotifyRefreshClock(); 111 void NotifyRefreshClock();
107 void NotifyDateFormatChanged(); 112 void NotifyDateFormatChanged();
108 void NotifySystemClockTimeUpdated(); 113 void NotifySystemClockTimeUpdated();
109 void NotifyDriveJobUpdated(const DriveOperationStatus& status); 114 void NotifyDriveJobUpdated(const DriveOperationStatus& status);
110 void NotifyRefreshIME(bool show_message); 115 void NotifyRefreshIME(bool show_message);
111 void NotifyShowLoginButtonChanged(bool show_login_button); 116 void NotifyShowLoginButtonChanged(bool show_login_button);
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 ObserverList<AccessibilityObserver> accessibility_observers_; 149 ObserverList<AccessibilityObserver> accessibility_observers_;
145 ObserverList<BluetoothObserver> bluetooth_observers_; 150 ObserverList<BluetoothObserver> bluetooth_observers_;
146 ObserverList<BrightnessObserver> brightness_observers_; 151 ObserverList<BrightnessObserver> brightness_observers_;
147 ObserverList<CapsLockObserver> caps_lock_observers_; 152 ObserverList<CapsLockObserver> caps_lock_observers_;
148 ObserverList<ClockObserver> clock_observers_; 153 ObserverList<ClockObserver> clock_observers_;
149 ObserverList<DriveObserver> drive_observers_; 154 ObserverList<DriveObserver> drive_observers_;
150 ObserverList<IMEObserver> ime_observers_; 155 ObserverList<IMEObserver> ime_observers_;
151 ObserverList<LocaleObserver> locale_observers_; 156 ObserverList<LocaleObserver> locale_observers_;
152 ObserverList<LogoutButtonObserver> logout_button_observers_; 157 ObserverList<LogoutButtonObserver> logout_button_observers_;
153 ObserverList<SessionLengthLimitObserver> session_length_limit_observers_; 158 ObserverList<SessionLengthLimitObserver> session_length_limit_observers_;
159 ObserverList<TracingObserver> tracing_observers_;
154 ObserverList<UpdateObserver> update_observers_; 160 ObserverList<UpdateObserver> update_observers_;
155 ObserverList<UserObserver> user_observers_; 161 ObserverList<UserObserver> user_observers_;
156 #if defined(OS_CHROMEOS) 162 #if defined(OS_CHROMEOS)
157 ObserverList<NetworkObserver> network_observers_; 163 ObserverList<NetworkObserver> network_observers_;
158 ObserverList<SmsObserver> sms_observers_; 164 ObserverList<SmsObserver> sms_observers_;
159 ObserverList<EnterpriseDomainObserver> enterprise_domain_observers_; 165 ObserverList<EnterpriseDomainObserver> enterprise_domain_observers_;
160 ObserverList<ScreenCaptureObserver> screen_capture_observers_; 166 ObserverList<ScreenCaptureObserver> screen_capture_observers_;
161 ObserverList<ScreenShareObserver> screen_share_observers_; 167 ObserverList<ScreenShareObserver> screen_share_observers_;
162 scoped_ptr<NetworkStateNotifier> network_state_notifier_; 168 scoped_ptr<NetworkStateNotifier> network_state_notifier_;
163 #endif 169 #endif
164 170
165 DISALLOW_COPY_AND_ASSIGN(SystemTrayNotifier); 171 DISALLOW_COPY_AND_ASSIGN(SystemTrayNotifier);
166 }; 172 };
167 173
168 } // namespace ash 174 } // namespace ash
169 175
170 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_NOTIFIER_H_ 176 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_NOTIFIER_H_
OLDNEW
« no previous file with comments | « ash/system/tray/system_tray_delegate.h ('k') | ash/system/tray/system_tray_notifier.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698