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

Unified Diff: chrome/common/media_router/media_status.h

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/media_status.h
diff --git a/chrome/common/media_router/media_status.h b/chrome/common/media_router/media_status.h
index 421571318fd90c1a7f7c19297b3ebc7049df3c07..7686704b0c1d4237d524203263cab9fec2c4c83b 100644
--- a/chrome/common/media_router/media_status.h
+++ b/chrome/common/media_router/media_status.h
@@ -14,6 +14,8 @@ namespace media_router {
// Represents the current state of a media content.
struct MediaStatus {
public:
+ enum class PlayState { PLAYING, PAUSED, BUFFERING };
+
MediaStatus();
MediaStatus(const MediaStatus& other);
~MediaStatus();
@@ -41,7 +43,7 @@ struct MediaStatus {
// If this is true, the media's current playback position can be changed.
bool can_seek = false;
- bool is_paused = false;
+ PlayState play_state = PlayState::PLAYING;
bool is_muted = false;

Powered by Google App Engine
This is Rietveld 408576698