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

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

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_notifier.h ('k') | ash/system/user/user_card_view.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 #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 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 void SystemTrayNotifier::AddEnterpriseDomainObserver( 144 void SystemTrayNotifier::AddEnterpriseDomainObserver(
145 EnterpriseDomainObserver* observer) { 145 EnterpriseDomainObserver* observer) {
146 enterprise_domain_observers_.AddObserver(observer); 146 enterprise_domain_observers_.AddObserver(observer);
147 } 147 }
148 148
149 void SystemTrayNotifier::RemoveEnterpriseDomainObserver( 149 void SystemTrayNotifier::RemoveEnterpriseDomainObserver(
150 EnterpriseDomainObserver* observer) { 150 EnterpriseDomainObserver* observer) {
151 enterprise_domain_observers_.RemoveObserver(observer); 151 enterprise_domain_observers_.RemoveObserver(observer);
152 } 152 }
153 153
154 void SystemTrayNotifier::AddMediaCaptureObserver(
155 MediaCaptureObserver* observer) {
156 media_capture_observers_.AddObserver(observer);
157 }
158
159 void SystemTrayNotifier::RemoveMediaCaptureObserver(
160 MediaCaptureObserver* observer) {
161 media_capture_observers_.RemoveObserver(observer);
162 }
163
154 void SystemTrayNotifier::AddScreenCaptureObserver( 164 void SystemTrayNotifier::AddScreenCaptureObserver(
155 ScreenCaptureObserver* observer) { 165 ScreenCaptureObserver* observer) {
156 screen_capture_observers_.AddObserver(observer); 166 screen_capture_observers_.AddObserver(observer);
157 } 167 }
158 168
159 void SystemTrayNotifier::RemoveScreenCaptureObserver( 169 void SystemTrayNotifier::RemoveScreenCaptureObserver(
160 ScreenCaptureObserver* observer) { 170 ScreenCaptureObserver* observer) {
161 screen_capture_observers_.RemoveObserver(observer); 171 screen_capture_observers_.RemoveObserver(observer);
162 } 172 }
163 173
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
347 FOR_EACH_OBSERVER(NetworkPortalDetectorObserver, 357 FOR_EACH_OBSERVER(NetworkPortalDetectorObserver,
348 network_portal_detector_observers_, 358 network_portal_detector_observers_,
349 OnCaptivePortalDetected(service_path)); 359 OnCaptivePortalDetected(service_path));
350 } 360 }
351 361
352 void SystemTrayNotifier::NotifyEnterpriseDomainChanged() { 362 void SystemTrayNotifier::NotifyEnterpriseDomainChanged() {
353 FOR_EACH_OBSERVER(EnterpriseDomainObserver, enterprise_domain_observers_, 363 FOR_EACH_OBSERVER(EnterpriseDomainObserver, enterprise_domain_observers_,
354 OnEnterpriseDomainChanged()); 364 OnEnterpriseDomainChanged());
355 } 365 }
356 366
367 void SystemTrayNotifier::NotifyMediaCaptureChanged() {
368 FOR_EACH_OBSERVER(
369 MediaCaptureObserver, media_capture_observers_, OnMediaCaptureChanged());
370 }
371
357 void SystemTrayNotifier::NotifyScreenCaptureStart( 372 void SystemTrayNotifier::NotifyScreenCaptureStart(
358 const base::Closure& stop_callback, 373 const base::Closure& stop_callback,
359 const base::string16& sharing_app_name) { 374 const base::string16& sharing_app_name) {
360 FOR_EACH_OBSERVER(ScreenCaptureObserver, screen_capture_observers_, 375 FOR_EACH_OBSERVER(ScreenCaptureObserver, screen_capture_observers_,
361 OnScreenCaptureStart(stop_callback, sharing_app_name)); 376 OnScreenCaptureStart(stop_callback, sharing_app_name));
362 } 377 }
363 378
364 void SystemTrayNotifier::NotifyScreenCaptureStop() { 379 void SystemTrayNotifier::NotifyScreenCaptureStop() {
365 FOR_EACH_OBSERVER(ScreenCaptureObserver, screen_capture_observers_, 380 FOR_EACH_OBSERVER(ScreenCaptureObserver, screen_capture_observers_,
366 OnScreenCaptureStop()); 381 OnScreenCaptureStop());
(...skipping 13 matching lines...) Expand all
380 395
381 void SystemTrayNotifier::NotifyLastWindowClosed() { 396 void SystemTrayNotifier::NotifyLastWindowClosed() {
382 FOR_EACH_OBSERVER(LastWindowClosedObserver, 397 FOR_EACH_OBSERVER(LastWindowClosedObserver,
383 last_window_closed_observers_, 398 last_window_closed_observers_,
384 OnLastWindowClosed()); 399 OnLastWindowClosed());
385 } 400 }
386 401
387 #endif // OS_CHROMEOS 402 #endif // OS_CHROMEOS
388 403
389 } // namespace ash 404 } // namespace ash
OLDNEW
« no previous file with comments | « ash/system/tray/system_tray_notifier.h ('k') | ash/system/user/user_card_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698