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

Unified Diff: Source/core/html/MediaController.cpp

Issue 247083003: Revert "Make scrubbing a MediaControls-internal concept" (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 8 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/MediaController.h ('k') | Source/core/html/shadow/MediaControls.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/MediaController.cpp
diff --git a/Source/core/html/MediaController.cpp b/Source/core/html/MediaController.cpp
index a4143250994c2a7be49dbeefe96c33d8786b3ab1..d2b33ea7b5e33659c0ab5af89e55c66c0b18ab95 100644
--- a/Source/core/html/MediaController.cpp
+++ b/Source/core/html/MediaController.cpp
@@ -607,6 +607,22 @@ void MediaController::clearPositionTimerFired(Timer<MediaController>*)
m_position = MediaPlayer::invalidTime();
}
+void MediaController::beginScrubbing()
+{
+ for (size_t index = 0; index < m_mediaElements.size(); ++index)
+ m_mediaElements[index]->beginScrubbing();
+ if (m_playbackState == PLAYING)
+ m_clock->stop();
+}
+
+void MediaController::endScrubbing()
+{
+ for (size_t index = 0; index < m_mediaElements.size(); ++index)
+ m_mediaElements[index]->endScrubbing();
+ if (m_playbackState == PLAYING)
+ m_clock->start();
+}
+
const AtomicString& MediaController::interfaceName() const
{
return EventTargetNames::MediaController;
« no previous file with comments | « Source/core/html/MediaController.h ('k') | Source/core/html/shadow/MediaControls.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698