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

Unified Diff: chrome/common/media_router/mojo/media_status.mojom

Issue 2932933002: [Media Router] Increment the media's current_time in the WebUI route controller (Closed)
Patch Set: Check that we can increment in onRouteStatusChange_() 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 side-by-side diff with in-line comments
Download patch
Index: chrome/common/media_router/mojo/media_status.mojom
diff --git a/chrome/common/media_router/mojo/media_status.mojom b/chrome/common/media_router/mojo/media_status.mojom
index d0ae472cc6be0af02a9653d5eab809abebadccb1..38a44668e56c69f25940a28f4237f44ba92233f8 100644
--- a/chrome/common/media_router/mojo/media_status.mojom
+++ b/chrome/common/media_router/mojo/media_status.mojom
@@ -10,6 +10,12 @@ import "mojo/common/time.mojom";
// free of details specific to Media Router, so that it can be moved to the
// media namespace and be reused for other features in the future.
struct MediaStatus {
+ enum PlayState {
+ PLAYING,
+ PAUSED,
+ BUFFERING
+ };
+
// The main title of the media. For example, in a MediaStatus representing
// a YouTube Cast session, this could be the title of the video.
string title;
@@ -34,7 +40,8 @@ struct MediaStatus {
// through its MediaController.
bool can_seek;
- bool is_paused;
+ // Whether the media is playing, paused, or buffering.
+ PlayState play_state;
bool is_muted;
« no previous file with comments | « chrome/common/media_router/media_status.cc ('k') | chrome/common/media_router/mojo/media_status_struct_traits.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698