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+

Add comment

Your name:
Sign in with:
Your comment:

Enter code:

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

Last news

A mobile hotspot in Australia will be capable of hitting gigabit speeds on the go
A new game could be in the works as Blizzard appears to have been hiring for a Diablo-related project
Nokia CEO Rajeev Suri will speak at MWC 2017
However what if you could go way, way back?
The Helio P15 packs an octa-core Cortex-A53 processor clocked at 2.2GHz
Samsung claims up to 27-percent higher performance or 40-percent lower power
Preliminary data for October shows another Windows 10 boom
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 /
HP Slate 7 is a 7-inch Android 4 Tablet PC with good sound
A cost-effective, 7-inch tablet PC from a renowned manufacturer
October 25, 2013 / 4

News Archive



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