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

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

Issue 204803002: Make scrubbing a MediaControls-internal concept (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: check mediaControllerInterface().paused() Created 6 years, 9 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 | « Source/core/html/shadow/MediaControlElements.cpp ('k') | Source/core/html/shadow/MediaControls.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/shadow/MediaControls.h
diff --git a/Source/core/html/shadow/MediaControls.h b/Source/core/html/shadow/MediaControls.h
index 669b295eb0d9a6c48c33c60505e8082ad1feeee5..0706645afb8f77ac925e566bc41f51fb7f143fea 100644
--- a/Source/core/html/shadow/MediaControls.h
+++ b/Source/core/html/shadow/MediaControls.h
@@ -51,6 +51,9 @@ public:
void playbackProgressed();
void playbackStopped();
+ void beginScrubbing();
+ void endScrubbing();
+
void updateCurrentTimeDisplay();
void changedMute();
@@ -73,6 +76,8 @@ private:
void makeOpaque();
void makeTransparent();
+ void updatePlayState();
+
bool shouldHideFullscreenControls();
void hideFullscreenControlsTimerFired(Timer<MediaControls>*);
void startHideFullscreenControlsTimer();
@@ -113,8 +118,9 @@ private:
MediaControlPanelEnclosureElement* m_enclosure;
Timer<MediaControls> m_hideFullscreenControlsTimer;
- bool m_isFullscreen;
- bool m_isMouseOverControls;
+ bool m_isFullscreen : 1;
+ bool m_isMouseOverControls : 1;
+ bool m_isPausedForScrubbing : 1;
};
DEFINE_ELEMENT_TYPE_CASTS(MediaControls, isMediaControls());
« no previous file with comments | « Source/core/html/shadow/MediaControlElements.cpp ('k') | Source/core/html/shadow/MediaControls.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698