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

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

Issue 2480003002: [RemotePlayback] Keep track of source compatibility and reject prompt() correspondingly (Closed)
Patch Set: Fixed the java enum comment Created 4 years, 1 month 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: third_party/WebKit/Source/core/html/HTMLMediaElement.h
diff --git a/third_party/WebKit/Source/core/html/HTMLMediaElement.h b/third_party/WebKit/Source/core/html/HTMLMediaElement.h
index 7e93de204668e5ba00636fb503c02f15fae9a430..68c5c311b44125e2296c464f5ab20e112120bbc2 100644
--- a/third_party/WebKit/Source/core/html/HTMLMediaElement.h
+++ b/third_party/WebKit/Source/core/html/HTMLMediaElement.h
@@ -117,7 +117,7 @@ class CORE_EXPORT HTMLMediaElement : public HTMLElement,
};
void scheduleTextTrackResourceLoad();
- bool hasRemoteRoutes() const { return m_remoteRoutesAvailable; }
+ bool hasRemoteRoutes() const;
bool isPlayingRemotely() const { return m_playingRemotely; }
// error state
@@ -308,6 +308,9 @@ class CORE_EXPORT HTMLMediaElement : public HTMLElement,
WebRemotePlaybackClient* remotePlaybackClient() {
return m_remotePlaybackClient;
}
+ const WebRemotePlaybackClient* remotePlaybackClient() const {
+ return m_remotePlaybackClient;
+ }
protected:
HTMLMediaElement(const QualifiedName&, Document&);
@@ -386,7 +389,7 @@ class CORE_EXPORT HTMLMediaElement : public HTMLElement,
void removeTextTrack(WebInbandTextTrack*) final;
void mediaSourceOpened(WebMediaSource*) final;
void requestSeek(double) final;
- void remoteRouteAvailabilityChanged(bool) final;
+ void remoteRouteAvailabilityChanged(WebRemotePlaybackAvailability) final;
void connectedToRemoteDevice() final;
void disconnectedFromRemoteDevice() final;
void cancelledRemotePlaybackRequest() final;
@@ -641,7 +644,6 @@ class CORE_EXPORT HTMLMediaElement : public HTMLElement,
bool m_tracksAreReady : 1;
bool m_processingPreferenceChange : 1;
- bool m_remoteRoutesAvailable : 1;
bool m_playingRemotely : 1;
// Whether this element is in overlay fullscreen mode.
bool m_inOverlayFullscreenVideo : 1;

Powered by Google App Engine
This is Rietveld 408576698