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

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

Issue 2725503002: [Media Router] Custom Controls 4 - Implement details view WebUI (Closed)
Patch Set: . Created 3 years, 9 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 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 /** @type {boolean} */ 199 /** @type {boolean} */
200 this.canJoin = canJoin; 200 this.canJoin = canJoin;
201 201
202 /** @type {number|undefined} */ 202 /** @type {number|undefined} */
203 this.currentCastMode = undefined; 203 this.currentCastMode = undefined;
204 204
205 /** @type {?string} */ 205 /** @type {?string} */
206 this.customControllerPath = customControllerPath; 206 this.customControllerPath = customControllerPath;
207 }; 207 };
208 208
209 /**
210 * @param {string} title The title of the route.
211 * @param {string} status The status or the description of the route.
212 * @param {boolean} canPlayPause Whether the route can be played/paused.
213 * @param {boolean} canMute Whether the route can be muted/unmuted.
214 * @param {boolean} canSetVolume Whether the route volume can be changed.
215 * @param {boolean} canSeek Whether the route's playback position can be
216 * changed.
217 * @param {boolean} isPaused Whether the route is paused.
218 * @param {boolean} isMuted Whether the route is muted.
219 * @param {number} volume The route's volume, between 0 and 1.
220 * @param {number} duration The route's duration in milliseconds.
221 * @param {number} currentTime The route's current position in milliseconds.
222 * Must not be greater than |duration|.
223 */
224 var RouteStatus = function(title, status, canPlayPause, canMute, canSetVolume,
225 canSeek, isPaused, isMuted, volume, duration, currentTime) {
226
227 /** @type {string} */
228 this.title = title;
229
230 /** @type {string} */
231 this.status = status;
232
233 /** @type {boolean} */
234 this.canPlayPause = canPlayPause;
235
236 /** @type {boolean} */
237 this.canMute = canMute;
238
239 /** @type {boolean} */
240 this.canSetVolume = canSetVolume;
241
242 /** @type {boolean} */
243 this.canSeek = canSeek;
244
245 /** @type {boolean} */
246 this.isPaused = isPaused;
247
248 /** @type {boolean} */
249 this.isMuted = isMuted;
250
251 /** @type {number} */
252 this.volume = volume;
253
254 /** @type {number} */
255 this.duration = duration;
256
257 /** @type {number} */
258 this.currentTime = currentTime;
259 };
260
209 261
210 /** 262 /**
211 * @param {string} id The ID of the media sink. 263 * @param {string} id The ID of the media sink.
212 * @param {string} name The name of the sink. 264 * @param {string} name The name of the sink.
213 * @param {?string} description Optional description of the sink. 265 * @param {?string} description Optional description of the sink.
214 * @param {?string} domain Optional domain of the sink. 266 * @param {?string} domain Optional domain of the sink.
215 * @param {media_router.SinkIconType} iconType the type of icon for the sink. 267 * @param {media_router.SinkIconType} iconType the type of icon for the sink.
216 * @param {media_router.SinkStatus} status The readiness state of the sink. 268 * @param {media_router.SinkStatus} status The readiness state of the sink.
217 * @param {number} castModes Bitset of cast modes compatible with the sink. 269 * @param {number} castModes Bitset of cast modes compatible with the sink.
218 * @constructor 270 * @constructor
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 314
263 return { 315 return {
264 AUTO_CAST_MODE: AUTO_CAST_MODE, 316 AUTO_CAST_MODE: AUTO_CAST_MODE,
265 CastMode: CastMode, 317 CastMode: CastMode,
266 Issue: Issue, 318 Issue: Issue,
267 Route: Route, 319 Route: Route,
268 Sink: Sink, 320 Sink: Sink,
269 TabInfo: TabInfo, 321 TabInfo: TabInfo,
270 }; 322 };
271 }); 323 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698