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

Unified Diff: chrome/browser/media/router/media_route.h

Issue 2471883002: [Presentation API] (1st) (1-UA) Add is_offscreen_presentation attribute to MediaRouter (Closed)
Patch Set: resolve code review comments from Mark 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
Index: chrome/browser/media/router/media_route.h
diff --git a/chrome/browser/media/router/media_route.h b/chrome/browser/media/router/media_route.h
index 2d36e244292abf1b8bedd8ee54dd81807e69ee1a..d1d60b6e2ad63ed935dabfa1659e954a75c26921 100644
--- a/chrome/browser/media/router/media_route.h
+++ b/chrome/browser/media/router/media_route.h
@@ -78,6 +78,14 @@ class MediaRoute {
bool incognito() const { return incognito_; }
+ // Set to |true| if the presentation associated with this route is an
+ // offscreen presentation.
+ void set_is_offscreen_presentation(bool is_offscreen_presentation) {
mark a. foltz 2016/11/09 19:28:22 Can this be set_offscreen_presentation()?
zhaobin 2016/11/11 18:41:51 Done.
+ is_offscreen_presentation_ = is_offscreen_presentation;
+ }
+
+ bool is_offscreen_presentation() const { return is_offscreen_presentation_; }
+
bool Equals(const MediaRoute& other) const;
private:
@@ -89,6 +97,7 @@ class MediaRoute {
std::string custom_controller_path_;
bool for_display_;
bool incognito_;
mark a. foltz 2016/11/09 19:28:22 Side comment: Looking at the rest of this object,
zhaobin 2016/11/11 18:41:51 Will do it later in seperate patch.
+ bool is_offscreen_presentation_;
};
} // namespace media_router

Powered by Google App Engine
This is Rietveld 408576698