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

Issue 856123002: Device Orientation API on Chrome OS (Closed)

Created:
5 years, 11 months ago by jonross
Modified:
5 years, 10 months ago
Reviewers:
jam, timvolodine
CC:
chromium-reviews, riju_, Michael van Ouwerkerk, jam, timvolodine, darin-cc_chromium.org, mlamouri+watch-sensors_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Device Orientation API on Chrome OS Implement DataFetcherSharedMemory on Chrome OS to provide Device Orientation support. Create SensorManagerChromeOS to observe accelerometer events, and to generate updates to the Device Orientation API. This is a follow up to: https://codereview.chromium.org/680383007/ With the accelerometer on Chrome OS now exposed to content/ from chromeos/accelerometer, no ash/ implementation is required. No public api in content/public/browser is needed either. TEST=SensorManagerTest.OrientationBuffer, SensorManagerTest.NeutralOrientation, SensorManagerTest.UpsideDown, SensorManagerTest.BeforeUpsideDownBoundary, SensorManagerTest.LeftEdge, SensorManagerTest.RightEdge, SensorManagerTest.BeforeRightEdgeBoundary BUG=342908 Committed: https://crrev.com/e717460964dd27a7239abec31462441eb971edbe Cr-Commit-Position: refs/heads/master@{#314605}

Patch Set 1 : #

Total comments: 18

Patch Set 2 : #

Patch Set 3 : #

Total comments: 25

Patch Set 4 : Rebase #

Patch Set 5 : #

Patch Set 6 : Rebase #

Patch Set 7 : Rebase #

