Chromium Code Reviews| 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 e5d2c8c1a143210e4d3f057b04d8563c7c07511f..3402d455c97abcfb0947c497965a2478673b273a 100644 |
| --- a/chrome/browser/resources/media_router/media_router_data.js |
| +++ b/chrome/browser/resources/media_router/media_router_data.js |
| @@ -85,6 +85,16 @@ media_router.MediaRouterView = { |
| */ |
| media_router.MINIMUM_SINKS_FOR_SEARCH = 20; |
| +/** |
| + * The states that media can be in. |
| + * @enum {number} |
| + */ |
| +media_router.PlayState = { |
| + PLAYING: 0, |
| + PAUSED: 1, |
| + BUFFERING: 2, |
| +}; |
| + |
| /** |
| * This corresponds to the C++ MediaSink IconType, and the order must stay in |
| * sync. |
| @@ -242,7 +252,7 @@ cr.define('media_router', function() { |
| */ |
| var RouteStatus = function( |
| title, description, canPlayPause, canMute, canSetVolume, canSeek, |
| - isPaused, isMuted, volume, duration, currentTime) { |
| + playState, isPaused, isMuted, volume, duration, currentTime) { |
| /** @type {string} */ |
| this.title = title; |
| @@ -262,8 +272,8 @@ cr.define('media_router', function() { |
| /** @type {boolean} */ |
| this.canSeek = canSeek; |
| - /** @type {boolean} */ |
| - this.isPaused = isPaused; |
| + /** @type {!media_router.PlayState} */ |
|
imcheng
2017/06/20 23:00:00
! not needed
takumif
2017/06/20 23:56:31
Done.
|
| + this.playState = playState; |
| /** @type {boolean} */ |
| this.isMuted = isMuted; |