[html5] r6821 - [giow] (0) Allow people to pass an object to the drag-and-drop string callback s [...]

whatwg at whatwg.org whatwg at whatwg.org
Thu Nov 10 15:57:58 PST 2011


Author: ianh
Date: 2011-11-10 15:57:57 -0800 (Thu, 10 Nov 2011)
New Revision: 6821

Modified:
   complete.html
   index
   source
Log:
[giow] (0) Allow people to pass an object to the drag-and-drop string callback so that they can store information in the callback object rather than using a closure, since apparently closures are too confusing.
Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=14761

Modified: complete.html
===================================================================
--- complete.html	2011-11-10 23:51:15 UTC (rev 6820)
+++ complete.html	2011-11-10 23:57:57 UTC (rev 6821)
@@ -73129,15 +73129,15 @@
 DND-v4:  void <span title="dom-DataTransferItem-getAsObject">getAsObject</span>(<span>FunctionObjectCallback</span> callback);-->
 };
 
-[Callback=FunctionOnly, NoInterfaceObject]
+[Callback, NoInterfaceObject]
 interface <dfn id=functionstringcallback>FunctionStringCallback</dfn> {
   void <span title=dom-FunctionStringCallback-handleEvent>handleEvent</span>(DOMString data);
 };<!--
 
 // DND-v4:
-[Callback=FunctionOnly, NoInterfaceObject]
+[Callback, NoInterfaceObject]
 interface <dfn>FunctionObjectCallback</dfn> {
-  void <span title="dom-FunctionObjectCallback-handleEvent">handleEvent</span>(DOMString data);
+  void <span title="dom-FunctionObjectCallback-handleEvent">handleEvent</span>(any data);
 };--></pre>
 
   <dl class=domintro><dt><var title="">item</var> . <code title=dom-DataTransferItem-kind><a href=#dom-datatransferitem-kind>kind</a></code></dt>
@@ -74703,7 +74703,7 @@
 };
 <a href=#navigator>Navigator</a> implements <a href=#navigatorusermedia>NavigatorUserMedia</a>;
 
-[Callback=FunctionOnly, NoInterfaceObject]
+[Callback, NoInterfaceObject]
 interface <dfn id=navigatorusermediasuccesscallback>NavigatorUserMediaSuccessCallback</dfn> {
   void <span title=dom-NavigatorUserMediaSuccessCallback-handleEvent>handleEvent</span>(<a href=#localmediastream>LocalMediaStream</a> stream);
 };
@@ -74717,7 +74717,7 @@
   readonly attribute DOMString <span title="dom-NavigatorUserMediaError-message">message</span>;-->
 };
 
-[Callback=FunctionOnly, NoInterfaceObject]
+[Callback, NoInterfaceObject]
 interface <dfn id=navigatorusermediaerrorcallback>NavigatorUserMediaErrorCallback</dfn> {
   void <span title=dom-NavigatorUserMediaSuccessCallback-handleEvent>handleEvent</span>(<a href=#navigatorusermediaerror>NavigatorUserMediaError</a> error);
 };</pre>
@@ -75643,7 +75643,7 @@
   void <a href=#dom-mediastreamrecorder-getrecordeddata title=dom-MediaStreamRecorder-getRecordedData>getRecordedData</a>(<a href=#blobcallback>BlobCallback</a>? callback);
 };
 
-[Callback=FunctionOnly, NoInterfaceObject]
+[Callback, NoInterfaceObject]
 interface <dfn id=blobcallback>BlobCallback</dfn> {
   void <span title=dom-BlobCallback-handleEvent>handleEvent</span>(<a href=#blob>Blob</a> blob);
 };</pre>
@@ -75937,7 +75937,7 @@
   [TreatNonCallableAsNull] attribute <a href=#function>Function</a>? <a href=#handler-peerconnection-onremovestream title=handler-PeerConnection-onremovestream>onremovestream</a>;
 };
 
-[Callback=FunctionOnly, NoInterfaceObject]
+[Callback, NoInterfaceObject]
 interface <dfn id=signalingcallback>SignalingCallback</dfn> {
   void <span title=dom-SignalingCallback-handleEvent>handleEvent</span>(DOMString message, <a href=#peerconnection>PeerConnection</a> source);
 };</pre>

Modified: index
===================================================================
--- index	2011-11-10 23:51:15 UTC (rev 6820)
+++ index	2011-11-10 23:57:57 UTC (rev 6821)
@@ -73129,15 +73129,15 @@
 DND-v4:  void <span title="dom-DataTransferItem-getAsObject">getAsObject</span>(<span>FunctionObjectCallback</span> callback);-->
 };
 
-[Callback=FunctionOnly, NoInterfaceObject]
+[Callback, NoInterfaceObject]
 interface <dfn id=functionstringcallback>FunctionStringCallback</dfn> {
   void <span title=dom-FunctionStringCallback-handleEvent>handleEvent</span>(DOMString data);
 };<!--
 
 // DND-v4:
-[Callback=FunctionOnly, NoInterfaceObject]
+[Callback, NoInterfaceObject]
 interface <dfn>FunctionObjectCallback</dfn> {
-  void <span title="dom-FunctionObjectCallback-handleEvent">handleEvent</span>(DOMString data);
+  void <span title="dom-FunctionObjectCallback-handleEvent">handleEvent</span>(any data);
 };--></pre>
 
   <dl class=domintro><dt><var title="">item</var> . <code title=dom-DataTransferItem-kind><a href=#dom-datatransferitem-kind>kind</a></code></dt>
