Adding another option (dictionaries) for defining the focus types
authorJames Craig <jcraig@apple.com>
Thu, 16 May 2013 12:04:13 -0700
changeset 106 f79d054af0d1
parent 105 34be4e93387a
child 107 11e968b725b6
Adding another option (dictionaries) for defining the focus types
src/indie-ui-events.html
--- a/src/indie-ui-events.html	Thu May 16 10:51:35 2013 -0700
+++ b/src/indie-ui-events.html	Thu May 16 12:04:13 2013 -0700
@@ -383,7 +383,7 @@
 				<h3>Interface UIFocusRequestEvent</h3>
 
 				<p class="ednote">Will probably need an ARIA 1.1 or 2.0 role for palette.</p>
-				<p class="ednote">These NAV_* constants may be better defined as dictionaries.</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">
 
@@ -418,6 +418,31 @@
 						<dt>unsigned short? focusType = null</dt><dd>Type of linear or directional focus requested, as defined in the interface constants.</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>
+						
+					<dl title="dictionary LinearFocusType" 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>
+					</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>
+						<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>
+					</dl>
+
+				</section>
 				
 				<section id="UIFocusRequestEvents">
 					<h4>UIFocusRequestEvent Types</h4>