Index: core/html/HTMLMediaElement.idl |
diff --git a/core/html/HTMLMediaElement.idl b/core/html/HTMLMediaElement.idl |
index 0ced5dc08131f250cda4f0231deb99e6b44de111..80899b4169a8da4eb15fde2c0d3570753329f0ca 100644 |
--- a/core/html/HTMLMediaElement.idl |
+++ b/core/html/HTMLMediaElement.idl |
@@ -27,7 +27,7 @@ |
enum CanPlayTypeResult { "" /* empty string */, "maybe", "probably" }; |
[ |
- ActiveDOMObject, |
+ DependentLifetime, |
RuntimeEnabled=Media, |
] interface HTMLMediaElement : HTMLElement { |
@@ -55,11 +55,11 @@ enum CanPlayTypeResult { "" /* empty string */, "maybe", "probably" }; |
const unsigned short HAVE_CURRENT_DATA = 2; |
const unsigned short HAVE_FUTURE_DATA = 3; |
const unsigned short HAVE_ENOUGH_DATA = 4; |
- readonly attribute unsigned short readyState; |
+ [ImplementedAs=getReadyState] readonly attribute unsigned short readyState; |
readonly attribute boolean seeking; |
// playback state |
- [RaisesException=Setter] attribute double currentTime; |
+ attribute double currentTime; |
// FIXME: void fastSeek(double time); |
readonly attribute unrestricted double duration; |
// FIXME: Date getStartDate(); crbug.com/312699 |
@@ -71,13 +71,9 @@ enum CanPlayTypeResult { "" /* empty string */, "maybe", "probably" }; |
readonly attribute boolean ended; |
[Reflect] attribute boolean autoplay; |
[Reflect] attribute boolean loop; |
- void play(); |
+ [CallWith=ScriptState, ImplementedAs=playForBindings] Promise<void> play(); |
void pause(); |
- // media controller |
- [RuntimeEnabled=MediaController, Reflect] attribute DOMString mediaGroup; |
- [RuntimeEnabled=MediaController, TypeChecking=Interface] attribute MediaController? controller; |
- |
// controls |
[Reflect] attribute boolean controls; |
[RaisesException=Setter] attribute double volume; |
@@ -91,7 +87,6 @@ enum CanPlayTypeResult { "" /* empty string */, "maybe", "probably" }; |
[RaisesException] TextTrack addTextTrack(TextTrackKind kind, optional DOMString label = "", optional DOMString language = ""); |
// Non-standard APIs |
- [RuntimeEnabled=PrefixedEncryptedMedia, DeprecateAs=CanPlayTypeKeySystem] DOMString canPlayType(DOMString type, [TreatUndefinedAs=NullString] DOMString? keySystem); |
// The number of bytes consumed by the media decoder. |
[MeasureAs=PrefixedAudioDecodedByteCount] readonly attribute unsigned long webkitAudioDecodedByteCount; |
[MeasureAs=PrefixedVideoDecodedByteCount] readonly attribute unsigned long webkitVideoDecodedByteCount; |