Google bringing accelerometer support to Chromium

Google logoIn a move to bring screen-orientation awareness to mobile Web applications, Google has added accelerometer APIs to the WebKit HTML renderer. The APIs are based on the DeviceOrientation Event Specification, a W3C Web standard draft that describes DOM events for monitoring orientation changes and accelerometer activity.

The WebKit implementation of the DeviceOrientation standard was developed by Google engineer Steve Block, one of the coauthors of the specification. The code landed in WebKit in May, but was only enabled for the Android platform. Google is now preparing to bring the feature to Chromium.

The feature will allow Web application developers to track the device's orientation with JavaScript and programmatically perform certain actions when the orientation changes. Similar features are already implemented in Mozilla's Firefox Web browser. Mozilla's work on the feature preceded the W3C specification, so Firefox has its own, slightly different API. You can see Firefox's accelerometer support in action today in the version of Firefox Mobile that is available for the N900.

Accelerometer API support in Chromium could be useful in the future if Google's upcoming Chrome OS ever comes to tablet devices. The feature is, however, still under active development.

Tags: Google, Google+

Comments
Add comment

Your name:
Sign in with:
or
Your comment:


Enter code:

E-mail (not required)
E-mail will not be disclosed to the third party


Last news

 
You can use a security key instead of having a code sent to your phone
 
Adobe says that the AI can now achieve the intended result in seconds
 
A new security protocol replacing the aging WPA2
 
Download and install at your own risk, of course
 
More iPhone parts likely to be produced by Samsung
 
Starting on Friday, video views on YouTube will start to be counted by the Official Charts Company
 
LG has already announced two new V-series members in 2018
 
The method is blocked and the hack doesn’t work, it adds
The Samsung Galaxy A5 (2017) Review
The evolution of the successful smartphone, now with a waterproof body and USB Type-C
February 7, 2017 /
Samsung Galaxy TabPro S - a tablet with the Windows-keyboard
The first Windows-tablet with the 12-inch display Super AMOLED
June 7, 2016 /
Keyboards for iOS
Ten iOS keyboards review
July 18, 2015 /
Samsung E1200 Mobile Phone Review
A cheap phone with a good screen
March 8, 2015 / 4
Creative Sound Blaster Z sound card review
Good sound for those who are not satisfied with the onboard solution
September 25, 2014 / 2
Samsung Galaxy Gear: Smartwatch at High Price
The first smartwatch from Samsung - almost a smartphone with a small body
December 19, 2013 /
 
 

News Archive

 
 
SuMoTuWeThFrSa
1234567
891011121314
15161718192021
22232425262728
293031    




Poll

Do you use microSD card with your phone?
or leave your own version in comments (10)