| Index: core/html/HTMLMediaElement.idl
|
| diff --git a/core/html/HTMLMediaElement.idl b/core/html/HTMLMediaElement.idl
|
| index a4dbf6fdf6da0061859f2586735722a718525866..977066aff3ed7ce223ba6b907913c97eb4e139aa 100644
|
| --- a/core/html/HTMLMediaElement.idl
|
| +++ b/core/html/HTMLMediaElement.idl
|
| @@ -24,8 +24,8 @@
|
| */
|
|
|
| [
|
| + ActiveDOMObject,
|
| RuntimeEnabled=Media,
|
| - ActiveDOMObject
|
| ] interface HTMLMediaElement : HTMLElement {
|
|
|
| // error state
|
| @@ -34,7 +34,7 @@
|
| // network state
|
| [Reflect, URL, PerWorldBindings, ActivityLogging=SetterForIsolatedWorlds] attribute DOMString src;
|
| [URL, PerWorldBindings, ActivityLogging=SetterForIsolatedWorlds] readonly attribute DOMString currentSrc;
|
| - [Reflect] attribute DOMString crossOrigin;
|
| + [Reflect, ReflectOnly="anonymous"|"use-credentials", ReflectEmpty="anonymous", ReflectInvalid="anonymous"] attribute DOMString crossOrigin;
|
|
|
| const unsigned short NETWORK_EMPTY = 0;
|
| const unsigned short NETWORK_IDLE = 1;
|
| @@ -45,7 +45,7 @@
|
|
|
| readonly attribute TimeRanges buffered;
|
| void load();
|
| - DOMString canPlayType([Default=Undefined] optional DOMString type, [Default=Undefined, TreatNullAs=NullString, TreatUndefinedAs=NullString] optional DOMString keySystem);
|
| + DOMString canPlayType(DOMString type, [Default=Undefined, TreatNullAs=NullString, TreatUndefinedAs=NullString] optional DOMString keySystem);
|
|
|
| // ready state
|
| const unsigned short HAVE_NOTHING = 0;
|
| @@ -90,15 +90,16 @@
|
| [MeasureAs=PrefixedAudioDecodedByteCount] readonly attribute unsigned long webkitAudioDecodedByteCount;
|
| [MeasureAs=PrefixedVideoDecodedByteCount] readonly attribute unsigned long webkitVideoDecodedByteCount;
|
|
|
| - // FIXME: add DeprecateAs=PrefixedMediaGenerateKeyRequest when MediaKeys is ready.
|
| - [RuntimeEnabled=PrefixedEncryptedMedia, RaisesException] void webkitGenerateKeyRequest([TreatNullAs=NullString, TreatUndefinedAs=NullString] DOMString keySystem, optional Uint8Array initData);
|
| - [RuntimeEnabled=PrefixedEncryptedMedia, RaisesException] void webkitAddKey([TreatNullAs=NullString, TreatUndefinedAs=NullString] DOMString keySystem, Uint8Array key, optional Uint8Array initData, [Default=NullString] optional DOMString sessionId);
|
| - [RuntimeEnabled=PrefixedEncryptedMedia, RaisesException] void webkitCancelKeyRequest([TreatNullAs=NullString, TreatUndefinedAs=NullString] DOMString keySystem, [Default=NullString] optional DOMString sessionId);
|
| + [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] attribute MediaKeys mediaKeys;
|
| + [RuntimeEnabled=EncryptedMedia] readonly attribute MediaKeys mediaKeys;
|
| + [RuntimeEnabled=EncryptedMedia, RaisesException] void setMediaKeys(MediaKeys mediaKeys);
|
| + [RuntimeEnabled=EncryptedMedia] attribute EventHandler onneedkey;
|
| };
|
|
|