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

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

Issue 2938173004: [Media Router] Add a supports_web_ui_controller attribute to MediaRoute (Closed)
Patch Set: Created 3 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 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 /** 186 /**
187 * @param {string} id The media route ID. 187 * @param {string} id The media route ID.
188 * @param {string} sinkId The ID of the media sink running this route. 188 * @param {string} sinkId The ID of the media sink running this route.
189 * @param {string} description The short description of this route. 189 * @param {string} description The short description of this route.
190 * @param {?number} tabId The ID of the tab in which web app is running and 190 * @param {?number} tabId The ID of the tab in which web app is running and
191 * accessing the route. 191 * accessing the route.
192 * @param {boolean} isLocal True if this is a locally created route. 192 * @param {boolean} isLocal True if this is a locally created route.
193 * @param {boolean} canJoin True if this route can be joined. 193 * @param {boolean} canJoin True if this route can be joined.
194 * @param {?string} customControllerPath non-empty if this route has custom 194 * @param {?string} customControllerPath non-empty if this route has custom
195 * controller. 195 * controller.
196 * @param {boolean} supportsWebUiController Whether the route supports the
197 * WebUI controller. If not, then extensionview is used.
196 * @constructor 198 * @constructor
197 * @struct 199 * @struct
198 */ 200 */
199 var Route = function(id, sinkId, description, tabId, isLocal, canJoin, 201 var Route = function(id, sinkId, description, tabId, isLocal, canJoin,
200 customControllerPath) { 202 customControllerPath) {
201 /** @type {string} */ 203 /** @type {string} */
202 this.id = id; 204 this.id = id;
203 205
204 /** @type {string} */ 206 /** @type {string} */
205 this.sinkId = sinkId; 207 this.sinkId = sinkId;
206 208
207 /** @type {string} */ 209 /** @type {string} */
208 this.description = description; 210 this.description = description;
209 211
210 /** @type {?number} */ 212 /** @type {?number} */
211 this.tabId = tabId; 213 this.tabId = tabId;
212 214
213 /** @type {boolean} */ 215 /** @type {boolean} */
214 this.isLocal = isLocal; 216 this.isLocal = isLocal;
215 217
216 /** @type {boolean} */ 218 /** @type {boolean} */
217 this.canJoin = canJoin; 219 this.canJoin = canJoin;
218 220
219 /** @type {number|undefined} */ 221 /** @type {number|undefined} */
220 this.currentCastMode = undefined; 222 this.currentCastMode = undefined;
221 223
222 /** @type {?string} */ 224 /** @type {?string} */
223 this.customControllerPath = customControllerPath; 225 this.customControllerPath = customControllerPath;
226
227 /** @type {boolean} */
228 this.supportsWebUiController = false;
224 }; 229 };
225 230
226 /** 231 /**
227 * @param {string} title The title of the route. 232 * @param {string} title The title of the route.
228 * @param {string} description A description for the route. 233 * @param {string} description A description for the route.
229 * @param {boolean} canPlayPause Whether the route can be played/paused. 234 * @param {boolean} canPlayPause Whether the route can be played/paused.
230 * @param {boolean} canMute Whether the route can be muted/unmuted. 235 * @param {boolean} canMute Whether the route can be muted/unmuted.
231 * @param {boolean} canSetVolume Whether the route volume can be changed. 236 * @param {boolean} canSetVolume Whether the route volume can be changed.
232 * @param {boolean} canSeek Whether the route's playback position can be 237 * @param {boolean} canSeek Whether the route's playback position can be
233 * changed. 238 * changed.
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
335 return { 340 return {
336 AUTO_CAST_MODE: AUTO_CAST_MODE, 341 AUTO_CAST_MODE: AUTO_CAST_MODE,
337 CastMode: CastMode, 342 CastMode: CastMode,
338 Issue: Issue, 343 Issue: Issue,
339 Route: Route, 344 Route: Route,
340 RouteStatus: RouteStatus, 345 RouteStatus: RouteStatus,
341 Sink: Sink, 346 Sink: Sink,
342 TabInfo: TabInfo, 347 TabInfo: TabInfo,
343 }; 348 };
344 }); 349 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698