Reland Device Orientation API on Chrome OS
commita6725f19e83a67b453db83f15c4191b2785de60a
authorjonross <jonross@chromium.org>
Thu, 5 Feb 2015 00:52:53 +0000 (4 16:52 -0800)
committerCommit bot <commit-bot@chromium.org>
Thu, 5 Feb 2015 00:55:01 +0000 (5 00:55 +0000)
treeb74fdfff28b2083aa7bd04ad24b3fe1257c55788
parent597a85175a34512b09b95cb241842ebadebd77ae
Reland Device Orientation API on Chrome OS

This reverts commit cc6a8bfeb49e93068e8df28f406e6ad0b5d6915e.
From review: https://codereview.chromium.org/899973002/

Original issue's 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

TBR=timvolodine@chromium.org,jam@chromium.org
BUG=342908

Review URL: https://codereview.chromium.org/880083005

Cr-Commit-Position: refs/heads/master@{#314692}
content/browser/BUILD.gn
content/browser/device_sensors/data_fetcher_shared_memory.h
content/browser/device_sensors/data_fetcher_shared_memory_chromeos.cc [new file with mode: 0644]
content/browser/device_sensors/sensor_manager_chromeos.cc [new file with mode: 0644]
content/browser/device_sensors/sensor_manager_chromeos.h [new file with mode: 0644]
content/browser/device_sensors/sensor_manager_chromeos_unittest.cc [new file with mode: 0644]
content/content_browser.gypi
content/content_tests.gypi