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

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

Issue 253183003: Media indicator for background recording task (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix win build Created 6 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 | Annotate | Revision Log
« no previous file with comments | « ash/system/tray/system_tray.cc ('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
(...skipping 12 matching lines...) Expand all
23 23
24 #if defined(OS_CHROMEOS) 24 #if defined(OS_CHROMEOS)
25 #include "ash/system/chromeos/enterprise/enterprise_domain_observer.h" 25 #include "ash/system/chromeos/enterprise/enterprise_domain_observer.h"
26 #include "ash/system/chromeos/network/network_observer.h" 26 #include "ash/system/chromeos/network/network_observer.h"
27 #include "ash/system/chromeos/network/network_portal_detector_observer.h" 27 #include "ash/system/chromeos/network/network_portal_detector_observer.h"
28 #include "ash/system/chromeos/screen_security/screen_capture_observer.h" 28 #include "ash/system/chromeos/screen_security/screen_capture_observer.h"
29 #include "ash/system/chromeos/screen_security/screen_share_observer.h" 29 #include "ash/system/chromeos/screen_security/screen_share_observer.h"
30 #include "ash/system/chromeos/session/last_window_closed_observer.h" 30 #include "ash/system/chromeos/session/last_window_closed_observer.h"
31 #include "ash/system/chromeos/session/logout_button_observer.h" 31 #include "ash/system/chromeos/session/logout_button_observer.h"
32 #include "ash/system/chromeos/session/session_length_limit_observer.h" 32 #include "ash/system/chromeos/session/session_length_limit_observer.h"
33 #include "ash/system/tray/media_security/media_capture_observer.h"
33 #include "base/time/time.h" 34 #include "base/time/time.h"
34 #endif 35 #endif
35 36
36 namespace ash { 37 namespace ash {
37 38
38 #if defined(OS_CHROMEOS) 39 #if defined(OS_CHROMEOS)
39 class NetworkStateNotifier; 40 class NetworkStateNotifier;
40 #endif 41 #endif
41 42
42 class ASH_EXPORT SystemTrayNotifier { 43 class ASH_EXPORT SystemTrayNotifier {
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 void RemoveNetworkObserver(NetworkObserver* observer); 86 void RemoveNetworkObserver(NetworkObserver* observer);
86 87
87 void AddNetworkPortalDetectorObserver( 88 void AddNetworkPortalDetectorObserver(
88 NetworkPortalDetectorObserver* observer); 89 NetworkPortalDetectorObserver* observer);
89 void RemoveNetworkPortalDetectorObserver( 90 void RemoveNetworkPortalDetectorObserver(
90 NetworkPortalDetectorObserver* observer); 91 NetworkPortalDetectorObserver* observer);
91 92
92 void AddEnterpriseDomainObserver(EnterpriseDomainObserver* observer); 93 void AddEnterpriseDomainObserver(EnterpriseDomainObserver* observer);
93 void RemoveEnterpriseDomainObserver(EnterpriseDomainObserver* observer); 94 void RemoveEnterpriseDomainObserver(EnterpriseDomainObserver* observer);
94 95
96 void AddMediaCaptureObserver(MediaCaptureObserver* observer);
97 void RemoveMediaCaptureObserver(MediaCaptureObserver* observer);
98
95 void AddScreenCaptureObserver(ScreenCaptureObserver* observer); 99 void AddScreenCaptureObserver(ScreenCaptureObserver* observer);
96 void RemoveScreenCaptureObserver(ScreenCaptureObserver* observer); 100 void RemoveScreenCaptureObserver(ScreenCaptureObserver* observer);
97 101
98 void AddScreenShareObserver(ScreenShareObserver* observer); 102 void AddScreenShareObserver(ScreenShareObserver* observer);
99 void RemoveScreenShareObserver(ScreenShareObserver* observer); 103 void RemoveScreenShareObserver(ScreenShareObserver* observer);
100 104
101 void AddLastWindowClosedObserver(LastWindowClosedObserver* observer); 105 void AddLastWindowClosedObserver(LastWindowClosedObserver* observer);
102 void RemoveLastWindowClosedObserver(LastWindowClosedObserver* observer); 106 void RemoveLastWindowClosedObserver(LastWindowClosedObserver* observer);
103 #endif 107 #endif
104 108
(...skipping 21 matching lines...) Expand all
126 void NotifyUserUpdate(); 130 void NotifyUserUpdate();
127 void NotifyUserAddedToSession(); 131 void NotifyUserAddedToSession();
128 #if defined(OS_CHROMEOS) 132 #if defined(OS_CHROMEOS)
129 void NotifyShowLoginButtonChanged(bool show_login_button); 133 void NotifyShowLoginButtonChanged(bool show_login_button);
130 void NotifyLogoutDialogDurationChanged(base::TimeDelta duration); 134 void NotifyLogoutDialogDurationChanged(base::TimeDelta duration);
131 void NotifySessionStartTimeChanged(); 135 void NotifySessionStartTimeChanged();
132 void NotifySessionLengthLimitChanged(); 136 void NotifySessionLengthLimitChanged();
133 void NotifyRequestToggleWifi(); 137 void NotifyRequestToggleWifi();
134 void NotifyOnCaptivePortalDetected(const std::string& service_path); 138 void NotifyOnCaptivePortalDetected(const std::string& service_path);
135 void NotifyEnterpriseDomainChanged(); 139 void NotifyEnterpriseDomainChanged();
140 void NotifyMediaCaptureChanged();
136 void NotifyScreenCaptureStart(const base::Closure& stop_callback, 141 void NotifyScreenCaptureStart(const base::Closure& stop_callback,
137 const base::string16& sharing_app_name); 142 const base::string16& sharing_app_name);
138 void NotifyScreenCaptureStop(); 143 void NotifyScreenCaptureStop();
139 void NotifyScreenShareStart(const base::Closure& stop_callback, 144 void NotifyScreenShareStart(const base::Closure& stop_callback,
140 const base::string16& helper_name); 145 const base::string16& helper_name);
141 void NotifyScreenShareStop(); 146 void NotifyScreenShareStop();
142 void NotifyLastWindowClosed(); 147 void NotifyLastWindowClosed();
143 148
144 NetworkStateNotifier* network_state_notifier() { 149 NetworkStateNotifier* network_state_notifier() {
145 return network_state_notifier_.get(); 150 return network_state_notifier_.get();
(...skipping 11 matching lines...) Expand all
157 ObserverList<TracingObserver> tracing_observers_; 162 ObserverList<TracingObserver> tracing_observers_;
158 ObserverList<UpdateObserver> update_observers_; 163 ObserverList<UpdateObserver> update_observers_;
159 ObserverList<UserObserver> user_observers_; 164 ObserverList<UserObserver> user_observers_;
160 #if defined(OS_CHROMEOS) 165 #if defined(OS_CHROMEOS)
161 ObserverList<LogoutButtonObserver> logout_button_observers_; 166 ObserverList<LogoutButtonObserver> logout_button_observers_;
162 ObserverList<SessionLengthLimitObserver> session_length_limit_observers_; 167 ObserverList<SessionLengthLimitObserver> session_length_limit_observers_;
163 ObserverList<NetworkObserver> network_observers_; 168 ObserverList<NetworkObserver> network_observers_;
164 ObserverList<NetworkPortalDetectorObserver> 169 ObserverList<NetworkPortalDetectorObserver>
165 network_portal_detector_observers_; 170 network_portal_detector_observers_;
166 ObserverList<EnterpriseDomainObserver> enterprise_domain_observers_; 171 ObserverList<EnterpriseDomainObserver> enterprise_domain_observers_;
172 ObserverList<MediaCaptureObserver> media_capture_observers_;
167 ObserverList<ScreenCaptureObserver> screen_capture_observers_; 173 ObserverList<ScreenCaptureObserver> screen_capture_observers_;
168 ObserverList<ScreenShareObserver> screen_share_observers_; 174 ObserverList<ScreenShareObserver> screen_share_observers_;
169 ObserverList<LastWindowClosedObserver> last_window_closed_observers_; 175 ObserverList<LastWindowClosedObserver> last_window_closed_observers_;
170 scoped_ptr<NetworkStateNotifier> network_state_notifier_; 176 scoped_ptr<NetworkStateNotifier> network_state_notifier_;
171 #endif 177 #endif
172 178
173 DISALLOW_COPY_AND_ASSIGN(SystemTrayNotifier); 179 DISALLOW_COPY_AND_ASSIGN(SystemTrayNotifier);
174 }; 180 };
175 181
176 } // namespace ash 182 } // namespace ash
177 183
178 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_NOTIFIER_H_ 184 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_NOTIFIER_H_
OLDNEW
« no previous file with comments | « ash/system/tray/system_tray.cc ('k') | ash/system/tray/system_tray_notifier.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698