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

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: Tidy up button name 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 c996f664473cbf2f310bff5497d24a0f16db811c..233ec59cfa96c032d338aa4f96a71999b1c0b973 100644
--- a/Source/core/html/HTMLMediaElement.h
+++ b/Source/core/html/HTMLMediaElement.h
@@ -108,6 +108,9 @@ public:
bool isActive() const { return m_active; }
+ bool hasRemoteRoutes() const { return m_remoteRoutesAvailable; }
+ bool isCasting() const { return m_casting; }
acolwell GONE FROM CHROMIUM 2014/08/05 19:36:34 nit: s/Casting/PlayingRemotely/ since all your oth
aberent 2014/08/22 14:08:34 Done.
+
// error state
PassRefPtrWillBeRawPtr<MediaError> error() const;
@@ -148,6 +151,8 @@ public:
void setLoop(bool b);
void play();
void pause();
+ void requestRemotePlayback();
+ void requestRemotePlaybackControl();
// statistics
unsigned webkitAudioDecodedByteCount() const;
@@ -359,6 +364,9 @@ private:
virtual void mediaPlayerPlaybackStateChanged() OVERRIDE FINAL;
virtual void mediaPlayerRequestFullscreen() OVERRIDE FINAL;
virtual void mediaPlayerRequestSeek(double) OVERRIDE FINAL;
+ virtual void mediaPlayerRemoteRouteAvailabilityChanged(bool) OVERRIDE FINAL;
+ virtual void mediaPlayerConnectedToRemoteDevice() OVERRIDE FINAL;
+ virtual void mediaPlayerDisconnectedFromRemoteDevice() OVERRIDE FINAL;
virtual void mediaPlayerRepaint() OVERRIDE FINAL;
virtual void mediaPlayerSizeChanged() OVERRIDE FINAL;
virtual void mediaPlayerSetWebLayer(blink::WebLayer*) OVERRIDE FINAL;
@@ -573,6 +581,8 @@ private:
bool m_tracksAreReady : 1;
bool m_haveVisibleTextTrack : 1;
bool m_processingPreferenceChange : 1;
+ bool m_remoteRoutesAvailable : 1;
+ bool m_casting : 1;
acolwell GONE FROM CHROMIUM 2014/08/05 19:36:34 ditto
aberent 2014/08/22 14:08:34 Done.
#if ENABLE(OILPAN)
bool m_isFinalizing : 1;
bool m_closeMediaSourceWhenFinalizing : 1;

Powered by Google App Engine
This is Rietveld 408576698