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

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

Issue 1115083002: Add the supporting code for the cast system tray integration (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Support detecting if we are casting a tab or the desktop Created 5 years, 7 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
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/audio/audio_observer.h" 12 #include "ash/system/audio/audio_observer.h"
13 #include "ash/system/bluetooth/bluetooth_observer.h" 13 #include "ash/system/bluetooth/bluetooth_observer.h"
14 #include "ash/system/cast/cast_observer.h"
14 #include "ash/system/chromeos/tray_tracing.h" 15 #include "ash/system/chromeos/tray_tracing.h"
15 #include "ash/system/date/clock_observer.h" 16 #include "ash/system/date/clock_observer.h"
16 #include "ash/system/ime/ime_observer.h" 17 #include "ash/system/ime/ime_observer.h"
17 #include "ash/system/locale/locale_observer.h" 18 #include "ash/system/locale/locale_observer.h"
18 #include "ash/system/tray_accessibility.h" 19 #include "ash/system/tray_accessibility.h"
19 #include "ash/system/user/update_observer.h" 20 #include "ash/system/user/update_observer.h"
20 #include "ash/system/user/user_observer.h" 21 #include "ash/system/user/user_observer.h"
21 #include "base/observer_list.h" 22 #include "base/observer_list.h"
22 23
23 #if defined(OS_CHROMEOS) 24 #if defined(OS_CHROMEOS)
(...skipping 25 matching lines...) Expand all
49 50
50 void AddAccessibilityObserver(AccessibilityObserver* observer); 51 void AddAccessibilityObserver(AccessibilityObserver* observer);
51 void RemoveAccessibilityObserver(AccessibilityObserver* observer); 52 void RemoveAccessibilityObserver(AccessibilityObserver* observer);
52 53
53 void AddAudioObserver(AudioObserver* observer); 54 void AddAudioObserver(AudioObserver* observer);
54 void RemoveAudioObserver(AudioObserver* observer); 55 void RemoveAudioObserver(AudioObserver* observer);
55 56
56 void AddBluetoothObserver(BluetoothObserver* observer); 57 void AddBluetoothObserver(BluetoothObserver* observer);
57 void RemoveBluetoothObserver(BluetoothObserver* observer); 58 void RemoveBluetoothObserver(BluetoothObserver* observer);
58 59
60 void AddCastObserver(CastObserver* observer);
61 void RemoveCastObserver(CastObserver* observer);
62
59 void AddClockObserver(ClockObserver* observer); 63 void AddClockObserver(ClockObserver* observer);
60 void RemoveClockObserver(ClockObserver* observer); 64 void RemoveClockObserver(ClockObserver* observer);
61 65
62 void AddIMEObserver(IMEObserver* observer); 66 void AddIMEObserver(IMEObserver* observer);
63 void RemoveIMEObserver(IMEObserver* observer); 67 void RemoveIMEObserver(IMEObserver* observer);
64 68
65 void AddLocaleObserver(LocaleObserver* observer); 69 void AddLocaleObserver(LocaleObserver* observer);
66 void RemoveLocaleObserver(LocaleObserver* observer); 70 void RemoveLocaleObserver(LocaleObserver* observer);
67 71
68 void AddTracingObserver(TracingObserver* observer); 72 void AddTracingObserver(TracingObserver* observer);
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 const base::string16& helper_name); 150 const base::string16& helper_name);
147 void NotifyScreenShareStop(); 151 void NotifyScreenShareStop();
148 void NotifyLastWindowClosed(); 152 void NotifyLastWindowClosed();
149 void NotifyVirtualKeyboardSuppressionChanged(bool suppressed); 153 void NotifyVirtualKeyboardSuppressionChanged(bool suppressed);
150 #endif 154 #endif
151 155
152 private: 156 private:
153 ObserverList<AccessibilityObserver> accessibility_observers_; 157 ObserverList<AccessibilityObserver> accessibility_observers_;
154 ObserverList<AudioObserver> audio_observers_; 158 ObserverList<AudioObserver> audio_observers_;
155 ObserverList<BluetoothObserver> bluetooth_observers_; 159 ObserverList<BluetoothObserver> bluetooth_observers_;
160 ObserverList<CastObserver> cast_observers_;
156 ObserverList<ClockObserver> clock_observers_; 161 ObserverList<ClockObserver> clock_observers_;
157 ObserverList<IMEObserver> ime_observers_; 162 ObserverList<IMEObserver> ime_observers_;
158 ObserverList<LocaleObserver> locale_observers_; 163 ObserverList<LocaleObserver> locale_observers_;
159 ObserverList<TracingObserver> tracing_observers_; 164 ObserverList<TracingObserver> tracing_observers_;
160 ObserverList<UpdateObserver> update_observers_; 165 ObserverList<UpdateObserver> update_observers_;
161 ObserverList<UserObserver> user_observers_; 166 ObserverList<UserObserver> user_observers_;
162 #if defined(OS_CHROMEOS) 167 #if defined(OS_CHROMEOS)
163 ObserverList<LogoutButtonObserver> logout_button_observers_; 168 ObserverList<LogoutButtonObserver> logout_button_observers_;
164 ObserverList<SessionLengthLimitObserver> session_length_limit_observers_; 169 ObserverList<SessionLengthLimitObserver> session_length_limit_observers_;
165 ObserverList<NetworkObserver> network_observers_; 170 ObserverList<NetworkObserver> network_observers_;
166 ObserverList<NetworkPortalDetectorObserver> 171 ObserverList<NetworkPortalDetectorObserver>
167 network_portal_detector_observers_; 172 network_portal_detector_observers_;
168 ObserverList<EnterpriseDomainObserver> enterprise_domain_observers_; 173 ObserverList<EnterpriseDomainObserver> enterprise_domain_observers_;
169 ObserverList<MediaCaptureObserver> media_capture_observers_; 174 ObserverList<MediaCaptureObserver> media_capture_observers_;
170 ObserverList<ScreenCaptureObserver> screen_capture_observers_; 175 ObserverList<ScreenCaptureObserver> screen_capture_observers_;
171 ObserverList<ScreenShareObserver> screen_share_observers_; 176 ObserverList<ScreenShareObserver> screen_share_observers_;
172 ObserverList<LastWindowClosedObserver> last_window_closed_observers_; 177 ObserverList<LastWindowClosedObserver> last_window_closed_observers_;
173 ObserverList<VirtualKeyboardObserver> virtual_keyboard_observers_; 178 ObserverList<VirtualKeyboardObserver> virtual_keyboard_observers_;
174 #endif 179 #endif
175 180
176 DISALLOW_COPY_AND_ASSIGN(SystemTrayNotifier); 181 DISALLOW_COPY_AND_ASSIGN(SystemTrayNotifier);
177 }; 182 };
178 183
179 } // namespace ash 184 } // namespace ash
180 185
181 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_NOTIFIER_H_ 186 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_NOTIFIER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698