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

Unified 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, 8 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/tray/system_tray_notifier.cc
diff --git a/ash/system/tray/system_tray_notifier.cc b/ash/system/tray/system_tray_notifier.cc
index ed858c3f9fb3ea1290c24c00d5ff56c2649b570e..5801ce6b5b9c4c82dda0c0a3faf5f856717b42d1 100644
--- a/ash/system/tray/system_tray_notifier.cc
+++ b/ash/system/tray/system_tray_notifier.cc
@@ -151,6 +151,16 @@ void SystemTrayNotifier::RemoveEnterpriseDomainObserver(
enterprise_domain_observers_.RemoveObserver(observer);
}
+void SystemTrayNotifier::AddMediaCaptureObserver(
+ MediaCaptureObserver* observer) {
+ media_capture_observers_.AddObserver(observer);
+}
+
+void SystemTrayNotifier::RemoveMediaCaptureObserver(
+ MediaCaptureObserver* observer) {
+ media_capture_observers_.RemoveObserver(observer);
+}
+
void SystemTrayNotifier::AddScreenCaptureObserver(
ScreenCaptureObserver* observer) {
screen_capture_observers_.AddObserver(observer);
@@ -354,6 +364,11 @@ void SystemTrayNotifier::NotifyEnterpriseDomainChanged() {
OnEnterpriseDomainChanged());
}
+void SystemTrayNotifier::NotifyMediaCaptureChanged() {
+ FOR_EACH_OBSERVER(
+ MediaCaptureObserver, media_capture_observers_, OnMediaCaptureChanged());
+}
+
void SystemTrayNotifier::NotifyScreenCaptureStart(
const base::Closure& stop_callback,
const base::string16& sharing_app_name) {
« 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