W3C home > Mailing lists > Public > public-dap-commits@w3.org > September 2011

2009/dap/system-info Sensors.html,1.1,1.2

From: Dzung Tran via cvs-syncmail <cvsmail@w3.org>
Date: Thu, 01 Sep 2011 17:56:03 +0000
To: public-dap-commits@w3.org
Message-Id: <E1QzBUh-0004T4-Nc@lionel-hutz.w3.org>
Update of /sources/public/2009/dap/system-info
In directory hutz:/tmp/cvs-serv17141/system-info

Modified Files:
	Sensors.html 
Log Message:
Changed sensor type from integer to DOMString

Index: Sensors.html
===================================================================
RCS file: /sources/public/2009/dap/system-info/Sensors.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- Sensors.html	29 Aug 2011 20:09:07 -0000	1.1
+++ Sensors.html	1 Sep 2011 17:56:01 -0000	1.2
@@ -41,7 +41,7 @@
 		<p>This specification is a sensor API provided by the User Agent to expose various sensor data from hosting device to application code.
 		This specification will cover the well-known sensors that are commonly found in
 		devices. The information provided by the API is raw sensor data. The specification also provides a 
-		mechanism for extending the API to cover for vendor specific sensors.</p>
+		mechanism for extending the API to cover for vendor specific sensors such as providing additional sensor types as vocabulary.</p>
 		<p>The API is designed to enable both "one-shot" requests and repeated updates. The Sensors API in 
 		this specification is based on the W3C [[GEOLOCATION-API]], WAC [[WAC-ORIENTATION-API]], WAC [[WAC-SENSOR-API]] and 
 		Google Android's Sensor API.</p>
@@ -67,7 +67,7 @@
 		hosting device. The sensor information is acquired by calling platform native sensor interfaces, creating a Sensor object, and 
 		populating that object with appropriate data accordingly.
 		<dl title='interface SensorManager : Object' class='idl'>
-				<dt>void getSensor ( in SensorCallback successCallback, in int type, 
+				<dt>void getSensor ( in SensorCallback successCallback, in DOMString type, 
 						[Optional] in SensorErrorCallback errorCallback, 
 						[Optional] in SensorOptions options)</dt>
 				<dd>
@@ -81,7 +81,7 @@
 					an argument. 
 				</dd>
 				
-				<dt>long watchSensor ( in SensorCallback successCallback, in int type, in int interval,
+				<dt>long watchSensor ( in SensorCallback successCallback, in DOMString type, in int interval,
 						[Optional] in SensorErrorCallback errorCallback, 
 						[Optional] in SensorOptions options)</dt>
 				<dd>
@@ -130,13 +130,12 @@
 		</section>
 		<section>
 		<h3>type</h3>
-			The sensor type to obtain sensor information from the hosting device. Vendor specific type MUST starts from SENSOR_TYPE_VENDOR_START.
+			The sensor type to obtain sensor information from the hosting device. The current vocabulary includes:
 		  	<ul>
-		  		<li>SENSOR_TYPE_MAGNETIC_FIELD: Ambient magnetic field sensor</li>
-		  		<li>SENSOR_TYPE_GYROSCOPE: Gyroscope sensor</li>
-		  		<li>SENSOR_TYPE_AMBIENT_LIGHT: Ambient light sensor</li>
-		  		<li>SENSOR_TYPE_PROXIMITY: Proximity sensor</li>
-		  		<li>SENSOR_TYPE_VENDOR_START: Vendor specific sensor type start with this type constant</li>
+		  		<li>MagneticField</li>
+		  		<li>Gyroscope</li>
+		  		<li>AmbientLight</li>
+		  		<li>Proximity</li>
 		  	</ul>
 		<h3>interval</h3>
 				The <code>sampleInterval</code> attribute specifies in milliseconds how often 
@@ -175,21 +174,21 @@
 				<dd>
 		  			The raw sensor data as specified by sensor type
 		  			<ul>
-		  				<li>SENSOR_TYPE_MAGNETIC_FIELD: All values are in micro-Tesla (uT)
+		  				<li>MagneticField: All values are in micro-Tesla (uT)
 		  					values[0]: ambient magnetic field in X
 		  					values[1]: ambient magnetic field in Y
 		  					values[2]: ambient magnetic field in Z
 		  				</li>
-		  				<li>SENSOR_TYPE_GYROSCOPE: All values are in radians/second
+		  				<li>Gyroscope: All values are in radians/second
 		  					values[0]: Angular speed around the x-axis 
 		  					values[1]: Angular speed around the y-axis 
 							values[2]: Angular speed around the z-axis
 						</li>
-		  				<li>SENSOR_TYPE_AMBIENT_LIGHT: values[0]: Ambient light level in SI lux units </li>
-		  				<li>SENSOR_TYPE_PROXIMITY: values[0]: Proximity sensor distance measured in centimeters </li>
+		  				<li>AmbientLight: values[0]: Ambient light level in SI lux units </li>
+		  				<li>Proximity: values[0]: Proximity sensor distance measured in centimeters </li>
 		  			</ul>
 				</dd>
-				<dt>readonly attribute int type</dt>
+				<dt>readonly attribute DOMString type</dt>
 				<dd>
 					Specifies the sensor type for this Sensor object
 				</dd>
Received on Thursday, 1 September 2011 17:56:08 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 1 September 2011 17:56:08 GMT