Move AccelerometerType from ui to chromeos
commitc47d12e291954bd4fe75504b72e2dbcf667b30a3
authorjonross <jonross@chromium.org>
Wed, 4 Feb 2015 00:44:21 +0000 (3 16:44 -0800)
committerCommit bot <commit-bot@chromium.org>
Wed, 4 Feb 2015 00:45:17 +0000 (4 00:45 +0000)
tree2b53bdbc047d317dcb5f86ff6154b49a1373acd2
parent465ff593bd271dbff7f0c35cde15e55106b6649e
Move AccelerometerType from ui to chromeos

Move the accelerometer code from ui/accelerometer to chromeos/accelerometer/. This allows for the last dependency from chromeos/ to ui/ to be removed.

Create a new utility class in ui/chromeos for vector based accelerometer work.

Update code that uses the accelerometer.

TEST=All existing accelerometer tests. MaximizeModeControllerTest, ScreenOrientationTest, DisplayPreferencesTest
BUG=431865

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

Cr-Commit-Position: refs/heads/master@{#314448}
26 files changed:
ash/BUILD.gn
ash/ash.gyp
ash/content/display/screen_orientation_controller_chromeos.cc
ash/content/display/screen_orientation_controller_chromeos.h
ash/content/display/screen_orientation_controller_chromeos_unittest.cc
ash/wm/maximize_mode/maximize_mode_controller.cc
ash/wm/maximize_mode/maximize_mode_controller.h
ash/wm/maximize_mode/maximize_mode_controller_unittest.cc
chrome/browser/chromeos/display/display_preferences_unittest.cc
chrome/chrome_tests_unit.gypi
chrome/test/BUILD.gn
chromeos/BUILD.gn
chromeos/DEPS
chromeos/accelerometer/accelerometer_reader.cc
chromeos/accelerometer/accelerometer_reader.h
chromeos/accelerometer/accelerometer_types.cc [moved from ui/accelerometer/accelerometer_types.cc with 78% similarity]
chromeos/accelerometer/accelerometer_types.h [moved from ui/accelerometer/accelerometer_types.h with 69% similarity]
chromeos/chromeos.gyp
ui/accelerometer/BUILD.gn [deleted file]
ui/accelerometer/DEPS [deleted file]
ui/accelerometer/ui_accelerometer.gyp [deleted file]
ui/accelerometer/ui_accelerometer_export.h [deleted file]
ui/chromeos/BUILD.gn
ui/chromeos/accelerometer/accelerometer_util.cc [new file with mode: 0644]
ui/chromeos/accelerometer/accelerometer_util.h [new file with mode: 0644]
ui/chromeos/ui_chromeos.gyp