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

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

Issue 1297983002: Update poster code as per https://html.spec.whatwg.org/#show-poster-flag (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: clean up Created 5 years, 3 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
« no previous file with comments | « no previous file | Source/core/html/HTMLMediaElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLMediaElement.h
diff --git a/Source/core/html/HTMLMediaElement.h b/Source/core/html/HTMLMediaElement.h
index ca381547f012a480c77082af3fadf6a7b1f44aaf..215cb19eee1108da50b2908d8af0a92d3493e646 100644
--- a/Source/core/html/HTMLMediaElement.h
+++ b/Source/core/html/HTMLMediaElement.h
@@ -277,9 +277,7 @@ protected:
void didMoveToNewDocument(Document& oldDocument) override;
virtual KURL posterImageURL() const { return KURL(); }
- enum DisplayMode { Unknown, Poster, Video };
- DisplayMode displayMode() const { return m_displayMode; }
- virtual void setDisplayMode(DisplayMode mode) { m_displayMode = mode; }
+ virtual void setShowPoster(bool showPoster) { }
void setControllerInternal(MediaController*);
@@ -308,7 +306,7 @@ private:
// ActiveDOMObject functions.
void stop() final;
- virtual void updateDisplayState() { }
+ virtual void updateDisplayState(bool forceUpdate) { }
void setReadyState(ReadyState);
void setNetworkState(WebMediaPlayer::NetworkState);
@@ -503,8 +501,6 @@ private:
OwnPtr<WebMediaPlayer> m_webMediaPlayer;
WebLayer* m_webLayer;
- DisplayMode m_displayMode;
-
RefPtrWillBeMember<HTMLMediaSource> m_mediaSource;
// Cached time value. Only valid when ready state is HAVE_METADATA or
« no previous file with comments | « no previous file | Source/core/html/HTMLMediaElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698