[EME] Bug 26457 - Replace instances of Promise<any> with Promise<void>
authorDavid Dorwin <ddorwin@google.com>
Mon, 11 Aug 2014 16:08:48 -0700
changeset 385 7b3dd5a1f571
parent 384 385c6435612f
child 386 142569561850
[EME] Bug 26457 - Replace instances of Promise<any> with Promise<void>
encrypted-media/encrypted-media.html
encrypted-media/encrypted-media.xml
--- a/encrypted-media/encrypted-media.html	Mon Aug 11 16:02:03 2014 -0700
+++ b/encrypted-media/encrypted-media.html	Mon Aug 11 16:08:48 2014 -0700
@@ -337,7 +337,7 @@
 partial interface <dfn id="dom-htmlmediaelement">HTMLMediaElement</dfn> {
   // Encrypted Media
   readonly attribute <a href="#dom-mediakeys">MediaKeys</a>? <a href="#dom-attrmediakeys">mediaKeys</a>;
-  Promise&lt;any&gt; <a href="#dom-setmediakeys">setMediaKeys</a>(<a href="#dom-mediakeys">MediaKeys</a>? mediaKeys);
+  Promise&lt;void&gt; <a href="#dom-setmediakeys">setMediaKeys</a>(<a href="#dom-mediakeys">MediaKeys</a>? mediaKeys);
   
   attribute <a href="http://www.w3.org/TR/html5/webappapis.html#eventhandler">EventHandler</a> <a href="#dom-onneedkey">onneedkey</a>;
 
@@ -351,7 +351,7 @@
 
   Promise&lt;<a href="#dom-mediakeysession">MediaKeySession</a>&gt; <a href="#dom-createsession">createSession</a>(DOMString <a href="#initialization-data-type">initDataType</a>, (ArrayBuffer or ArrayBufferView) initData, optional <a href="#dom-sessiontype">SessionType</a> sessionType = "<a href="#dom-sessiontypetemporary">temporary</a>");
   Promise&lt;<a href="#dom-mediakeysession">MediaKeySession</a>&gt; <a href="#dom-loadsession">loadSession</a>(DOMString sessionId);
-  Promise&lt;any&gt; <a href="#dom-setservercertificate">setServerCertificate</a>((ArrayBuffer or ArrayBufferView) serverCertificate);
+  Promise&lt;void&gt; <a href="#dom-setservercertificate">setServerCertificate</a>((ArrayBuffer or ArrayBufferView) serverCertificate);
 
   static Promise&lt;<a href="#dom-mediakeys">MediaKeys</a>&gt; <a href="#dom-create">create</a>(DOMString <a href="#key-system">keySystem</a>)
   static <a href="#dom-istypesupportedresult">IsTypeSupportedResult</a> <a href="#dom-istypesupported">isTypeSupported</a>(DOMstring <a href="#key-system">keySystem</a>, optional DOMString <a href="#initialization-data-type">initDataType</a>, optional DOMString contentType, optional DOMString capability);
@@ -368,12 +368,12 @@
   // session properties
   readonly attribute DOMString <a href="#dom-sessionid">sessionId</a>;
   readonly attribute unrestricted double <a href="#dom-expiration">expiration</a>;
-  readonly attribute Promise&lt;any&gt; <a href="#dom-closed">closed</a>;
+  readonly attribute Promise&lt;void&gt; <a href="#dom-closed">closed</a>;
 
   // session operations
-  Promise&lt;any&gt; <a href="#dom-update">update</a>((ArrayBuffer or ArrayBufferView) response);
-  Promise&lt;any&gt; <a href="#dom-close">close</a>();
-  Promise&lt;any&gt; <a href="#dom-remove">remove</a>();
+  Promise&lt;void&gt; <a href="#dom-update">update</a>((ArrayBuffer or ArrayBufferView) response);
+  Promise&lt;void&gt; <a href="#dom-close">close</a>();
+  Promise&lt;void&gt; <a href="#dom-remove">remove</a>();
   
   Promise&lt;sequence&lt;ArrayBuffer&gt;&gt; <a href="#dom-getusablekeyids">getUsableKeyIds</a>();
 };
--- a/encrypted-media/encrypted-media.xml	Mon Aug 11 16:02:03 2014 -0700
+++ b/encrypted-media/encrypted-media.xml	Mon Aug 11 16:08:48 2014 -0700
@@ -334,7 +334,7 @@
 partial interface <precodedfn>HTMLMediaElement</precodedfn> {
   // Encrypted Media
   readonly attribute <precoderef>MediaKeys</precoderef>? <precoderef prefix="attr">mediaKeys</precoderef>;
-  Promise&lt;any&gt; <premethodref>setMediaKeys</premethodref>(<precoderef>MediaKeys</precoderef>? mediaKeys);
+  Promise&lt;void&gt; <premethodref>setMediaKeys</premethodref>(<precoderef>MediaKeys</precoderef>? mediaKeys);
   
   attribute <EventHandler/> <precoderef>onneedkey</precoderef>;
 
@@ -348,7 +348,7 @@
 
   Promise&lt;<precoderef>MediaKeySession</precoderef>&gt; <premethodref>createSession</premethodref>(DOMString <a href="#initialization-data-type">initDataType</a>, (ArrayBuffer or ArrayBufferView) initData, optional <precoderef>SessionType</precoderef> sessionType = "<precoderef prefix="sessiontype">temporary</precoderef>");
   Promise&lt;<precoderef>MediaKeySession</precoderef>&gt; <premethodref>loadSession</premethodref>(DOMString sessionId);
-  Promise&lt;any&gt; <premethodref>setServerCertificate</premethodref>((ArrayBuffer or ArrayBufferView) serverCertificate);
+  Promise&lt;void&gt; <premethodref>setServerCertificate</premethodref>((ArrayBuffer or ArrayBufferView) serverCertificate);
 
   static Promise&lt;<precoderef>MediaKeys</precoderef>&gt; <premethodref>create</premethodref>(DOMString <a href="#key-system">keySystem</a>)
   static <precoderef>IsTypeSupportedResult</precoderef> <premethodref>isTypeSupported</premethodref>(DOMstring <a href="#key-system">keySystem</a>, optional DOMString <a href="#initialization-data-type">initDataType</a>, optional DOMString contentType, optional DOMString capability);
@@ -362,12 +362,12 @@
   // session properties
   readonly attribute DOMString <precoderef>sessionId</precoderef>;
   readonly attribute unrestricted double <precoderef>expiration</precoderef>;
-  readonly attribute Promise&lt;any&gt; <precoderef>closed</precoderef>;
+  readonly attribute Promise&lt;void&gt; <precoderef>closed</precoderef>;
 
   // session operations
-  Promise&lt;any&gt; <premethodref>update</premethodref>((ArrayBuffer or ArrayBufferView) response);
-  Promise&lt;any&gt; <premethodref>close</premethodref>();
-  Promise&lt;any&gt; <premethodref>remove</premethodref>();
+  Promise&lt;void&gt; <premethodref>update</premethodref>((ArrayBuffer or ArrayBufferView) response);
+  Promise&lt;void&gt; <premethodref>close</premethodref>();
+  Promise&lt;void&gt; <premethodref>remove</premethodref>();
   
   Promise&lt;sequence&lt;ArrayBuffer&gt;&gt; <premethodref>getUsableKeyIds</premethodref>();
 };