Skip to content

Commit

Permalink
Use a partial interface to extend Navigator, instead of implements.
Browse files Browse the repository at this point in the history
Fixes #60.
  • Loading branch information
jyasskin committed May 19, 2015
1 parent 9e99dc7 commit e0f4385
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1890,7 +1890,7 @@ <h2><a>BluetoothGATTCharacteristic</a></h2>
For each known GATT <a>Characteristic</a>, the UA MUST maintain
an <dfn>active notification context set</dfn> of <a>BluetoothInteraction</a> objects.
This is a single set for the whole UA,
pointing to the <a href="#idl-def-navigatorbluetooth-bluetooth"><code>navigator.bluetooth</code></a> object
pointing to the <a href="#idl-def-navigator-bluetooth"><code>navigator.bluetooth</code></a> object
for each separate <a>script execution environment</a> that has registered for notifications.
</p>

Expand All @@ -1912,7 +1912,7 @@ <h2><a>BluetoothGATTCharacteristic</a></h2>
</li>
<li>
If the <a>active notification context set</a> contains
<a href="#idl-def-navigatorbluetooth-bluetooth"><code>navigator.bluetooth</code></a>,
<a href="#idl-def-navigator-bluetooth"><code>navigator.bluetooth</code></a>,
<a>resolve</a> <var>promise</var> with <code>undefined</code> and abort these steps.
</li>
<li>
Expand All @@ -1931,7 +1931,7 @@ <h2><a>BluetoothGATTCharacteristic</a></h2>
<a>reject</a> <var>promise</var> with that error and abort these steps.
</li>
<li>
Add <a href="#idl-def-navigatorbluetooth-bluetooth"><code>navigator.bluetooth</code></a>
Add <a href="#idl-def-navigator-bluetooth"><code>navigator.bluetooth</code></a>
to the <a>active notification context set</a>.
</li>
<li>
Expand Down Expand Up @@ -1960,7 +1960,7 @@ <h2><a>BluetoothGATTCharacteristic</a></h2>
</li>
<li>
If the <a>active notification context set</a> contains
<a href="#idl-def-navigatorbluetooth-bluetooth"><code>navigator.bluetooth</code></a>,
<a href="#idl-def-navigator-bluetooth"><code>navigator.bluetooth</code></a>,
remove it.
</li>
<li>
Expand Down Expand Up @@ -2263,7 +2263,7 @@ <h2>Events</h2>
<h2>Bluetooth Tree</h2>

<p>
<a href="#idl-def-navigatorbluetooth-bluetooth"><code>navigator.bluetooth</code></a> and
<a href="#idl-def-navigator-bluetooth"><code>navigator.bluetooth</code></a> and
objects implementing the <a>BluetoothDevice</a>, <a>BluetoothGATTService</a>,
<a>BluetoothGATTCharacteristic</a>, or <a>BluetoothGATTDescriptor</a> interface
<a>participate in a tree</a>,
Expand All @@ -2272,7 +2272,7 @@ <h2>Bluetooth Tree</h2>
<ul>
<li>
The <a>children</a>
of <a href="#idl-def-navigatorbluetooth-bluetooth"><code>navigator.bluetooth</code></a>
of <a href="#idl-def-navigator-bluetooth"><code>navigator.bluetooth</code></a>
are the <a>BluetoothDevice</a> objects representing
devices on the origin's <a>allowed devices map</a>,
in an unspecified order.
Expand Down Expand Up @@ -2804,13 +2804,10 @@ <h2>Standardized UUIDs</h2>
</section>

<section>
<h2>Interface Wiring</h2>
<h2>Extensions to the Navigator Interface</h2>

<pre class="idl">
Navigator implements NavigatorBluetooth;

[NoInterfaceObject]
interface NavigatorBluetooth {
partial interface Navigator {
readonly attribute Bluetooth bluetooth;
};

Expand Down

0 comments on commit e0f4385

Please sign in to comment.