Refactor AccelerometerReader to provide an Observer
commit8834fc4b4fe4997dd9b991ce5984e0d7e157a4d4
authorjonross <jonross@chromium.org>
Fri, 19 Dec 2014 17:29:19 +0000 (19 09:29 -0800)
committerCommit bot <commit-bot@chromium.org>
Fri, 19 Dec 2014 17:30:07 +0000 (19 17:30 +0000)
treef24f4f2f26648d906ef76640155f13b12faa9e40
parentfe57aa97a267caa856a64a532f113379471de4dc
Refactor AccelerometerReader to provide an Observer

Change chromeos::AccelerometerReader from using a single delegate, to using observers. We need to begin listening to it from both ash/ and content/

Removed the abstraction ash::AccelerometerController, and updated all locations to use the reader directly.

TEST=MaximizeModeControllerTes
BUG=431865

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

Cr-Commit-Position: refs/heads/master@{#309219}
15 files changed:
ash/BUILD.gn
ash/accelerometer/accelerometer_controller.cc [deleted file]
ash/accelerometer/accelerometer_controller.h [deleted file]
ash/accelerometer/accelerometer_observer.h [deleted file]
ash/ash.gyp
ash/shell.cc
ash/shell.h
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
athena/system/orientation_controller.cc
athena/system/orientation_controller.h
chrome/browser/ui/ash/ash_init.cc
chromeos/accelerometer/accelerometer_reader.cc
chromeos/accelerometer/accelerometer_reader.h