spec/Overview.html 1.1791 2621 Define callbacks using WebIDL. (bug 5814

Define callbacks using WebIDL. (bug 5814) (whatwg r2621)
http://www.w3.org/Bugs/Public/show_bug.cgi?id=5814

SQLTransaction
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1791.html#sqltransaction
SQLTransactionCallback
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1791.html#sqltransactioncallback
SQLStatementErrorCallback
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1791.html#sqlstatementerrorcallback
HTMLMediaElement
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1791.html#htmlmediaelement
setTimeout(handler, timeout[, arguments...])
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1791.html#dom-windowtimers-settimeout
TimeoutHandler
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1791.html#timeouthandler
media element attributes
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1791.html#media-element-attributes
transaction()
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1791.html#dom-database-transaction
openDatabase()
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1791.html#dom-opendatabase
CueRangeCallback
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1791.html#cuerangecallback
Window
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1791.html#window
SQLVoidCallback
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1791.html#sqlvoidcallback
Database
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1791.html#database
WindowTimers
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1791.html#windowtimers
executeSql(sqlStatement, arguments, callback, errorCallback)
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1791.html#dom-sqltransaction-executesql
SQLStatementCallback
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1791.html#sqlstatementcallback
SQLTransactionErrorCallback
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1791.html#sqltransactionerrorcallback

http://people.w3.org/mike/diffs/html5/spec/Overview.diff.html
http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.1790&r2=1.1791&f=h
http://html5.org/tools/web-apps-tracker?from=2620&to=2621

===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.1790
retrieving revision 1.1791
diff -u -d -r1.1790 -r1.1791
--- Overview.html 30 Dec 2008 00:58:32 -0000 1.1790
+++ Overview.html 30 Dec 2008 01:18:41 -0000 1.1791
@@ -14179,8 +14179,10 @@
            attribute boolean <a href=#dom-media-muted title=dom-media-muted>muted</a>;
 };
 
-// <dfn class=XXX id=cuerangecallback>CueRangeCallback</dfn> waiting on WebIDL
-</pre><p>The <dfn id=media-element-attributes>media element attributes</dfn>, <code title=attr-media-src><a href=#attr-media-src>src</a></code>, <code title=attr-media-autoplay><a href=#attr-media-autoplay>autoplay</a></code>, <code title=attr-media-loop><a href=#attr-media-loop>loop</a></code>, and <code title=attr-media-controls><a href=#attr-media-controls>controls</a></code>, apply to all <a href=#media-element title="media element">media elements</a>. They are defined in
+[Callback=FunctionOnly, NoInterfaceObject]
+interface <dfn id=cuerangecallback>CueRangeCallback</dfn> {
+  void <span title=dom-CueRangeCallback-handleEvent>handleEvent</span>(in DOMString id);
+};</pre><p>The <dfn id=media-element-attributes>media element attributes</dfn>, <code title=attr-media-src><a href=#attr-media-src>src</a></code>, <code title=attr-media-autoplay><a href=#attr-media-autoplay>autoplay</a></code>, <code title=attr-media-loop><a href=#attr-media-loop>loop</a></code>, and <code title=attr-media-controls><a href=#attr-media-controls>controls</a></code>, apply to all <a href=#media-element title="media element">media elements</a>. They are defined in
   this section.</p><!-- XXXv3 features:
     * frame forward / backwards / step(n) while paused
     * hasAudio, hasVideo, hasCaptions, etc
@@ -26995,10 +26997,7 @@
            attribute <span>EventListener</span> <a href=#handler-onstorage title=handler-onstorage>onstorage</a>;
            attribute <span>EventListener</span> <a href=#handler-onsubmit title=handler-onsubmit>onsubmit</a>;
            attribute <span>EventListener</span> <a href=#handler-onunload title=handler-onunload>onunload</a>;
-};
-
-// <dfn class=XXX id=voidcallback>VoidCallback</dfn> waiting on WebIDL
-</pre><!-- XXX http://msdn.microsoft.com/workshop/author/dhtml/reference/objects/obj_window.asp
+};</pre><!-- XXX http://msdn.microsoft.com/workshop/author/dhtml/reference/objects/obj_window.asp
           http://www.mozilla.org/docs/dom/domref/dom_window_ref.html
           http://lxr.mozilla.org/mozilla/source/dom/public/idl/base/nsIDOMWindow.idl - scrollBy, etc
           http://lxr.mozilla.org/mozilla/source/dom/public/idl/base/nsIDOMWindowInternal.idl - DOM level 0
