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

Side by Side Diff: chrome/browser/resources/media_router/media_router_data.js

Issue 2040873002: [Media Router] Assign each route a current cast mode if possible (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Any strings used here will already be localized. Values such as 5 // Any strings used here will already be localized. Values such as
6 // CastMode.type or IDs will be defined elsewhere and determined later. 6 // CastMode.type or IDs will be defined elsewhere and determined later.
7 7
8 cr.exportPath('media_router'); 8 cr.exportPath('media_router');
9 9
10 /** 10 /**
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 191
192 /** @type {?number} */ 192 /** @type {?number} */
193 this.tabId = tabId; 193 this.tabId = tabId;
194 194
195 /** @type {boolean} */ 195 /** @type {boolean} */
196 this.isLocal = isLocal; 196 this.isLocal = isLocal;
197 197
198 /** @type {boolean} */ 198 /** @type {boolean} */
199 this.canJoin = canJoin; 199 this.canJoin = canJoin;
200 200
201 /** @type {number|undefined} */
202 this.currentCastMode = undefined;
203
201 /** @type {?string} */ 204 /** @type {?string} */
202 this.customControllerPath = customControllerPath; 205 this.customControllerPath = customControllerPath;
203 }; 206 };
204 207
205 208
206 /** 209 /**
207 * @param {string} id The ID of the media sink. 210 * @param {string} id The ID of the media sink.
208 * @param {string} name The name of the sink. 211 * @param {string} name The name of the sink.
209 * @param {?string} description Optional description of the sink. 212 * @param {?string} description Optional description of the sink.
210 * @param {?string} domain Optional domain of the sink. 213 * @param {?string} domain Optional domain of the sink.
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 261
259 return { 262 return {
260 AUTO_CAST_MODE: AUTO_CAST_MODE, 263 AUTO_CAST_MODE: AUTO_CAST_MODE,
261 CastMode: CastMode, 264 CastMode: CastMode,
262 Issue: Issue, 265 Issue: Issue,
263 Route: Route, 266 Route: Route,
264 Sink: Sink, 267 Sink: Sink,
265 TabInfo: TabInfo, 268 TabInfo: TabInfo,
266 }; 269 };
267 }); 270 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698