Index: Source/core/html/HTMLMediaElement.idl |
diff --git a/Source/core/html/HTMLMediaElement.idl b/Source/core/html/HTMLMediaElement.idl |
index bc4888796c4af88cc97898c57193f849de0baab7..ed52c9237575361e1c612fdd4f0dcc800e2c4edc 100644 |
--- a/Source/core/html/HTMLMediaElement.idl |
+++ b/Source/core/html/HTMLMediaElement.idl |
@@ -23,6 +23,9 @@ |
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
+// https://html.spec.whatwg.org/#htmlmediaelement |
+ |
+enum CanPlayTypeResult { "" /* empty string */, "maybe", "probably" }; |
[ |
ActiveDOMObject, |
RuntimeEnabled=Media, |
@@ -33,20 +36,18 @@ |
// network state |
[Reflect, URL] attribute DOMString src; |
- [URL] readonly attribute DOMString currentSrc; |
+ // FIXME: attribute MediaProvider? srcObject; crbug.com/387740 |
+ readonly attribute DOMString currentSrc; |
[Reflect, ReflectOnly=("anonymous","use-credentials"), ReflectEmpty="anonymous", ReflectInvalid="anonymous"] attribute DOMString? crossOrigin; |
- |
const unsigned short NETWORK_EMPTY = 0; |
const unsigned short NETWORK_IDLE = 1; |
const unsigned short NETWORK_LOADING = 2; |
const unsigned short NETWORK_NO_SOURCE = 3; |
readonly attribute unsigned short networkState; |
attribute DOMString preload; |
- |
readonly attribute TimeRanges buffered; |
void load(); |
- DOMString canPlayType(DOMString type); |
- [RuntimeEnabled=PrefixedEncryptedMedia, DeprecateAs=CanPlayTypeKeySystem] DOMString canPlayType(DOMString type, [TreatUndefinedAs=NullString] DOMString? keySystem); |
+ CanPlayTypeResult canPlayType(DOMString type); |
// ready state |
const unsigned short HAVE_NOTHING = 0; |
@@ -59,7 +60,9 @@ |
// playback state |
[RaisesException=Setter] attribute double currentTime; |
+ // FIXME: void fastSeek(double time); |
readonly attribute unrestricted double duration; |
+ // FIXME: Date getStartDate(); crbug.com/312699 |
readonly attribute boolean paused; |
attribute double defaultPlaybackRate; |
attribute double playbackRate; |
@@ -82,16 +85,19 @@ |
[Reflect=muted] attribute boolean defaultMuted; |
// tracks |
- [RuntimeEnabled=AudioVideoTracks] readonly attribute AudioTrackList audioTracks; |
- [RuntimeEnabled=AudioVideoTracks] readonly attribute VideoTrackList videoTracks; |
- readonly attribute TextTrackList textTracks; |
+ [SameObject, RuntimeEnabled=AudioVideoTracks] readonly attribute AudioTrackList audioTracks; |
+ [SameObject, RuntimeEnabled=AudioVideoTracks] readonly attribute VideoTrackList videoTracks; |
+ [SameObject] readonly attribute TextTrackList textTracks; |
[RaisesException] TextTrack addTextTrack(TextTrackKind kind, optional DOMString label = "", optional DOMString language = ""); |
- // WebKit extensions |
+ // Subresource Integrity |
+ // http://w3c.github.io/webappsec/specs/subresourceintegrity/ |
+ // FIXME: The spec does not extend HTMLAnchorElement. |
+ [Reflect, RuntimeEnabled=SubresourceIntegrity] attribute DOMString integrity; |
+ // 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; |
- |
- [Reflect, RuntimeEnabled=SubresourceIntegrity] attribute DOMString integrity; |
}; |