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

Unified Diff: chrome/browser/resources/media_router/media_router_data.js

Issue 1415103006: Non-Local Join for Media Router and Presentation API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review Fixes Created 5 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/resources/media_router/media_router_data.js
diff --git a/chrome/browser/resources/media_router/media_router_data.js b/chrome/browser/resources/media_router/media_router_data.js
index aec528cfc02c4ffd820a8be82fad3ec73f0d718a..6bdcfc18435ec85166edb41f2ab12c0b648f7a19 100644
--- a/chrome/browser/resources/media_router/media_router_data.js
+++ b/chrome/browser/resources/media_router/media_router_data.js
@@ -122,11 +122,12 @@ cr.define('media_router', function() {
* @param {boolean} isLocal True if this is a locally created route.
* @param {?string} customControllerPath non-empty if this route has custom
* controller.
+ * @param {boolean=} opt_canJoin True if this route can be joined.
imcheng 2015/12/01 23:45:06 why not required?
matt.boetger 2015/12/03 01:19:21 Done.
* @constructor
* @struct
*/
var Route = function(id, sinkId, description, tabId, isLocal,
- customControllerPath) {
+ customControllerPath, opt_canJoin) {
/** @type {string} */
this.id = id;
@@ -142,6 +143,9 @@ cr.define('media_router', function() {
/** @type {boolean} */
this.isLocal = isLocal;
+ /** @type {boolean} */
+ this.canJoin = opt_canJoin || false;
+
/** @type {?string} */
this.customControllerPath = customControllerPath;
};

Powered by Google App Engine
This is Rietveld 408576698