<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>30335</bug_id>
          
          <creation_ts>2009-10-13 09:17:07 -0700</creation_ts>
          <short_desc>add support for accelerometer / orientation events</short_desc>
          <delta_ts>2024-05-19 19:34:23 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebCore JavaScript</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc>http://dev.w3.org/geo/api/spec-source-orientation.html</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>47670</dependson>
    
    <dependson>39210</dependson>
    
    <dependson>39479</dependson>
    
    <dependson>39588</dependson>
    
    <dependson>39589</dependson>
    
    <dependson>39590</dependson>
    
    <dependson>41618</dependson>
    
    <dependson>41685</dependson>
    
    <dependson>42304</dependson>
    
    <dependson>42865</dependson>
    
    <dependson>43025</dependson>
    
    <dependson>43181</dependson>
    
    <dependson>43785</dependson>
    
    <dependson>43848</dependson>
    
    <dependson>45460</dependson>
    
    <dependson>45891</dependson>
    
    <dependson>47257</dependson>
    
    <dependson>47408</dependson>
    
    <dependson>51742</dependson>
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Patrick Mueller">pmuellr</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>andreip</cc>
    
    <cc>dougt</cc>
    
    <cc>hans</cc>
    
    <cc>marcosc</cc>
    
    <cc>steveblock</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>154350</commentid>
    <comment_count>0</comment_count>
    <who name="Patrick Mueller">pmuellr</who>
    <bug_when>2009-10-13 09:17:07 -0700</bug_when>
    <thetext>Firefox has added some accelerometer / orientation JavaScript events in their nightlies.  It would be nice to have this for WebKit as well.

links:

- Doug Turner&apos;s blog posts (Moz developer):
http://dougt.org/wordpress/tag/mozorientation/

- demo movie
http://blip.tv/file/2711424

- Mozilla&apos;s IDL for the event: 
http://mxr.mozilla.org/mozilla-central/source/widget/public/nsIAccelerometer.idl

- for reference, iPhone OS doc on accelerometer APIs:
http://developer.apple.com/iphone/library/documentation/UIKit/Reference/UIAccelerometer_Class/Reference/UIAccelerometer.html

- Android doc on Sensor events, that can track acceleration and orientation as separate things
http://developer.android.com/reference/android/hardware/SensorEvent.html

Unfortunately, there&apos;s no &quot;API&quot; apparently for desktop macs, though accessing accelerometer data is described in &quot;Mac OS X Internals: A Systems Approach&quot; by Amit Singh (section 10.7.5).  Accelerometers are available for some PC laptops as well, though the usage on a laptop seems a bit of a stretch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>224625</commentid>
    <comment_count>1</comment_count>
    <who name="Steve Block">steveblock</who>
    <bug_when>2010-05-12 08:27:14 -0700</bug_when>
    <thetext>There&apos;s now a draft spec for both orientation and accelerometer events. It&apos;s being developed by the Geolocation working group of which Doug is an active member. See http://dev.w3.org/geo/api/spec-source-orientation.html.

We plan to implement this in Android soon.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>224635</commentid>
    <comment_count>2</comment_count>
    <who name="Steve Block">steveblock</who>
    <bug_when>2010-05-12 08:34:10 -0700</bug_when>
    <thetext>&gt; We plan to implement this in Android soon.
By which I mean we&apos;ll contribute both the WebCore common code and the specifics for the Android port.

Patches coming soon ...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>226700</commentid>
    <comment_count>3</comment_count>
    <who name="Steve Block">steveblock</who>
    <bug_when>2010-05-17 02:09:27 -0700</bug_when>
    <thetext>I&apos;ll implement DeviceOrientation in stages, with separate bugs to track each stage.

I&apos;ve filed Bug 39210 to tack the addition of the bindings.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>227256</commentid>
    <comment_count>4</comment_count>
    <who name="Hans Wennborg">hans</who>
    <bug_when>2010-05-18 04:41:10 -0700</bug_when>
    <thetext>Adding myself to the CC list.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>228415</commentid>
    <comment_count>5</comment_count>
    <who name="Steve Block">steveblock</who>
    <bug_when>2010-05-20 09:36:21 -0700</bug_when>
    <thetext>Added spec link to bug&apos;s URL field</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2036332</commentid>
    <comment_count>6</comment_count>
    <who name="Marcos Caceres">marcosc</who>
    <bug_when>2024-05-19 19:34:23 -0700</bug_when>
    <thetext>WebKit implements the Device Orientation and Motion spec.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>