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

Unified Diff: Source/core/html/shadow/MediaControls.h

Issue 456323002: [WIP] Re-implement MediaControls in Blink-in-JS (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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/shadow/MediaControls.h
diff --git a/Source/core/html/shadow/MediaControls.h b/Source/core/html/shadow/MediaControls.h
index a08c21b5b333373e25031dde4f8e693ea04cb610..8ca6b359e5fd2b6bea9f6e478826edece84c0f36 100644
--- a/Source/core/html/shadow/MediaControls.h
+++ b/Source/core/html/shadow/MediaControls.h
@@ -68,6 +68,24 @@ public:
void mediaElementFocused();
+ String getResourceDataURL(String);
+ bool isOverlayPlayButtonEnabled();
+ bool shouldShowControls() const;
+ void setDivDisplayType(RefPtrWillBeRawPtr<HTMLElement>, unsigned);
+ void setInputDisplayType(RefPtrWillBeRawPtr<HTMLElement>, unsigned);
+ bool fullscreenIsSupported() const;
+ bool hasAudio() const;
+ bool hasVideo() const;
+ bool hasClosedCaptions() const;
+ bool togglePlayStateWillPlay() const;
+ void togglePlayState();
+ void setCurrentTime(double time);
+ bool isClosedCaptionsVisible() const;
+ void toggleClosedCaptionsVisible();
+ void toggleFullscreen();
+ double getTextTrackContainerFontSize();
+ void updateTextTrackContainerDisplay(RefPtrWillBeRawPtr<HTMLElement>);
+
virtual void trace(Visitor*) OVERRIDE;
private:
@@ -126,8 +144,7 @@ private:
RawPtrWillBeMember<MediaControlPanelEnclosureElement> m_enclosure;
Timer<MediaControls> m_hideMediaControlsTimer;
- bool m_isMouseOverControls : 1;
- bool m_isPausedForScrubbing : 1;
+ IntRect m_videoDisplaySize;
};
DEFINE_ELEMENT_TYPE_CASTS(MediaControls, isMediaControls());

Powered by Google App Engine
This is Rietveld 408576698