changeType and focusType are unsigned shorts and not nullable. Added UNKNOWN = 0 constants to account for the change. Removed previous option for separate LinearFocusType and DirectionalFocusType dictionaries; these constants (NAV_NEXT, NAV_UP, etc.) are now defined in the constructor.
--- a/src/indie-ui-events.html Tue Jun 04 00:50:19 2013 -0700
+++ b/src/indie-ui-events.html Wed Jun 05 10:57:14 2013 -0700
@@ -389,24 +389,26 @@
<h3>Interface UIFocusRequestEvent</h3>
<p class="ednote">Will probably need an ARIA 1.1 or 2.0 role for palette.</p>
- <p class="ednote">TBD: These NAV_* constants may be better defined as dictionaries. See below.</p>
+ <!-- <p class="ednote">TBD: These NAV_* constants may be better defined as dictionaries. See below.</p> -->
<dl title="[Constructor(DOMString typeArg, optional UIFocusRequestEventInit dictUIFocusRequestEventInit)] interface UIFocusRequestEvent : UIRequestEvent" class="idl">
- <dt>const unsigned short NAV_FIRST = TBD</dt><dd></dd>
- <dt>const unsigned short NAV_PREV = TBD</dt><dd></dd>
- <dt>const unsigned short NAV_NEXT = TBD</dt><dd></dd>
- <dt>const unsigned short NAV_LAST = TBD</dt><dd></dd>
+ <dt>const unsigned short UNKNOWN = 0</dt><dd></dd>
+
+ <dt>const unsigned short NAV_FIRST = 1</dt><dd></dd>
+ <dt>const unsigned short NAV_PREV = 2</dt><dd></dd>
+ <dt>const unsigned short NAV_NEXT = 3</dt><dd></dd>
+ <dt>const unsigned short NAV_LAST = 4</dt><dd></dd>
<!-- clockwise from top -->
- <dt>const unsigned short NAV_UP = TBD</dt><dd></dd>
- <dt>const unsigned short NAV_UP_LEFT = TBD</dt><dd></dd>
- <dt>const unsigned short NAV_LEFT = TBD</dt><dd></dd>
- <dt>const unsigned short NAV_DOWN_LEFT = TBD</dt><dd></dd>
- <dt>const unsigned short NAV_DOWN = TBD</dt><dd></dd>
- <dt>const unsigned short NAV_DOWN_RIGHT = TBD</dt><dd></dd>
- <dt>const unsigned short NAV_RIGHT = TBD</dt><dd></dd>
- <dt>const unsigned short NAV_UP_RIGHT = TBD</dt><dd></dd>
+ <dt>const unsigned short NAV_UP = 5</dt><dd></dd>
+ <dt>const unsigned short NAV_UP_LEFT = 6</dt><dd></dd>
+ <dt>const unsigned short NAV_LEFT = 7</dt><dd></dd>
+ <dt>const unsigned short NAV_DOWN_LEFT = 8</dt><dd></dd>
+ <dt>const unsigned short NAV_DOWN = 9</dt><dd></dd>
+ <dt>const unsigned short NAV_DOWN_RIGHT = 10</dt><dd></dd>
+ <dt>const unsigned short NAV_RIGHT = 11</dt><dd></dd>
+ <dt>const unsigned short NAV_UP_RIGHT = 12</dt><dd></dd>
<dt>readonly attribute unsigned short focusType</dt><dd>Type of linear or directional focus requested.</dd>
@@ -429,11 +431,12 @@
<dt>EventTarget? receiver = null</dt><dd></dd>
<!-- Attributes from UIFocusRequestEventInit -->
- <dt>unsigned short? focusType = null</dt><dd>Type of linear or directional focus requested, as defined in the interface constants. <p class="ednote">TBD whether this will be constants in the constructor, or in the LinearFocusType and DirectionalFocusType dictionaries. Both are defined here during consideration.</p></dd>
+ <dt>unsigned short focusType = 0</dt><dd>Type of linear or directional focus requested, as defined in the interface constants. Defaults to 0 (UNKNOWN). <!-- <p class="ednote">TBD whether this will be constants in the constructor, or in the LinearFocusType and DirectionalFocusType dictionaries. Both are defined here during consideration.</p> --></dd>
</dl>
</section>
+ <!--
<section id="FocusTypeValues">
<h5>FocusType Values</h5>
<p class="ednote">TBD: These NAV_* constants could also be defined as constants. See above.</p>
@@ -446,7 +449,6 @@
</dl>
<dl title="dictionary DirectionalFocusType" class="idl">
- <!-- clockwise from top -->
<dt>const unsigned short NAV_UP = TBD</dt><dd></dd>
<dt>const unsigned short NAV_UP_LEFT = TBD</dt><dd></dd>
<dt>const unsigned short NAV_LEFT = TBD</dt><dd></dd>
@@ -458,6 +460,7 @@
</dl>
</section>
+ -->
<section id="UIFocusRequestEvents">
<h4>UIFocusRequestEvent Types</h4>
@@ -673,6 +676,7 @@
<h3>Interface UIValueChangeRequestEvent</h3>
<dl title="[Constructor(DOMString typeArg, optional UIValueChangeRequestEventInit dictUIValueChangeRequestEventInit)] interface UIValueChangeRequestEvent : UIRequestEvent" class="idl">
+ <dt>const unsigned short UNKNOWN = 0</dt><dd></dd>
<dt>const unsigned short INCREMENT = 1</dt><dd></dd>
<dt>const unsigned short INCREMENT_SMALL = 2</dt><dd></dd>
<dt>const unsigned short INCREMENT_LARGE = 3</dt><dd></dd>
@@ -702,7 +706,7 @@
<dt>EventTarget? receiver = null</dt><dd></dd>
<!-- Attributes from UIValueChangeRequestEventInit -->
- <dt>unsigned short? changeType = null</dt><dd>Type of change requested, as defined in the interface constants.</dd>
+ <dt>unsigned short changeType = 0</dt><dd>Type of change requested, as defined in the interface constants. Defaults to 0 (UNKNOWN).</dd>
</dl>
</section>
@@ -748,6 +752,7 @@
<li>01 May 2013: Added UIFocusRequestEvent section.</li>
<li>29 May 2013: Updated event initilizers to include event receiver.</li>
<li>04 Jun 2013: UIValueChangeRequestEvent.changeType and UIFocusRequestEvent.focusType were missing in the interfaces; UIRequestEvent.target previously overrode Event.target.</li>
+ <li>changeType and focusType are unsigned shorts and not nullable. Added UNKNOWN = 0 constants to account for the change. Removed previous option for separate LinearFocusType and DirectionalFocusType dictionaries; these constants (NAV_NEXT, NAV_UP, etc.) are now defined in the constructor.</li>
</ul>
</section>
<section id="terms" class="appendix" data-include="./include/terms.html"></section>