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

Unified Diff: Source/core/html/HTMLMediaElement.h

Issue 291163004: Implement media cast buttons (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Make sure cast button intercepts touches Created 6 years, 4 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: Source/core/html/HTMLMediaElement.h
diff --git a/Source/core/html/HTMLMediaElement.h b/Source/core/html/HTMLMediaElement.h
index 4aeb78fc12c83e7ccae16436395f7b2bc49ef4f5..fca5982ebb127f08143612a586a089702fdb1cc2 100644
--- a/Source/core/html/HTMLMediaElement.h
+++ b/Source/core/html/HTMLMediaElement.h
@@ -109,6 +109,9 @@ public:
bool isActive() const { return m_active; }
+ bool hasRemoteRoutes() const { return m_remoteRoutesAvailable; }
+ bool isPlayingRemotely() const { return m_playingRemotely; }
+
// error state
PassRefPtrWillBeRawPtr<MediaError> error() const;
@@ -149,6 +152,8 @@ public:
void setLoop(bool b);
void play();
void pause();
+ void requestRemotePlayback();
+ void requestRemotePlaybackControl();
// statistics
unsigned webkitAudioDecodedByteCount() const;
@@ -261,6 +266,10 @@ public:
bool closedCaptionsVisible() const;
void setClosedCaptionsVisible(bool);
+ void remoteRouteAvailabilityChanged(bool);
+ void connectedToRemoteDevice();
+ void disconnectedFromRemoteDevice();
+
MediaControls* mediaControls() const;
void sourceWasRemoved(HTMLSourceElement*);
@@ -577,6 +586,8 @@ private:
bool m_tracksAreReady : 1;
bool m_haveVisibleTextTrack : 1;
bool m_processingPreferenceChange : 1;
+ bool m_remoteRoutesAvailable : 1;
+ bool m_playingRemotely : 1;
#if ENABLE(OILPAN)
bool m_isFinalizing : 1;
bool m_closeMediaSourceWhenFinalizing : 1;

Powered by Google App Engine
This is Rietveld 408576698