Chromium Code Reviews

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.
Jump to:
View side-by-side diff with in-line comments
Index: Source/core/html/shadow/MediaControls.h
diff --git a/Source/core/html/shadow/MediaControls.h b/Source/core/html/shadow/MediaControls.h
index 21c767ae56e91e6bcacca6691607cfd461f32429..8ce4114128189d9e306a108a311f1d634f5a48df 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:
@@ -125,8 +143,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