Skip to content

Commit

Permalink
[e] (0) Split Navigator so that Workers can refer to it.
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.whatwg.org/webapps@2399 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Nov 13, 2008
1 parent 09e2608 commit 9df3a92
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 11 deletions.
26 changes: 20 additions & 6 deletions index
Expand Up @@ -17,7 +17,7 @@
<div class=head>
<p><a class=logo href=http://www.whatwg.org/ rel=home><img alt=WHATWG src=/images/logo></a></p>
<h1>HTML 5</h1>
<h2 class="no-num no-toc" id=draft-recommendation-&mdash;-date:-01-jan-1901>Draft Recommendation &mdash; 12 November 2008</h2>
<h2 class="no-num no-toc" id=draft-recommendation-&mdash;-date:-01-jan-1901>Draft Recommendation &mdash; 13 November 2008</h2>
<p>You can take part in this work. <a href=http://www.whatwg.org/mailing-list>Join the working group's discussion list.</a></p>
<p><strong>Web designers!</strong> We have a <a href=http://blog.whatwg.org/faq/>FAQ</a>, a <a href=http://forums.whatwg.org/>forum</a>, and a <a href=http://www.whatwg.org/mailing-list#help>help mailing list</a> for you!</p>
<dl><dt>Multiple-page version:</dt>
Expand Down Expand Up @@ -33914,24 +33914,38 @@ JSURL: http://ietfreport.isoc.org/all-ids/draft-hoehrmann-javascript-scheme-00.t
handlers:</p>

<pre class=idl>interface <dfn id=navigator>Navigator</dfn> {
// client identification<!--
// objects implementing this interface also implement the interfaces given below
};

[NoInterfaceObject] 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>;
readonly attribute DOMString <a href=#dom-navigator-platform title=dom-navigator-platform>platform</a>;
readonly attribute DOMString <a href=#dom-navigator-useragent title=dom-navigator-userAgent>userAgent</a>;
};

// system state
[NoInterfaceObject] interface <dfn id=navigatoronline>NavigatorOnLine</dfn> {
readonly attribute boolean <a href=#dom-navigator-online title=dom-navigator-onLine>onLine</a>;
};

[NoInterfaceObject] interface <dfn id=navigatorbrowsingcontextabilities>NavigatorBrowsingContextAbilities</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);

// abilities<!--
XXX cookieEnabled geolocator javaEnabled mozIsLocallyAvailable plugins preference
<!-- XXX cookieEnabled geolocator javaEnabled mozIsLocallyAvailable plugins preference
readonly attribute <span>MimeTypeArray</span> <span title="dom-navigator-mimeTypes">mimeTypes</span>;-->
// abilities
short <a href=#dom-navigator-canplaytype title=dom-navigator-canPlayType>canPlayType</a>(in DOMString type);
};</pre>

<p>Objects implementing the <code><a href=#navigator>Navigator</a></code> interface must
also implement the <a href=#navigatorid>NavigatorID</a>,
<a href=#navigatoronline>NavigatorOnLine</a>, and
<a href=#navigatorbrowsingcontextabilities>NavigatorBrowsingContextAbilities</a> interfaces. (These
interfaces are defined separately so that other specifications can
re-use parts of the <code><a href=#navigator>Navigator</a></code> interface.)</p>

<!-- XXX also, see window.external.AddSearchProvider() and similar DOM APIs from IE -->

<!-- XXX also, could expose languages:
Expand Down
24 changes: 19 additions & 5 deletions source
Expand Up @@ -38603,24 +38603,38 @@ JSURL: http://ietfreport.isoc.org/all-ids/draft-hoehrmann-javascript-scheme-00.t
handlers:</p>

<pre class="idl">interface <dfn>Navigator</dfn> {
// client identification<!--
// objects implementing this interface also implement the interfaces given below
};

[NoInterfaceObject] 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>;
readonly attribute DOMString <span title="dom-navigator-platform">platform</span>;
readonly attribute DOMString <span title="dom-navigator-userAgent">userAgent</span>;
};

// system state
[NoInterfaceObject] interface <dfn>NavigatorOnLine</dfn> {
readonly attribute boolean <span title="dom-navigator-onLine">onLine</span>;
};

[NoInterfaceObject] interface <dfn>NavigatorBrowsingContextAbilities</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);

// abilities<!--
XXX cookieEnabled geolocator javaEnabled mozIsLocallyAvailable plugins preference
<!-- XXX cookieEnabled geolocator javaEnabled mozIsLocallyAvailable plugins preference
readonly attribute <span>MimeTypeArray</span> <span title="dom-navigator-mimeTypes">mimeTypes</span>;-->
// abilities
short <span title="dom-navigator-canPlayType">canPlayType</span>(in DOMString type);
};</pre>

<p>Objects implementing the <code>Navigator</code> interface must
also implement the <span>NavigatorID</span>,
<span>NavigatorOnLine</span>, and
<span>NavigatorBrowsingContextAbilities</span> interfaces. (These
interfaces are defined separately so that other specifications can
re-use parts of the <code>Navigator</code> interface.)</p>

<!-- XXX also, see window.external.AddSearchProvider() and similar DOM APIs from IE -->

<!-- XXX also, could expose languages:
Expand Down

0 comments on commit 9df3a92

Please sign in to comment.