Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(287)

Issue 24220002: Enable Device Motion API on all platforms by default. (Closed)

Created:
7 years, 3 months ago by timvolodine
Modified:
7 years, 3 months ago
Reviewers:
Peter Beverloo, piman
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, Miguel Garcia
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Enable Device Motion API on all platforms by default. After this change the JavaScript expression 'window.DeviceMotionEvent' will start evaluating to true on all platforms. For Android, Windows and Mac devices with accelerometer and gyroscope sensors events will start being delivered. For devices without such sensors, and for other platforms (e.g. Chrome OS, Linux) which do not have corresponding sensor data fetcher implementations, we'll deliver a one-shot event with all properties set the NULL, per the specification. This patch also removes the obsolete 'enable-device-motion' flag, instead the 'disable-device-motion' flag is available. BUG=135804 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=224164

Patch Set 1 #

Total comments: 2

Patch Set 2 : remove enable-device-motion flag #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -33 lines) Patch
M chrome/app/generated_resources.grd View 1 chunk +0 lines, -6 lines 0 comments Download
M chrome/browser/about_flags.cc View 1 1 chunk +0 lines, -7 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 1 chunk +0 lines, -3 lines 0 comments Download
M content/child/runtime_features.cc View 1 chunk +2 lines, -8 lines 0 comments Download
M content/public/common/content_switches.h View 1 3 chunks +1 line, -2 lines 0 comments Download
M content/public/common/content_switches.cc View 1 3 chunks +4 lines, -7 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
timvolodine
7 years, 3 months ago (2013-09-18 14:47:30 UTC) #1
timvolodine
7 years, 3 months ago (2013-09-18 14:47:52 UTC) #2
Peter Beverloo
To confirm, per this change the JavaScript expression: 'ondevicemotion' in window ..will start evaluating to ...
7 years, 3 months ago (2013-09-18 15:17:39 UTC) #3
timvolodine
https://codereview.chromium.org/24220002/diff/1/content/browser/renderer_host/render_process_host_impl.cc File content/browser/renderer_host/render_process_host_impl.cc (right): https://codereview.chromium.org/24220002/diff/1/content/browser/renderer_host/render_process_host_impl.cc#newcode1017 content/browser/renderer_host/render_process_host_impl.cc:1017: switches::kEnableDeviceMotion, On 2013/09/18 15:17:39, Peter Beverloo wrote: > Can ...
7 years, 3 months ago (2013-09-18 16:27:37 UTC) #4
timvolodine
On 2013/09/18 15:17:39, Peter Beverloo wrote: > To confirm, per this change the JavaScript expression: ...
7 years, 3 months ago (2013-09-18 16:28:20 UTC) #5
Peter Beverloo
On 2013/09/18 16:28:20, timvolodine wrote: > On 2013/09/18 15:17:39, Peter Beverloo wrote: > > To ...
7 years, 3 months ago (2013-09-18 17:43:11 UTC) #6
timvolodine
On 2013/09/18 17:43:11, Peter Beverloo wrote: > On 2013/09/18 16:28:20, timvolodine wrote: > > On ...
7 years, 3 months ago (2013-09-18 17:56:26 UTC) #7
timvolodine
piman@chromium.org: Please review changes in
7 years, 3 months ago (2013-09-18 17:56:43 UTC) #8
piman
LGTM
7 years, 3 months ago (2013-09-18 20:43:41 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/timvolodine@chromium.org/24220002/9001
7 years, 3 months ago (2013-09-19 15:28:10 UTC) #10
commit-bot: I haz the power
7 years, 3 months ago (2013-09-19 18:07:59 UTC) #11
Message was sent while issue was closed.
Change committed as 224164

Powered by Google App Engine
This is Rietveld 408576698