@@ -31792,17 +31791,24 @@
   will try to use hundreds of megabytes to declare this upfront,
   instead of the user agent prompting the user for permission to
   increase the quota every five megabytes.<pre class=idl>interface <dfn id=database>Database</dfn> {
-  void <a href=#dom-database-transaction title=dom-database-transaction>transaction</a>(in <a href=#sqltransactioncallback>SQLTransactionCallback</a> callback, [Optional] in <a href=#sqltransactionerrorcallback>SQLTransactionErrorCallback</a> errorCallback, [Optional] in <a href=#voidcallback>VoidCallback</a> successCallback);
-  void <a href=#dom-database-readtransaction title=dom-database-readTransaction>readTransaction</a>(in <a href=#sqltransactioncallback>SQLTransactionCallback</a> callback, [Optional] in <a href=#sqltransactionerrorcallback>SQLTransactionErrorCallback</a> errorCallback, [Optional] in <a href=#voidcallback>VoidCallback</a> successCallback);
+  void <a href=#dom-database-transaction title=dom-database-transaction>transaction</a>(in <a href=#sqltransactioncallback>SQLTransactionCallback</a> callback, [Optional] in <a href=#sqltransactionerrorcallback>SQLTransactionErrorCallback</a> errorCallback, [Optional] in <a href=#sqlvoidcallback>SQLVoidCallback</a> successCallback);
+  void <a href=#dom-database-readtransaction title=dom-database-readTransaction>readTransaction</a>(in <a href=#sqltransactioncallback>SQLTransactionCallback</a> callback, [Optional] in <a href=#sqltransactionerrorcallback>SQLTransactionErrorCallback</a> errorCallback, [Optional] in <a href=#sqlvoidcallback>SQLVoidCallback</a> successCallback);
 
   readonly attribute DOMString <a href=#dom-database-version title=dom-database-version>version</a>;
-  void <a href=#dom-database-changeversion title=dom-database-changeVersion>changeVersion</a>(in DOMString oldVersion, in DOMString newVersion, in <a href=#sqltransactioncallback>SQLTransactionCallback</a> callback, in <a href=#sqltransactionerrorcallback>SQLTransactionErrorCallback</a> errorCallback, in <a href=#voidcallback>VoidCallback</a> successCallback);
+  void <a href=#dom-database-changeversion title=dom-database-changeVersion>changeVersion</a>(in DOMString oldVersion, in DOMString newVersion, in <a href=#sqltransactioncallback>SQLTransactionCallback</a> callback, in <a href=#sqltransactionerrorcallback>SQLTransactionErrorCallback</a> errorCallback, in <a href=#sqlvoidcallback>SQLVoidCallback</a> successCallback);
+};
+
+[Callback=FunctionOnly, NoInterfaceObject]
+interface <dfn id=sqlvoidcallback>SQLVoidCallback</dfn> {
+  void <span title=dom-sqlvoidcallback-handleEvent>handleEvent</span>();
 };
 
+[Callback=FunctionOnly, NoInterfaceObject]
 interface <dfn id=sqltransactioncallback>SQLTransactionCallback</dfn> {
   void <span title=dom-sqltransactioncallback-handleEvent>handleEvent</span>(in <a href=#sqltransaction>SQLTransaction</a> transaction);
 };
 
+[Callback=FunctionOnly, NoInterfaceObject]
 interface <dfn id=sqltransactionerrorcallback>SQLTransactionErrorCallback</dfn> {
   void <span title=dom-sqltransactionerrorcallback-handleEvent>handleEvent</span>(in <a href=#sqlerror>SQLError</a> error);
 };</pre><p>The <dfn id=dom-database-transaction title=dom-database-transaction><code>transaction()</code></dfn>
@@ -31853,10 +31859,12 @@
   void <a href=#dom-sqltransaction-executesql title=dom-sqltransaction-executeSql>executeSql</a>(in DOMString sqlStatement, in <a href=#objectarray>ObjectArray</a> arguments, in <a href=#sqlstatementcallback>SQLStatementCallback</a> callback, in <a href=#sqlstatementerrorcallback>SQLStatementErrorCallback</a> errorCallback);
 };
 
+[Callback=FunctionOnly, NoInterfaceObject]
 interface <dfn id=sqlstatementcallback>SQLStatementCallback</dfn> {
   void <span title=dom-sqlstatementcallback-handleEvent>handleEvent</span>(in <a href=#sqltransaction>SQLTransaction</a> transaction, in <a href=#sqlresultset>SQLResultSet</a> resultSet);
 };
 
+[Callback=FunctionOnly, NoInterfaceObject]
 interface <dfn id=sqlstatementerrorcallback>SQLStatementErrorCallback</dfn> {
   boolean <span title=dom-sqlstatementerrorcallback-handleEvent>handleEvent</span>(in <a href=#sqltransaction>SQLTransaction</a> transaction, in <a href=#sqlerror>SQLError</a> error);
 };</pre><p>When the <dfn id=dom-sqltransaction-executesql title=dom-sqltransaction-executeSql><code>executeSql(<var title="">sqlStatement</var>, <var title="">arguments</var>, <var title="">callback</var>, <var title="">errorCallback</var>)</code></dfn> method is invoked, the
@@ -45222,10 +45230,10 @@
   void <a href=#dom-windowtimers-clearinterval title=dom-windowtimers-clearInterval>clearInterval</a>(in long handle);
 };
 
+[Callback=FunctionOnly, NoInterfaceObject]
 interface <dfn id=timeouthandler>TimeoutHandler</dfn> {
-  void handleEvent([Variadic] in any args);
-};
-</pre><p>The <code title=dom-windowtimers-setTimeout><a href=#dom-windowtimers-settimeout>setTimeout</a></code>
+  void <span title=dom-TimeoutHandler-handleEvent>handleEvent</span>([Variadic] in any args);
+};</pre><p>The <code title=dom-windowtimers-setTimeout><a href=#dom-windowtimers-settimeout>setTimeout</a></code>
   and <code title=dom-windowtimers-setInterval><a href=#dom-windowtimers-setinterval>setInterval</a></code>
   methods allow authors to schedule timer-based events.<p>The <dfn id=dom-windowtimers-settimeout title=dom-windowtimers-setTimeout><code>setTimeout(<var title="">handler</var>, <var title="">timeout</var>[, <var title="">arguments...</var>])</code></dfn> method takes a reference
   to a <code><a href=#timeouthandler>TimeoutHandler</a></code> object and a length of time in

Received on Tuesday, 30 December 2008 01:25:50 UTC