[html5] r2661 - [] (0) Update IDL blocks to use NoInterfaceObject and ImplementedOn=... appropri [...]
whatwg at whatwg.org
whatwg at whatwg.org
Tue Jan 13 19:33:54 PST 2009
Author: ianh
Date: 2009-01-13 19:33:53 -0800 (Tue, 13 Jan 2009)
New Revision: 2661
Modified:
index
source
Log:
[] (0) Update IDL blocks to use NoInterfaceObject and ImplementedOn=... appropriately.
Modified: index
===================================================================
--- index 2009-01-14 02:38:28 UTC (rev 2660)
+++ index 2009-01-14 03:33:53 UTC (rev 2661)
@@ -5914,7 +5914,7 @@
simply being the primary interface of the document object, it is no
longer defined as inheriting from <code>Document</code>.</p>
- <pre class=idl>[<a href=#dom-document-nameditem title=dom-document-namedItem>NameGetter</a>=OverrideBuiltins]<!-- XXX http://krijnhoetmer.nl/irc-logs/whatwg/20090113#l-300 -->
+ <pre class=idl>[<a href=#dom-document-nameditem title=dom-document-namedItem>NameGetter</a>=OverrideBuiltins, ImplementedOn=<span>Document</span>]
interface <dfn id=htmldocument>HTMLDocument</dfn> {
// <a href=#resource-metadata-management>resource metadata management</a>
[PutForwards=href] readonly attribute <a href=#location>Location</a> <a href=#dom-document-location title=dom-document-location>location</a>;
@@ -33464,7 +33464,7 @@
view">default views</a> must also implement the
<code><a href=#window>Window</a></code> and <code>EventTarget</code> interfaces.</p>
- <pre class=idl>[NoInterfaceObject, <a href=#dom-window-item title=dom-window-item>IndexGetter</a>, <a href=#dom-window-nameditem title=dom-window-namedItem>NameGetter</a>=OverrideBuiltins]
+ <pre class=idl>[<a href=#dom-window-item title=dom-window-item>IndexGetter</a>, <a href=#dom-window-nameditem title=dom-window-namedItem>NameGetter</a>=OverrideBuiltins]
interface <dfn id=window>Window</dfn> {
// the current browsing context
readonly attribute <a href=#window>Window</a> <a href=#dom-window title=dom-window>window</a>;
@@ -35466,7 +35466,7 @@
called. The new auxiliary browsing context has no name.</p>
<p class=note>This browsing context implements the
- <code><a href=#modalwindow>ModalWindow</a></code> interface.</p>
+ <code><a href=#windowmodal>WindowModal</a></code> interface.</p>
</li>
@@ -35516,11 +35516,15 @@
</li>
</ol><p>Browsing contexts created by the above algorithm must implement
- the <code><a href=#modalwindow>ModalWindow</a></code> interface:</p>
+ the <code><a href=#windowmodal>WindowModal</a></code> interface:</p>
- <pre class=idl>[XXX] interface <dfn id=modalwindow>ModalWindow</dfn> {
- readonly attribute any <a href=#dom-modalwindow-dialogarguments title=dom-modalWindow-dialogArguments>dialogArguments</a>;
- attribute DOMString <a href=#dom-modalwindow-returnvalue title=dom-modalWindow-returnValue>returnValue</a>;
+ <p class=XXX>Really I want the Window object to just gain these
+ attributes, as if they were on the Window prototype. That's the XXX
+ below.</p>
+
+ <pre class=idl>[NoInterfaceObject, ImplementedOn=<a href=#window>Window</a>, XXX] interface <dfn id=windowmodal>WindowModal</dfn> {
+ readonly attribute any <a href=#dom-windowmodal-dialogarguments title=dom-WindowModal-dialogArguments>dialogArguments</a>;
+ attribute DOMString <a href=#dom-windowmodal-returnvalue title=dom-WindowModal-returnValue>returnValue</a>;
};</pre>
<p>Such browsing contexts have associated <dfn id=dialog-arguments>dialog
@@ -35529,7 +35533,7 @@
algorithm above, when the browsing context is created, based on the
arguments provided to the method.</p>
- <p>The <dfn id=dom-modalwindow-dialogarguments title=dom-modalWindow-dialogArguments><code>dialogArguments</code></dfn>
+ <p>The <dfn id=dom-windowmodal-dialogarguments title=dom-WindowModal-dialogArguments><code>dialogArguments</code></dfn>
DOM attribute, on getting, must check whether its browsing context's
<a href=#active-document>active document</a>'s <a href=#origin-0>origin</a> is the <a href=#same-origin title="same origin">same</a> as the <a href="#dialog-arguments'-origin">dialog arguments'
origin</a>. If it is, then the browsing context's <a href=#dialog-arguments>dialog
@@ -35544,7 +35548,7 @@
must be initialized to the empty string when the browsing context is
created.</p>
- <p>The <dfn id=dom-modalwindow-returnvalue title=dom-modalWindow-returnValue><code>returnValue</code></dfn>
+ <p>The <dfn id=dom-windowmodal-returnvalue title=dom-WindowModal-returnValue><code>returnValue</code></dfn>
DOM attribute, on getting, must return the <a href=#return-value>return value</a>
of its browsing context, and on setting, must set the <a href=#return-value>return
value</a> to the given new value.</p>
@@ -35764,7 +35768,7 @@
// objects implementing this interface also implement the interfaces given below
};
-[NoInterfaceObject] interface <dfn id=navigatorid>NavigatorID</dfn> {<!--
+[NoInterfaceObject, ImplementedOn=<a href=#navigator>Navigator</a>] interface <dfn id=navigatorid>NavigatorID</dfn> {<!--
readonly attribute DOMString <span title="dom-navigator-appCodeName">appCodeName</span>;-->
readonly attribute DOMString <a href=#dom-navigator-appname title=dom-navigator-appName>appName</a>;
readonly attribute DOMString <a href=#dom-navigator-appversion title=dom-navigator-appVersion>appVersion</a>;
@@ -35772,11 +35776,11 @@
readonly attribute DOMString <a href=#dom-navigator-useragent title=dom-navigator-userAgent>userAgent</a>;
};
-[NoInterfaceObject] interface <dfn id=navigatoronline>NavigatorOnLine</dfn> {
+[NoInterfaceObject, ImplementedOn=<a href=#navigator>Navigator</a>] interface <dfn id=navigatoronline>NavigatorOnLine</dfn> {
readonly attribute boolean <a href=#dom-navigator-online title=dom-navigator-onLine>onLine</a>;
};
-[NoInterfaceObject] interface <dfn id=navigatorabilities>NavigatorAbilities</dfn> {
+[NoInterfaceObject, ImplementedOn=<a href=#navigator>Navigator</a>] interface <dfn id=navigatorabilities>NavigatorAbilities</dfn> {
// content handler registration
void <a href=#dom-navigator-registerprotocolhandler title=dom-navigator-registerProtocolHandler>registerProtocolHandler</a>(in DOMString protocol, in DOMString url, in DOMString title);
void <a href=#dom-navigator-registercontenthandler title=dom-navigator-registerContentHandler>registerContentHandler</a>(in DOMString mimeType, in DOMString url, in DOMString title);
@@ -43850,7 +43854,7 @@
must also implement the <code><a href=#remoteeventtarget>RemoteEventTarget</a></code>
interface.</p>
- <pre class=idl>interface <dfn id=remoteeventtarget>RemoteEventTarget</dfn> {
+ <pre class=idl>[NoInterfaceObject, ImplementedOn=<span>EventTarget</span>] interface <dfn id=remoteeventtarget>RemoteEventTarget</dfn> {
void <a href=#dom-remoteeventtarget-addeventsource title=dom-RemoteEventTarget-addEventSource>addEventSource</a>(in DOMString src);
void <a href=#dom-remoteeventtarget-removeeventsource title=dom-RemoteEventTarget-removeEventSource>removeEventSource</a>(in DOMString src);
};</pre>
@@ -44350,8 +44354,7 @@
<h4 id=the-websocket-interface><span class=secno>7.3.2 </span>The <code><a href=#websocket>WebSocket</a></code> interface</h4>
- <pre class=idl>
-[<a href=#dom-websocket title=dom-WebSocket>Constructor</a>(in DOMString url)]
+ <pre class=idl>[<a href=#dom-websocket title=dom-WebSocket>Constructor</a>(in DOMString url)]
interface <dfn id=websocket>WebSocket</dfn> {
readonly attribute DOMString <a href=#dom-websocket-url title=dom-WebSocket-URL>URL</a>;
@@ -55453,7 +55456,7 @@
<p>Objects that implement the <code><a href=#window>Window</a></code> interface must
also implement the <code><a href=#windowtimers>WindowTimers</a></code> interface:</p>
-<pre class=idl>[NoInterfaceObject] interface <dfn id=windowtimers>WindowTimers</dfn> {
+<pre class=idl>[NoInterfaceObject, ImplementedOn=<a href=#window>Window</a>] interface <dfn id=windowtimers>WindowTimers</dfn> {
// timers
long <a href=#dom-windowtimers-settimeout title=dom-windowtimers-setTimeout>setTimeout</a>(in <a href=#timeouthandler>TimeoutHandler</a> handler, in long timeout);
long <a href=#dom-windowtimers-settimeout title=dom-windowtimers-setTimeout>setTimeout</a>(in <a href=#timeouthandler>TimeoutHandler</a> handler, in long timeout, <var title="">arguments...</var>);
@@ -55533,7 +55536,7 @@
<p>Any object implement the <code>AbstractView</code> interface must
also implement the <code><a href=#mediamodeabstractview>MediaModeAbstractView</a></code> interface.</p>
- <pre class=idl>interface <dfn id=mediamodeabstractview>MediaModeAbstractView</dfn> {
+ <pre class=idl>[NoInterfaceObject, ImplementedOn=<span>AbstractView</span>] interface <dfn id=mediamodeabstractview>MediaModeAbstractView</dfn> {
readonly attribute DOMString <a href=#mediamode>mediaMode</a>;
};</pre>
Modified: source
===================================================================
--- source 2009-01-14 02:38:28 UTC (rev 2660)
+++ source 2009-01-14 03:33:53 UTC (rev 2661)
@@ -5896,7 +5896,7 @@
simply being the primary interface of the document object, it is no
longer defined as inheriting from <code>Document</code>.</p>
- <pre class="idl">[<span title="dom-document-namedItem">NameGetter</span>=OverrideBuiltins]<!-- XXX http://krijnhoetmer.nl/irc-logs/whatwg/20090113#l-300 -->
+ <pre class="idl">[<span title="dom-document-namedItem">NameGetter</span>=OverrideBuiltins, ImplementedOn=<span>Document</span>]
interface <dfn>HTMLDocument</dfn> {
// <span>resource metadata management</span>
[PutForwards=href] readonly attribute <span>Location</span> <span title="dom-document-location">location</span>;
@@ -38018,7 +38018,7 @@
view">default views</span> must also implement the
<code>Window</code> and <code>EventTarget</code> interfaces.</p>
- <pre class="idl">[NoInterfaceObject, <span title="dom-window-item">IndexGetter</span>, <span title="dom-window-namedItem">NameGetter</span>=OverrideBuiltins]
+ <pre class="idl">[<span title="dom-window-item">IndexGetter</span>, <span title="dom-window-namedItem">NameGetter</span>=OverrideBuiltins]
interface <dfn>Window</dfn> {
// the current browsing context
readonly attribute <span>Window</span> <span title="dom-window">window</span>;
@@ -40357,7 +40357,7 @@
called. The new auxiliary browsing context has no name.</p>
<p class="note">This browsing context implements the
- <code>ModalWindow</code> interface.</p>
+ <code>WindowModal</code> interface.</p>
</li>
@@ -40411,11 +40411,15 @@
</ol>
<p>Browsing contexts created by the above algorithm must implement
- the <code>ModalWindow</code> interface:</p>
+ the <code>WindowModal</code> interface:</p>
- <pre class="idl">[XXX] interface <dfn>ModalWindow</dfn> {
- readonly attribute any <span title="dom-modalWindow-dialogArguments">dialogArguments</span>;
- attribute DOMString <span title="dom-modalWindow-returnValue">returnValue</span>;
+ <p class="XXX">Really I want the Window object to just gain these
+ attributes, as if they were on the Window prototype. That's the XXX
+ below.</p>
+
+ <pre class="idl">[NoInterfaceObject, ImplementedOn=<span>Window</span>, XXX] interface <dfn>WindowModal</dfn> {
+ readonly attribute any <span title="dom-WindowModal-dialogArguments">dialogArguments</span>;
+ attribute DOMString <span title="dom-WindowModal-returnValue">returnValue</span>;
};</pre>
<p>Such browsing contexts have associated <dfn>dialog
@@ -40426,7 +40430,7 @@
arguments provided to the method.</p>
<p>The <dfn
- title="dom-modalWindow-dialogArguments"><code>dialogArguments</code></dfn>
+ title="dom-WindowModal-dialogArguments"><code>dialogArguments</code></dfn>
DOM attribute, on getting, must check whether its browsing context's
<span>active document</span>'s <span>origin</span> is the <span
title="same origin">same</span> as the <span>dialog arguments'
@@ -40443,7 +40447,7 @@
created.</p>
<p>The <dfn
- title="dom-modalWindow-returnValue"><code>returnValue</code></dfn>
+ title="dom-WindowModal-returnValue"><code>returnValue</code></dfn>
DOM attribute, on getting, must return the <span>return value</span>
of its browsing context, and on setting, must set the <span>return
value</span> to the given new value.</p>
@@ -40664,7 +40668,7 @@
// objects implementing this interface also implement the interfaces given below
};
-[NoInterfaceObject] interface <dfn>NavigatorID</dfn> {<!--
+[NoInterfaceObject, ImplementedOn=<span>Navigator</span>] interface <dfn>NavigatorID</dfn> {<!--
readonly attribute DOMString <span title="dom-navigator-appCodeName">appCodeName</span>;-->
readonly attribute DOMString <span title="dom-navigator-appName">appName</span>;
readonly attribute DOMString <span title="dom-navigator-appVersion">appVersion</span>;
@@ -40672,11 +40676,11 @@
readonly attribute DOMString <span title="dom-navigator-userAgent">userAgent</span>;
};
-[NoInterfaceObject] interface <dfn>NavigatorOnLine</dfn> {
+[NoInterfaceObject, ImplementedOn=<span>Navigator</span>] interface <dfn>NavigatorOnLine</dfn> {
readonly attribute boolean <span title="dom-navigator-onLine">onLine</span>;
};
-[NoInterfaceObject] interface <dfn>NavigatorAbilities</dfn> {
+[NoInterfaceObject, ImplementedOn=<span>Navigator</span>] interface <dfn>NavigatorAbilities</dfn> {
// content handler registration
void <span title="dom-navigator-registerProtocolHandler">registerProtocolHandler</span>(in DOMString protocol, in DOMString url, in DOMString title);
void <span title="dom-navigator-registerContentHandler">registerContentHandler</span>(in DOMString mimeType, in DOMString url, in DOMString title);
@@ -50041,7 +50045,7 @@
must also implement the <code>RemoteEventTarget</code>
interface.</p>
- <pre class="idl">interface <dfn>RemoteEventTarget</dfn> {
+ <pre class="idl">[NoInterfaceObject, ImplementedOn=<span>EventTarget</span>] interface <dfn>RemoteEventTarget</dfn> {
void <span title="dom-RemoteEventTarget-addEventSource">addEventSource</span>(in DOMString src);
void <span title="dom-RemoteEventTarget-removeEventSource">removeEventSource</span>(in DOMString src);
};</pre>
@@ -50587,8 +50591,7 @@
<h4>The <code>WebSocket</code> interface</h4>
- <pre class="idl">
-[<span title="dom-WebSocket">Constructor</span>(in DOMString url)]
+ <pre class="idl">[<span title="dom-WebSocket">Constructor</span>(in DOMString url)]
interface <dfn>WebSocket</dfn> {
readonly attribute DOMString <span title="dom-WebSocket-URL">URL</span>;
@@ -60666,7 +60669,7 @@
<p>Objects that implement the <code>Window</code> interface must
also implement the <code>WindowTimers</code> interface:</p>
-<pre class="idl">[NoInterfaceObject] interface <dfn>WindowTimers</dfn> {
+<pre class="idl">[NoInterfaceObject, ImplementedOn=<span>Window</span>] interface <dfn>WindowTimers</dfn> {
// timers
long <span title="dom-windowtimers-setTimeout">setTimeout</span>(in <span>TimeoutHandler</span> handler, in long timeout);
long <span title="dom-windowtimers-setTimeout">setTimeout</span>(in <span>TimeoutHandler</span> handler, in long timeout, <var title="">arguments...</var>);
@@ -60760,7 +60763,7 @@
<p>Any object implement the <code>AbstractView</code> interface must
also implement the <code>MediaModeAbstractView</code> interface.</p>
- <pre class="idl">interface <dfn>MediaModeAbstractView</dfn> {
+ <pre class="idl">[NoInterfaceObject, ImplementedOn=<span>AbstractView</span>] interface <dfn>MediaModeAbstractView</dfn> {
readonly attribute DOMString <span>mediaMode</span>;
};</pre>
More information about the Commit-Watchers
mailing list