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

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

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_notifier.h ('k') | ash/system/tray/test_system_tray_delegate.h » ('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 #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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 void SystemTrayNotifier::AddSessionLengthLimitObserver( 99 void SystemTrayNotifier::AddSessionLengthLimitObserver(
100 SessionLengthLimitObserver* observer) { 100 SessionLengthLimitObserver* observer) {
101 session_length_limit_observers_.AddObserver(observer); 101 session_length_limit_observers_.AddObserver(observer);
102 } 102 }
103 103
104 void SystemTrayNotifier::RemoveSessionLengthLimitObserver( 104 void SystemTrayNotifier::RemoveSessionLengthLimitObserver(
105 SessionLengthLimitObserver* observer) { 105 SessionLengthLimitObserver* observer) {
106 session_length_limit_observers_.RemoveObserver(observer); 106 session_length_limit_observers_.RemoveObserver(observer);
107 } 107 }
108 108
109 void SystemTrayNotifier::AddTracingObserver(TracingObserver* observer) {
110 tracing_observers_.AddObserver(observer);
111 }
112
113 void SystemTrayNotifier::RemoveTracingObserver(TracingObserver* observer) {
114 tracing_observers_.RemoveObserver(observer);
115 }
116
109 void SystemTrayNotifier::AddUpdateObserver(UpdateObserver* observer) { 117 void SystemTrayNotifier::AddUpdateObserver(UpdateObserver* observer) {
110 update_observers_.AddObserver(observer); 118 update_observers_.AddObserver(observer);
111 } 119 }
112 120
113 void SystemTrayNotifier::RemoveUpdateObserver(UpdateObserver* observer) { 121 void SystemTrayNotifier::RemoveUpdateObserver(UpdateObserver* observer) {
114 update_observers_.RemoveObserver(observer); 122 update_observers_.RemoveObserver(observer);
115 } 123 }
116 124
117 void SystemTrayNotifier::AddUserObserver(UserObserver* observer) { 125 void SystemTrayNotifier::AddUserObserver(UserObserver* observer) {
118 user_observers_.AddObserver(observer); 126 user_observers_.AddObserver(observer);
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 #endif 180 #endif
173 181
174 void SystemTrayNotifier::NotifyAccessibilityModeChanged( 182 void SystemTrayNotifier::NotifyAccessibilityModeChanged(
175 AccessibilityNotificationVisibility notify) { 183 AccessibilityNotificationVisibility notify) {
176 FOR_EACH_OBSERVER( 184 FOR_EACH_OBSERVER(
177 AccessibilityObserver, 185 AccessibilityObserver,
178 accessibility_observers_, 186 accessibility_observers_,
179 OnAccessibilityModeChanged(notify)); 187 OnAccessibilityModeChanged(notify));
180 } 188 }
181 189
190 void SystemTrayNotifier::NotifyTracingModeChanged(bool value) {
191 FOR_EACH_OBSERVER(
192 TracingObserver,
193 tracing_observers_,
194 OnTracingModeChanged(value));
195 }
196
182 void SystemTrayNotifier::NotifyRefreshBluetooth() { 197 void SystemTrayNotifier::NotifyRefreshBluetooth() {
183 FOR_EACH_OBSERVER(BluetoothObserver, 198 FOR_EACH_OBSERVER(BluetoothObserver,
184 bluetooth_observers_, 199 bluetooth_observers_,
185 OnBluetoothRefresh()); 200 OnBluetoothRefresh());
186 } 201 }
187 202
188 void SystemTrayNotifier::NotifyBluetoothDiscoveringChanged() { 203 void SystemTrayNotifier::NotifyBluetoothDiscoveringChanged() {
189 FOR_EACH_OBSERVER(BluetoothObserver, 204 FOR_EACH_OBSERVER(BluetoothObserver,
190 bluetooth_observers_, 205 bluetooth_observers_,
191 OnBluetoothDiscoveringChanged()); 206 OnBluetoothDiscoveringChanged());
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
341 } 356 }
342 357
343 void SystemTrayNotifier::NotifyScreenShareStop() { 358 void SystemTrayNotifier::NotifyScreenShareStop() {
344 FOR_EACH_OBSERVER(ScreenShareObserver, screen_share_observers_, 359 FOR_EACH_OBSERVER(ScreenShareObserver, screen_share_observers_,
345 OnScreenShareStop()); 360 OnScreenShareStop());
346 } 361 }
347 362
348 #endif // OS_CHROMEOS 363 #endif // OS_CHROMEOS
349 364
350 } // namespace ash 365 } // namespace ash
OLDNEW
« no previous file with comments | « ash/system/tray/system_tray_notifier.h ('k') | ash/system/tray/test_system_tray_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698