@@ -74703,7 +74703,7 @@
 };
 <a href=#navigator>Navigator</a> implements <a href=#navigatorusermedia>NavigatorUserMedia</a>;
 
-[Callback=FunctionOnly, NoInterfaceObject]
+[Callback, NoInterfaceObject]
 interface <dfn id=navigatorusermediasuccesscallback>NavigatorUserMediaSuccessCallback</dfn> {
   void <span title=dom-NavigatorUserMediaSuccessCallback-handleEvent>handleEvent</span>(<a href=#localmediastream>LocalMediaStream</a> stream);
 };
@@ -74717,7 +74717,7 @@
   readonly attribute DOMString <span title="dom-NavigatorUserMediaError-message">message</span>;-->
 };
 
-[Callback=FunctionOnly, NoInterfaceObject]
+[Callback, NoInterfaceObject]
 interface <dfn id=navigatorusermediaerrorcallback>NavigatorUserMediaErrorCallback</dfn> {
   void <span title=dom-NavigatorUserMediaSuccessCallback-handleEvent>handleEvent</span>(<a href=#navigatorusermediaerror>NavigatorUserMediaError</a> error);
 };</pre>
@@ -75643,7 +75643,7 @@
   void <a href=#dom-mediastreamrecorder-getrecordeddata title=dom-MediaStreamRecorder-getRecordedData>getRecordedData</a>(<a href=#blobcallback>BlobCallback</a>? callback);
 };
 
-[Callback=FunctionOnly, NoInterfaceObject]
+[Callback, NoInterfaceObject]
 interface <dfn id=blobcallback>BlobCallback</dfn> {
   void <span title=dom-BlobCallback-handleEvent>handleEvent</span>(<a href=#blob>Blob</a> blob);
 };</pre>
@@ -75937,7 +75937,7 @@
   [TreatNonCallableAsNull] attribute <a href=#function>Function</a>? <a href=#handler-peerconnection-onremovestream title=handler-PeerConnection-onremovestream>onremovestream</a>;
 };
 
-[Callback=FunctionOnly, NoInterfaceObject]
+[Callback, NoInterfaceObject]
 interface <dfn id=signalingcallback>SignalingCallback</dfn> {
   void <span title=dom-SignalingCallback-handleEvent>handleEvent</span>(DOMString message, <a href=#peerconnection>PeerConnection</a> source);
 };</pre>

Modified: source
===================================================================
--- source	2011-11-10 23:51:15 UTC (rev 6820)
+++ source	2011-11-10 23:57:57 UTC (rev 6821)
@@ -83205,15 +83205,15 @@
 DND-v4:  void <span title="dom-DataTransferItem-getAsObject">getAsObject</span>(<span>FunctionObjectCallback</span> callback);-->
 };
 
-[Callback=FunctionOnly, NoInterfaceObject]
+[Callback, NoInterfaceObject]
 interface <dfn>FunctionStringCallback</dfn> {
   void <span title="dom-FunctionStringCallback-handleEvent">handleEvent</span>(DOMString data);
 };<!--
 
 // DND-v4:
-[Callback=FunctionOnly, NoInterfaceObject]
+[Callback, NoInterfaceObject]
 interface <dfn>FunctionObjectCallback</dfn> {
-  void <span title="dom-FunctionObjectCallback-handleEvent">handleEvent</span>(DOMString data);
+  void <span title="dom-FunctionObjectCallback-handleEvent">handleEvent</span>(any data);
 };--></pre>
 
   <dl class="domintro">
@@ -85103,7 +85103,7 @@
 };
 <span>Navigator</span> implements <span>NavigatorUserMedia</span>;
 
-[Callback=FunctionOnly, NoInterfaceObject]
+[Callback, NoInterfaceObject]
 interface <dfn>NavigatorUserMediaSuccessCallback</dfn> {
   void <span title="dom-NavigatorUserMediaSuccessCallback-handleEvent">handleEvent</span>(<span>LocalMediaStream</span> stream);
 };
@@ -85117,7 +85117,7 @@
   readonly attribute DOMString <span title="dom-NavigatorUserMediaError-message">message</span>;-->
 };
 
-[Callback=FunctionOnly, NoInterfaceObject]
+[Callback, NoInterfaceObject]
 interface <dfn>NavigatorUserMediaErrorCallback</dfn> {
   void <span title="dom-NavigatorUserMediaSuccessCallback-handleEvent">handleEvent</span>(<span>NavigatorUserMediaError</span> error);
 };</pre>
@@ -86158,7 +86158,7 @@
   void <span title="dom-MediaStreamRecorder-getRecordedData">getRecordedData</span>(<span>BlobCallback</span>? callback);
 };
 
-[Callback=FunctionOnly, NoInterfaceObject]
+[Callback, NoInterfaceObject]
 interface <dfn>BlobCallback</dfn> {
   void <span title="dom-BlobCallback-handleEvent">handleEvent</span>(<span>Blob</span> blob);
 };</pre>
@@ -86472,7 +86472,7 @@
   [TreatNonCallableAsNull] attribute <span>Function</span>? <span title="handler-PeerConnection-onremovestream">onremovestream</span>;
 };
 
-[Callback=FunctionOnly, NoInterfaceObject]
+[Callback, NoInterfaceObject]
 interface <dfn>SignalingCallback</dfn> {
   void <span title="dom-SignalingCallback-handleEvent">handleEvent</span>(DOMString message, <span>PeerConnection</span> source);
 };</pre>




More information about the Commit-Watchers mailing list