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

Unified Diff: ash/system/cast/tray_cast.h

Issue 1288073005: Make the ChromeOS chromecast system tray integration use a private API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkgr
Patch Set: Created 5 years, 4 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/cast_config_delegate.h ('k') | ash/system/cast/tray_cast.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/cast/tray_cast.h
diff --git a/ash/system/cast/tray_cast.h b/ash/system/cast/tray_cast.h
index 8474a754e2578cb8349dc549a723e56edf3c4d72..96bb903d84a913c118aae071c0c8be8518411721 100644
--- a/ash/system/cast/tray_cast.h
+++ b/ash/system/cast/tray_cast.h
@@ -48,7 +48,7 @@ class ASH_EXPORT TrayCast : public SystemTrayItem, public ShellObserver {
// Callback used to enable/disable the begin casting view depending on
// if we have any cast receivers.
- void UpdateCachedReceiverState(
+ void OnReceiversUpdated(
const CastConfigDelegate::ReceiversAndActivites& receivers_activities);
// This makes sure that the current view displayed in the tray is the correct
@@ -58,14 +58,15 @@ class ASH_EXPORT TrayCast : public SystemTrayItem, public ShellObserver {
// casting session.
void UpdatePrimaryView();
+ CastConfigDelegate::ReceiversAndActivites receivers_and_activities_;
+ CastConfigDelegate::DeviceUpdateSubscription device_update_subscription_;
+ bool is_casting_ = false;
+
// Not owned.
tray::CastTrayView* tray_ = nullptr;
tray::CastDuplexView* default_ = nullptr;
tray::CastDetailedView* detailed_ = nullptr;
- CastConfigDelegate* cast_config_delegate_;
- bool has_cast_receivers_ = false;
- bool is_casting_ = false;
base::WeakPtrFactory<TrayCast> weak_ptr_factory_;
DISALLOW_COPY_AND_ASSIGN(TrayCast);
« no previous file with comments | « ash/cast_config_delegate.h ('k') | ash/system/cast/tray_cast.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698