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

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

Issue 214793005: Use HTMLMediaElement::togglePlayState() where appropriate (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: documentation 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 | « no previous file | Source/core/html/HTMLMediaElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLMediaElement.h
diff --git a/Source/core/html/HTMLMediaElement.h b/Source/core/html/HTMLMediaElement.h
index 774308fab390b5468fe3d0816d30e96d9a606a4f..0ce2107d26b6525c91a4aa2f23407dea3c6a2abe 100644
--- a/Source/core/html/HTMLMediaElement.h
+++ b/Source/core/html/HTMLMediaElement.h
@@ -126,7 +126,7 @@ public:
virtual double currentTime() const OVERRIDE FINAL;
virtual void setCurrentTime(double, ExceptionState&) OVERRIDE FINAL;
virtual double duration() const OVERRIDE FINAL;
- virtual bool paused() const OVERRIDE FINAL;
+ bool paused() const;
double defaultPlaybackRate() const;
void setDefaultPlaybackRate(double);
double playbackRate() const;
@@ -138,8 +138,8 @@ public:
bool autoplay() const;
bool loop() const;
void setLoop(bool b);
- virtual void play() OVERRIDE FINAL;
- virtual void pause() OVERRIDE FINAL;
+ void play();
+ void pause();
// statistics
unsigned webkitAudioDecodedByteCount() const;
@@ -157,8 +157,9 @@ public:
virtual bool muted() const OVERRIDE FINAL;
virtual void setMuted(bool) OVERRIDE FINAL;
- virtual bool canPlay() const OVERRIDE FINAL;
-
+ // play/pause toggling that uses the media controller if present. togglePlayStateWillPlay() is
+ // true if togglePlayState() will call play() or unpause() on the media element or controller.
+ bool togglePlayStateWillPlay() const;
void togglePlayState();
PassRefPtr<TextTrack> addTextTrack(const AtomicString& kind, const AtomicString& label, const AtomicString& language, ExceptionState&);
« no previous file with comments | « no previous file | Source/core/html/HTMLMediaElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698