Patch Set 8 : Update to reflect chromeos accelerometer changes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+391 lines, -2 lines) Patch
M content/browser/BUILD.gn View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/device_sensors/data_fetcher_shared_memory.h View 1 2 3 2 chunks +7 lines, -2 lines 0 comments Download
A content/browser/device_sensors/data_fetcher_shared_memory_chromeos.cc View 1 2 3 4 1 chunk +53 lines, -0 lines 0 comments Download
A content/browser/device_sensors/sensor_manager_chromeos.h View 1 2 3 4 5 6 7 1 chunk +55 lines, -0 lines 0 comments Download
A content/browser/device_sensors/sensor_manager_chromeos.cc View 1 2 3 4 5 6 7 1 chunk +119 lines, -0 lines 0 comments Download
A content/browser/device_sensors/sensor_manager_chromeos_unittest.cc View 1 2 3 4 5 6 7 1 chunk +151 lines, -0 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 4 5 6 3 chunks +4 lines, -0 lines 0 comments Download
M content/content_tests.gypi View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 30 (10 generated)
jonross
Hi Tim, Previously you reviewed my work on implementing the Device Orientation API on Chrome ...
5 years, 11 months ago (2015-01-20 19:34:09 UTC) #3
timvolodine
Hi Jon, yes looks much better indeed thanks! I've dropped some comments below. thanks, Tim ...
5 years, 11 months ago (2015-01-21 13:16:57 UTC) #4
jonross
https://codereview.chromium.org/856123002/diff/20001/content/browser/device_sensors/data_fetcher_shared_memory_chromeos.cc File content/browser/device_sensors/data_fetcher_shared_memory_chromeos.cc (right): https://codereview.chromium.org/856123002/diff/20001/content/browser/device_sensors/data_fetcher_shared_memory_chromeos.cc#newcode19 content/browser/device_sensors/data_fetcher_shared_memory_chromeos.cc:19: if (!sensor_manager_.get()) On 2015/01/21 13:16:57, timvolodine wrote: > nit: ...
5 years, 11 months ago (2015-01-21 16:02:11 UTC) #5
timvolodine
https://codereview.chromium.org/856123002/diff/20001/content/browser/device_sensors/sensor_manager_chromeos.cc File content/browser/device_sensors/sensor_manager_chromeos.cc (right): https://codereview.chromium.org/856123002/diff/20001/content/browser/device_sensors/sensor_manager_chromeos.cc#newcode19 content/browser/device_sensors/sensor_manager_chromeos.cc:19: chromeos::AccelerometerReader::GetInstance()->AddObserver(this); On 2015/01/21 16:02:11, jonross wrote: > On 2015/01/21 ...
5 years, 11 months ago (2015-01-21 19:08:22 UTC) #6
jonross
On 2015/01/21 19:08:22, timvolodine wrote: > https://codereview.chromium.org/856123002/diff/20001/content/browser/device_sensors/sensor_manager_chromeos.cc > File content/browser/device_sensors/sensor_manager_chromeos.cc (right): > > https://codereview.chromium.org/856123002/diff/20001/content/browser/device_sensors/sensor_manager_chromeos.cc#newcode19 > ...
5 years, 11 months ago (2015-01-23 19:13:41 UTC) #8
timvolodine
ok thanks Jon, lgtm with comments addressed https://codereview.chromium.org/856123002/diff/80001/content/browser/device_sensors/data_fetcher_shared_memory_chromeos.cc File content/browser/device_sensors/data_fetcher_shared_memory_chromeos.cc (right): https://codereview.chromium.org/856123002/diff/80001/content/browser/device_sensors/data_fetcher_shared_memory_chromeos.cc#newcode1 content/browser/device_sensors/data_fetcher_shared_memory_chromeos.cc:1: // Copyright ...
5 years, 11 months ago (2015-01-26 15:29:08 UTC) #9
jonross
https://codereview.chromium.org/856123002/diff/80001/content/browser/device_sensors/data_fetcher_shared_memory_chromeos.cc File content/browser/device_sensors/data_fetcher_shared_memory_chromeos.cc (right): https://codereview.chromium.org/856123002/diff/80001/content/browser/device_sensors/data_fetcher_shared_memory_chromeos.cc#newcode1 content/browser/device_sensors/data_fetcher_shared_memory_chromeos.cc:1: // Copyright 2014 The Chromium Authors. All rights reserved. ...
5 years, 11 months ago (2015-01-26 16:40:05 UTC) #10
jonross
jam@chromium.org: Could you provide an owners review for: content/browser/BUILD.gn This review is a replacement for ...
5 years, 11 months ago (2015-01-26 16:47:31 UTC) #12
jonross
Hi Sadrul, In this review I have added a dependency on ui/accelerometer in content_tests. This ...
5 years, 11 months ago (2015-01-26 16:51:08 UTC) #14
sadrul
On 2015/01/26 16:51:08, jonross wrote: > Hi Sadrul, > > In this review I have ...
5 years, 11 months ago (2015-01-26 18:25:23 UTC) #15
jonross
On 2015/01/26 18:25:23, sadrul wrote: > On 2015/01/26 16:51:08, jonross wrote: > > Hi Sadrul, ...
5 years, 11 months ago (2015-01-26 19:31:33 UTC) #16
jam
lgtm
5 years, 11 months ago (2015-01-26 22:20:30 UTC) #17
jonross
Hi Sadrul, The dependency on ui/accelerometer has been removed from content_unittests. With AccelerometerUpdate now in ...
5 years, 10 months ago (2015-02-04 14:36:24 UTC) #19
sadrul
On 2015/02/04 14:36:24, jonross wrote: > Hi Sadrul, > > The dependency on ui/accelerometer has ...
5 years, 10 months ago (2015-02-04 15:00:38 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/856123002/200001
5 years, 10 months ago (2015-02-04 16:12:58 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on tryserver.chromium.win (http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/22843)
5 years, 10 months ago (2015-02-04 18:04:04 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/856123002/200001
5 years, 10 months ago (2015-02-04 18:35:08 UTC) #27
commit-bot: I haz the power
Committed patchset #8 (id:200001)
5 years, 10 months ago (2015-02-04 19:16:34 UTC) #28
commit-bot: I haz the power
Patchset 8 (id:??) landed as https://crrev.com/e717460964dd27a7239abec31462441eb971edbe Cr-Commit-Position: refs/heads/master@{#314605}
5 years, 10 months ago (2015-02-04 19:17:51 UTC) #29
jonross
5 years, 10 months ago (2015-02-04 20:25:42 UTC) #30
Message was sent while issue was closed.
A revert of this CL (patchset #8 id:200001) has been created in
https://codereview.chromium.org/899973002/ by jonross@chromium.org.

The reason for reverting is: Compilation failure on CQ:

http://build.chromium.org/p/chromium.memory.fyi/builders/Chromium%20Linux%20C....

Powered by Google App Engine
This is Rietveld 408576698