[html5] r1889 - [] (0) Move some APIs to Window so they are accessible in Workers.

whatwg at whatwg.org whatwg at whatwg.org
Fri Jul 18 02:47:28 PDT 2008


Author: ianh
Date: 2008-07-18 02:47:28 -0700 (Fri, 18 Jul 2008)
New Revision: 1889

Modified:
   index
   source
Log:
[] (0) Move some APIs to Window so they are accessible in Workers.

Modified: index
===================================================================
--- index	2008-07-18 09:20:31 UTC (rev 1888)
+++ index	2008-07-18 09:47:28 UTC (rev 1889)
@@ -30254,6 +30254,14 @@
   // self-reference
   readonly attribute <a href="#window">Window</a> <a href="#window0" title=dom-window>window</a>;
   readonly attribute <a href="#window">Window</a> <a href="#self" title=dom-self>self</a>;
+
+  // the user agent
+  readonly attribute <a href="#storage0">Storage</a> <a href="#localstorage" title=dom-localStorage>localStorage</a>;
+  <a href="#database0">Database</a> <a href="#opendatabase" title=dom-opendatabase>openDatabase</a>(in DOMString name, in DOMString version, in DOMString displayName, in unsigned long estimatedSize);
+
+  // user prompts
+  void <a href="#shownotification" title=dom-showNotification>showNotification</a>(in DOMString title, in DOMString subtitle, in DOMString description);
+  void <a href="#shownotification" title=dom-showNotification>showNotification</a>(in DOMString title, in DOMString subtitle, in DOMString description, in VoidCallback onclick);
 };
 
 [NoInterfaceObject] interface <dfn id=windowbrowsingcontext>WindowBrowsingContext</dfn> {
@@ -30267,8 +30275,6 @@
   // the user agent
   readonly attribute <a href="#clientinformation">ClientInformation</a> <a href="#navigator" title=dom-navigator>navigator</a>; <!-- XXX IE6 also has window.clientInformation pointing to this same object -->
   readonly attribute <a href="#storage0">Storage</a> <a href="#sessionstorage" title=dom-sessionStorage>sessionStorage</a>;
-  readonly attribute <a href="#storage0">Storage</a> <a href="#localstorage" title=dom-localStorage>localStorage</a>;
-  <a href="#database0">Database</a> <a href="#opendatabase" title=dom-opendatabase>openDatabase</a>(in DOMString name, in DOMString version, in DOMString displayName, in unsigned long estimatedSize);
 
   // user prompts
   void <a href="#alert" title=dom-alert>alert</a>(in DOMString message);
@@ -30279,8 +30285,6 @@
   any <a href="#showmodaldialog" title=dom-showModalDialog>showModalDialog</a>(in DOMString url);
   any <a href="#showmodaldialog" title=dom-showModalDialog>showModalDialog</a>(in DOMString url, in any arguments);<!--
   any <span title="dom-showModalDialog">showModalDialog</span>(in DOMString url, in any arguments, in DOMString features);-->
-  void <a href="#shownotification" title=dom-showNotification>showNotification</a>(in DOMString title, in DOMString subtitle, in DOMString description);
-  void <a href="#shownotification" title=dom-showNotification>showNotification</a>(in DOMString title, in DOMString subtitle, in DOMString description, in VoidCallback onclick);
 
   // other browsing contexts
   readonly attribute <a href="#window">Window</a> <a href="#frames" title=dom-frames>frames</a>;

Modified: source
===================================================================
--- source	2008-07-18 09:20:31 UTC (rev 1888)
+++ source	2008-07-18 09:47:28 UTC (rev 1889)
@@ -27743,6 +27743,14 @@
   // self-reference
   readonly attribute <span>Window</span> <span title="dom-window">window</span>;
   readonly attribute <span>Window</span> <span title="dom-self">self</span>;
+
+  // the user agent
+  readonly attribute <span>Storage</span> <span title="dom-localStorage">localStorage</span>;
+  <span>Database</span> <span title="dom-opendatabase">openDatabase</span>(in DOMString name, in DOMString version, in DOMString displayName, in unsigned long estimatedSize);
+
+  // user prompts
+  void <span title="dom-showNotification">showNotification</span>(in DOMString title, in DOMString subtitle, in DOMString description);
+  void <span title="dom-showNotification">showNotification</span>(in DOMString title, in DOMString subtitle, in DOMString description, in VoidCallback onclick);
 };
 
 [NoInterfaceObject] interface <dfn>WindowBrowsingContext</dfn> {
@@ -27756,8 +27764,6 @@
   // the user agent
   readonly attribute <span>ClientInformation</span> <span title="dom-navigator">navigator</span>; <!-- XXX IE6 also has window.clientInformation pointing to this same object -->
   readonly attribute <span>Storage</span> <span title="dom-sessionStorage">sessionStorage</span>;
-  readonly attribute <span>Storage</span> <span title="dom-localStorage">localStorage</span>;
-  <span>Database</span> <span title="dom-opendatabase">openDatabase</span>(in DOMString name, in DOMString version, in DOMString displayName, in unsigned long estimatedSize);
 
   // user prompts
   void <span title="dom-alert">alert</span>(in DOMString message);
@@ -27768,8 +27774,6 @@
   any <span title="dom-showModalDialog">showModalDialog</span>(in DOMString url);
   any <span title="dom-showModalDialog">showModalDialog</span>(in DOMString url, in any arguments);<!--
   any <span title="dom-showModalDialog">showModalDialog</span>(in DOMString url, in any arguments, in DOMString features);-->
-  void <span title="dom-showNotification">showNotification</span>(in DOMString title, in DOMString subtitle, in DOMString description);
-  void <span title="dom-showNotification">showNotification</span>(in DOMString title, in DOMString subtitle, in DOMString description, in VoidCallback onclick);
 
   // other browsing contexts
   readonly attribute <span>Window</span> <span title="dom-frames">frames</span>;




More information about the Commit-Watchers mailing list