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

Unified 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, 10 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 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 2c034acff2a027730bc865db62d0f2dbc5fdf6fb..dc35f646be452a652b8afa615faed239c231312b 100644
--- a/chrome/browser/resources/media_router/media_router_data.js
+++ b/chrome/browser/resources/media_router/media_router_data.js
@@ -206,6 +206,58 @@ cr.define('media_router', function() {
this.customControllerPath = customControllerPath;
};
+ /**
+ * @param {string} title The title of the route.
+ * @param {string} status The status or the description of the route.
+ * @param {boolean} canPlayPause Whether the route can be played/paused.
+ * @param {boolean} canMute Whether the route can be muted/unmuted.
+ * @param {boolean} canSetVolume Whether the route volume can be changed.
+ * @param {boolean} canSeek Whether the route's playback position can be
+ * changed.
+ * @param {boolean} isPaused Whether the route is paused.
+ * @param {boolean} isMuted Whether the route is muted.
+ * @param {number} volume The route's volume, between 0 and 1.
+ * @param {number} duration The route's duration in milliseconds.
+ * @param {number} currentTime The route's current position in milliseconds.
+ * Must not be greater than |duration|.
+ */
+ var RouteStatus = function(title, status, canPlayPause, canMute, canSetVolume,
+ canSeek, isPaused, isMuted, volume, duration, currentTime) {
+
+ /** @type {string} */
+ this.title = title;
+
+ /** @type {string} */
+ this.status = status;
+
+ /** @type {boolean} */
+ this.canPlayPause = canPlayPause;
+
+ /** @type {boolean} */
+ this.canMute = canMute;
+
+ /** @type {boolean} */
+ this.canSetVolume = canSetVolume;
+
+ /** @type {boolean} */
+ this.canSeek = canSeek;
+
+ /** @type {boolean} */
+ this.isPaused = isPaused;
+
+ /** @type {boolean} */
+ this.isMuted = isMuted;
+
+ /** @type {number} */
+ this.volume = volume;
+
+ /** @type {number} */
+ this.duration = duration;
+
+ /** @type {number} */
+ this.currentTime = currentTime;
+ };
+
/**
* @param {string} id The ID of the media sink.

Powered by Google App Engine
This is Rietveld 408576698