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

 
Galaxy Note10 really is built around a 6.7-inch display
 
You may still be able to download your content
 
Facebook, Messenger and Instagram are all going away
 
Minimize apps to a floating, always-on-top bubble
 
Japan Display has been providing LCDs for the iPhone XR, the only LCD model in Apple’s 2018 line-up
 
The 2001 operating system has reached its lowest share level
 
The entire TSMC 5nm design infrastructure is available now from TSMC
 
The smartphone uses a Snapdragon 660 processor running Android 9 Pie
The Samsung Galaxy A5 (2017) Review
The evolution of the successful smartphone, now with a waterproof body and USB Type-C
February 7, 2017 / 2
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
  12345
6789101112
13141516171819
20212223242526
2728293031  




Poll

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