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

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

Issue 2466043002: Cleanup TrayCast with media-router only support in mind. (Closed)
Patch Set: Add TODO Created 4 years, 1 month 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/common/cast_config_delegate.h ('k') | ash/common/system/chromeos/cast/tray_cast.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/system/chromeos/cast/tray_cast.h
diff --git a/ash/common/system/chromeos/cast/tray_cast.h b/ash/common/system/chromeos/cast/tray_cast.h
index afdb1c86c9efbf802c6681da717ee4bd23722149..dd20176072a09d9c358a43d40772f88ff8d1642c 100644
--- a/ash/common/system/chromeos/cast/tray_cast.h
+++ b/ash/common/system/chromeos/cast/tray_cast.h
@@ -58,10 +58,17 @@ class ASH_EXPORT TrayCast : public SystemTrayItem,
// casting session.
void UpdatePrimaryView();
+ // Returns true if there is an active cast route. The route may be DIAL based,
+ // such as casting YouTube where the cast sink directly streams content from
+ // another server. In that case, is_mirror_casting_ will be false since this
+ // device is not actively transmitting information to the cast sink.
+ bool HasActiveRoute();
+
CastConfigDelegate::SinksAndRoutes sinks_and_routes_;
- bool is_casting_ = false;
- bool added_observer_ = false;
+ // True if there is a mirror-based cast session and the active-cast tray icon
+ // should be shown.
+ bool is_mirror_casting_ = false;
// Not owned.
tray::CastTrayView* tray_ = nullptr;
« no previous file with comments | « ash/common/cast_config_delegate.h ('k') | ash/common/system/chromeos/cast/tray_cast.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698