Cleaning up constructor dictionary to live with the interface defn
authorjrossi2
Sun, 07 Apr 2013 10:00:45 -0700
changeset 71d24dd1d54803
parent 68 07e2b07d34cc
child 72 9564c710e6a6
Cleaning up constructor dictionary to live with the interface defn
http://lists.w3.org/Archives/Public/public-pointer-events/2013AprJun/0009.html
pointerEvents.html
     1.1 --- a/pointerEvents.html	Tue Apr 02 01:54:12 2013 -0700
     1.2 +++ b/pointerEvents.html	Sun Apr 07 10:00:45 2013 -0700
     1.3 @@ -182,7 +182,7 @@
     1.4       <section>
     1.5         <h2><code>PointerEvent</code> Interface</h2>
     1.6         <div>
     1.7 -			<dl class="idl" title="[Constructor(DOMString type, optional PointerEventInit eventInitDict)] interface PointerEvent : MouseEvent">
     1.8 +			<dl class="idl" title="[Constructor(DOMString type, optional PointerEventInit eventInitDict)] interface PointerEvent : MouseEvent" data-merge="PointerEventInit">
     1.9  				<dt>readonly attribute long pointerId</dt>
    1.10  				<dd>
    1.11  					<p>A unique identifier for the pointer causing the event. This identifier MUST be unique from all other <a title="active pointer" class="internalDFN">active pointers</a> at the time. A user agent MAY recycle previously retired values for <code>pointerId</code> from previous active pointers, if necessary.</p>
    1.12 @@ -238,6 +238,25 @@
    1.13  					Indicates if the pointer represents the <a title="primary pointer" class="internalDFN">primary pointer</a>.
    1.14  				</dd>
    1.15  			</dl>
    1.16 +			<dl class="idl" title="dictionary PointerEventInit : MouseEventInit">
    1.17 +				<dt>long pointerId = 0</dt>
    1.18 +					<dd>Initializes the <code>pointerId</code> property of the <code>PointerEvent</code> object.</dd>
    1.19 +				<dt>long width = 0</dt>
    1.20 +					<dd>Initializes the <code>width</code> property of the <code>PointerEvent</code> object.</dd>
    1.21 +				<dt>long height = 0</dt>
    1.22 +					<dd>Initializes the <code>height</code> property of the <code>PointerEvent</code> object.</dd>
    1.23 +				<dt>float pressure = 0</dt>
    1.24 +					<dd>Initializes the <code>pressure</code> property of the <code>PointerEvent</code> object.</dd>
    1.25 +				<dt>long tiltX = 0</dt>
    1.26 +					<dd>Initializes the <code>tiltX</code> property of the <code>PointerEvent</code> object.</dd>
    1.27 +				<dt>long tiltY = 0</dt>
    1.28 +					<dd>Initializes the <code>tiltY</code> property of the <code>PointerEvent</code> object.</dd>
    1.29 +				<dt>DOMString pointerType = ""</dt>
    1.30 +					<dd>Initializes the <code>pointerType</code> property of the <code>PointerEvent</code> object.</dd>
    1.31 +				<dt>boolean isPrimary = false</dt>
    1.32 +					<dd>Initializes the <code>isPrimary</code> property of the <code>PointerEvent</code> object.</dd>
    1.33 +			</dl>
    1.34 +			<div> The <code>PointerEventInit</code> dictionary is used by the <code>PointerEvent</code> interface's constructor to provide a mechanism by which to construct untrusted (synthetic) pointer events. It inherits from the <code>MouseEventInit</code> dictionary defined in [[!UI-EVENTS]]. See the <a href="#examples" class="internalDFN" title="examples">examples</a> for sample code demonstrating how to dispatch an untrusted pointer event.</div>
    1.35  	    </div>
    1.36  	    <section>
    1.37  			<h2>Button States</h2>
    1.38 @@ -283,28 +302,6 @@
    1.39  				
    1.40  			</section>
    1.41  		</section>
    1.42 -		<section>
    1.43 -			<h3><code>PointerEvent</code> Constructor</h3>
    1.44 -			<dl class="idl" title="dictionary PointerEventInit : MouseEventInit">
    1.45 -				<dt>long pointerId = 0</dt>
    1.46 -					<dd>Initializes the <code>pointerId</code> property of the <code>PointerEvent</code> object.</dd>
    1.47 -				<dt>long width = 0</dt>
    1.48 -					<dd>Initializes the <code>width</code> property of the <code>PointerEvent</code> object.</dd>
    1.49 -				<dt>long height = 0</dt>
    1.50 -					<dd>Initializes the <code>height</code> property of the <code>PointerEvent</code> object.</dd>
    1.51 -				<dt>float pressure = 0</dt>
    1.52 -					<dd>Initializes the <code>pressure</code> property of the <code>PointerEvent</code> object.</dd>
    1.53 -				<dt>long tiltX = 0</dt>
    1.54 -					<dd>Initializes the <code>tiltX</code> property of the <code>PointerEvent</code> object.</dd>
    1.55 -				<dt>long tiltY = 0</dt>
    1.56 -					<dd>Initializes the <code>tiltY</code> property of the <code>PointerEvent</code> object.</dd>
    1.57 -				<dt>DOMString pointerType = ""</dt>
    1.58 -					<dd>Initializes the <code>pointerType</code> property of the <code>PointerEvent</code> object.</dd>
    1.59 -				<dt>boolean isPrimary = false</dt>
    1.60 -					<dd>Initializes the <code>isPrimary</code> property of the <code>PointerEvent</code> object.</dd>
    1.61 -			</dl>
    1.62 -			<div> The <code>PointerEventInit</code> dictionary is used by the <code>PointerEvent</code> interface's constructor to provide a mechanism by which to construct untrusted (synthetic) pointer events. It inherits from the <code>MouseEventInit</code> dictionary defined in [[!UI-EVENTS]]. See the <a href="#examples" class="internalDFN" title="examples">examples</a> for sample code demonstrating how to dispatch an untrusted pointer event.</div>
    1.63 -		</section>	
    1.64       </section>
    1.65  	 <section>
    1.66  		<h2>Pointer Event Types</h2>