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

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

Issue 1377353002: Update poster code as per https://html.spec.whatwg.org/#show-poster-flag Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update "show poster" flag as per spec Created 5 years, 2 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 | third_party/WebKit/Source/core/html/HTMLMediaElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 c50d9849c6834ae926ecb763c6e99d210c683290..938d82016452dc180b61e6c13da9b55c3421d87a 100644
--- a/third_party/WebKit/Source/core/html/HTMLMediaElement.h
+++ b/third_party/WebKit/Source/core/html/HTMLMediaElement.h
@@ -280,9 +280,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*);
@@ -311,8 +309,6 @@ private:
// ActiveDOMObject functions.
void stop() final;
- virtual void updateDisplayState() { }
-
void setReadyState(ReadyState);
void setNetworkState(WebMediaPlayer::NetworkState);
@@ -520,8 +516,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 | third_party/WebKit/Source/core/html/HTMLMediaElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698