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

Issue 15817019: Additions to the Android java-side Device Motion/Orientation fetching (Closed)

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

Description

Additions to the Android java-side Device Motion/Orientation fetching A number of small modifications/improvements: - add a getNumberActiveMotionSensors() to determine how many sensors could actually be activated for device motion - make sure that the orientation events are only fired when the appropriate sensors change - rename mAccelerationVector to mAccelerationIncludingGravityVector BUG=135804 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=206091

Patch Set 1 #

Total comments: 6

Patch Set 2 : fixed comments from Marcus #

Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -14 lines) Patch
M content/browser/device_orientation/data_fetcher_impl_android.h View 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/device_orientation/data_fetcher_impl_android.cc View 1 1 chunk +6 lines, -0 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/DeviceMotionAndOrientation.java View 1 5 chunks +25 lines, -14 lines 0 comments Download
M content/public/android/javatests/src/org/chromium/content/browser/DeviceMotionAndOrientationTest.java View 4 chunks +6 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
timvolodine
Hi Marcus, Could you please have a look? thanks, Tim
7 years, 6 months ago (2013-06-12 17:04:35 UTC) #1
bulach
lgtm, thanks! just nits: https://codereview.chromium.org/15817019/diff/1/content/browser/device_orientation/data_fetcher_impl_android.cc File content/browser/device_orientation/data_fetcher_impl_android.cc (right): https://codereview.chromium.org/15817019/diff/1/content/browser/device_orientation/data_fetcher_impl_android.cc#newcode115 content/browser/device_orientation/data_fetcher_impl_android.cc:115: return Java_DeviceMotionAndOrientation_getNumberActiveDeviceMotionSensors( nit: for consistency, ...
7 years, 6 months ago (2013-06-13 09:49:35 UTC) #2
timvolodine
thanks! https://codereview.chromium.org/15817019/diff/1/content/browser/device_orientation/data_fetcher_impl_android.cc File content/browser/device_orientation/data_fetcher_impl_android.cc (right): https://codereview.chromium.org/15817019/diff/1/content/browser/device_orientation/data_fetcher_impl_android.cc#newcode115 content/browser/device_orientation/data_fetcher_impl_android.cc:115: return Java_DeviceMotionAndOrientation_getNumberActiveDeviceMotionSensors( On 2013/06/13 09:49:35, bulach wrote: > ...
7 years, 6 months ago (2013-06-13 14:00:40 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/timvolodine@chromium.org/15817019/9001
7 years, 6 months ago (2013-06-13 14:00:51 UTC) #4
commit-bot: I haz the power
7 years, 6 months ago (2013-06-13 16:38:40 UTC) #5
Message was sent while issue was closed.
Change committed as 206091

Powered by Google App Engine
This is Rietveld 408576698