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

Unified Diff: core/html/MediaController.idl

Issue 1660113002: Updated to Chrome 45 (2454) moved from SVN to git. Base URL: https://github.com/dart-lang/webcore.git@roll_45
Patch Set: Created 4 years, 11 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 | « core/html/ImageData.idl ('k') | core/html/MediaError.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: core/html/MediaController.idl
diff --git a/core/html/MediaController.idl b/core/html/MediaController.idl
index 0a61cb608ac213f8d763b6c55d494b6d80a51667..ca1dad47a81b9c3d4c87c0d7eca19200c46d36d0 100644
--- a/core/html/MediaController.idl
+++ b/core/html/MediaController.idl
@@ -23,30 +23,35 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-// http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.html#mediacontroller
+// https://html.spec.whatwg.org/#media-controllers
+
+enum MediaControllerPlaybackState { "waiting", "playing", "ended" };
[
Constructor,
ConstructorCallWith=ExecutionContext,
RuntimeEnabled=MediaController,
- TypeChecking=Unrestricted,
] interface MediaController : EventTarget {
+ // TODO(philipj): Expose readyState.
+ // readonly attribute unsigned short readyState; // uses HTMLMediaElement.readyState's values
+
readonly attribute TimeRanges buffered;
readonly attribute TimeRanges seekable;
-
readonly attribute unrestricted double duration;
attribute double currentTime;
readonly attribute boolean paused;
+ readonly attribute MediaControllerPlaybackState playbackState;
readonly attribute TimeRanges played;
- readonly attribute DOMString playbackState;
- void play();
void pause();
void unpause();
+ void play(); // calls play() on all media elements as well
attribute double defaultPlaybackRate;
attribute double playbackRate;
[RaisesException=Setter] attribute double volume;
attribute boolean muted;
+
+ // TODO(philipj): Expose the on* event handler attributes.
};
« no previous file with comments | « core/html/ImageData.idl ('k') | core/html/MediaError.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698