Index: core/html/HTMLMediaElement.idl |
diff --git a/core/html/HTMLMediaElement.idl b/core/html/HTMLMediaElement.idl |
index 977066aff3ed7ce223ba6b907913c97eb4e139aa..3d87a591ba3918c6f558d978f50760c41452c5bb 100644 |
--- a/core/html/HTMLMediaElement.idl |
+++ b/core/html/HTMLMediaElement.idl |
@@ -26,14 +26,15 @@ |
[ |
ActiveDOMObject, |
RuntimeEnabled=Media, |
+ TypeChecking=Unrestricted, |
] interface HTMLMediaElement : HTMLElement { |
// error state |
- readonly attribute MediaError error; |
+ [TypeChecking=Interface|Nullable] readonly attribute MediaError? error; |
// network state |
- [Reflect, URL, PerWorldBindings, ActivityLogging=SetterForIsolatedWorlds] attribute DOMString src; |
- [URL, PerWorldBindings, ActivityLogging=SetterForIsolatedWorlds] readonly attribute DOMString currentSrc; |
+ [Reflect, URL, LogActivity=SetterOnly] attribute DOMString src; |
+ [URL, LogActivity=SetterOnly] readonly attribute DOMString currentSrc; |
[Reflect, ReflectOnly="anonymous"|"use-credentials", ReflectEmpty="anonymous", ReflectInvalid="anonymous"] attribute DOMString crossOrigin; |
const unsigned short NETWORK_EMPTY = 0; |
@@ -58,7 +59,7 @@ |
// playback state |
[RaisesException=Setter] attribute double currentTime; |
- readonly attribute double duration; |
+ readonly attribute unrestricted double duration; |
readonly attribute boolean paused; |
attribute double defaultPlaybackRate; |
attribute double playbackRate; |
@@ -71,8 +72,8 @@ |
void pause(); |
// media controller |
- [Reflect] attribute DOMString mediaGroup; |
- [StrictTypeChecking] attribute MediaController controller; |
+ [RuntimeEnabled=MediaController, Reflect] attribute DOMString mediaGroup; |
+ [RuntimeEnabled=MediaController, TypeChecking=Interface|Nullable] attribute MediaController? controller; |
// controls |
attribute boolean controls; |
@@ -81,8 +82,10 @@ |
[Reflect=muted] attribute boolean defaultMuted; |
// tracks |
- [RuntimeEnabled=VideoTrack] readonly attribute TextTrackList textTracks; |
- [RuntimeEnabled=VideoTrack, RaisesException] TextTrack addTextTrack(DOMString kind, optional DOMString label, optional DOMString language); |
+ [RuntimeEnabled=AudioVideoTracks] readonly attribute AudioTrackList audioTracks; |
+ [RuntimeEnabled=AudioVideoTracks] readonly attribute VideoTrackList videoTracks; |
+ readonly attribute TextTrackList textTracks; |
+ [RaisesException] TextTrack addTextTrack(DOMString kind, optional DOMString label, optional DOMString language); |
// WebKit extensions |
@@ -90,16 +93,5 @@ |
[MeasureAs=PrefixedAudioDecodedByteCount] readonly attribute unsigned long webkitAudioDecodedByteCount; |
[MeasureAs=PrefixedVideoDecodedByteCount] readonly attribute unsigned long webkitVideoDecodedByteCount; |
- [RuntimeEnabled=PrefixedEncryptedMedia, RaisesException, MeasureAs=PrefixedMediaGenerateKeyRequest] void webkitGenerateKeyRequest([TreatNullAs=NullString, TreatUndefinedAs=NullString] DOMString keySystem, optional Uint8Array initData); |
- [RuntimeEnabled=PrefixedEncryptedMedia, RaisesException, MeasureAs=PrefixedMediaAddKey] void webkitAddKey([TreatNullAs=NullString, TreatUndefinedAs=NullString] DOMString keySystem, Uint8Array key, optional Uint8Array initData, [Default=NullString] optional DOMString sessionId); |
- [RuntimeEnabled=PrefixedEncryptedMedia, RaisesException, MeasureAs=PrefixedMediaCancelKeyRequest] void webkitCancelKeyRequest([TreatNullAs=NullString, TreatUndefinedAs=NullString] DOMString keySystem, [Default=NullString] optional DOMString sessionId); |
- |
- [RuntimeEnabled=PrefixedEncryptedMedia] attribute EventHandler onwebkitkeyadded; |
- [RuntimeEnabled=PrefixedEncryptedMedia] attribute EventHandler onwebkitkeyerror; |
- [RuntimeEnabled=PrefixedEncryptedMedia] attribute EventHandler onwebkitkeymessage; |
- [RuntimeEnabled=PrefixedEncryptedMedia] attribute EventHandler onwebkitneedkey; |
- |
- [RuntimeEnabled=EncryptedMedia] readonly attribute MediaKeys mediaKeys; |
- [RuntimeEnabled=EncryptedMedia, RaisesException] void setMediaKeys(MediaKeys mediaKeys); |
- [RuntimeEnabled=EncryptedMedia] attribute EventHandler onneedkey; |
+ [Reflect, RuntimeEnabled=SubresourceIntegrity] attribute DOMString integrity; |
}; |