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

Unified Diff: ash/system/tray/system_tray_notifier.cc

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, 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
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 40e70501df9e1199992ac14135bc6bf0a21152dc..b02d6abb44043458b2db81e8c69ed0e14ec08376 100644
--- a/ash/system/tray/system_tray_notifier.cc
+++ b/ash/system/tray/system_tray_notifier.cc
@@ -38,6 +38,14 @@ void SystemTrayNotifier::RemoveBluetoothObserver(BluetoothObserver* observer) {
bluetooth_observers_.RemoveObserver(observer);
}
+void SystemTrayNotifier::AddCastObserver(CastObserver* observer) {
+ cast_observers_.AddObserver(observer);
+}
+
+void SystemTrayNotifier::RemoveCastObserver(CastObserver* observer) {
+ cast_observers_.RemoveObserver(observer);
+}
+
void SystemTrayNotifier::AddClockObserver(ClockObserver* observer) {
clock_observers_.AddObserver(observer);
}

Powered by Google App Engine
This is Rietveld 408576698