This change renames ScreenOrientationDelegate to ScreenOrientationController to refle...
commit0af4521339c7ca15535ea92dd4c27f94610b9a67
authorjonross <jonross@chromium.org>
Tue, 13 Jan 2015 18:55:46 +0000 (13 10:55 -0800)
committerCommit bot <commit-bot@chromium.org>
Tue, 13 Jan 2015 18:56:32 +0000 (13 18:56 +0000)
tree1aea5b3a9c4b9fac0cad30f6d0124716b398c2f9
parent4c03d4d0964b0b69f5741aac6c78557b415617e1
This change renames ScreenOrientationDelegate to ScreenOrientationController to reflect on the new responsibilities that it is assuming.

The tracking of the accelerometer screen rotation, as well as the rotation lock, has been moved from MaximizeModeController to ScreenOrientationController.

ScreenOrientationController is now responsible for all rotation lock requests, from both TouchView user interface controls, as well as the Screen Orientation JavaScript API.

ScreenOrientationController is Chrome OS only. Classes using the rotation lock API have been updated to only do so on Chrome OS.

Screen rotation tests have been moved from MaximizeModeControllerTest to ScreenOrientationControllerTest. Other unittests have been updated to reflect the Chrome OS change. All pre-existing tests for rotation behaviour have been ran. Manual testing of both TouchView and Screen Orientation API have been done.

TEST=ScreenOrientationControllerTest, TrayRotationLockTest, MaximizeModeControllerTest, DisplayPreferencesTest
BUG=396760

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

Cr-Commit-Position: refs/heads/master@{#311299}
21 files changed:
ash/ash.gyp
ash/content/display/screen_orientation_controller_chromeos.cc [new file with mode: 0644]
ash/content/display/screen_orientation_controller_chromeos.h [new file with mode: 0644]
ash/content/display/screen_orientation_controller_chromeos_unittest.cc [new file with mode: 0644]
ash/content/display/screen_orientation_delegate_chromeos.h [deleted file]
ash/content/display/screen_orientation_delegate_chromeos_unittest.cc [deleted file]
ash/shell.cc
ash/shell.h
ash/system/chromeos/rotation/tray_rotation_lock.cc
ash/system/chromeos/rotation/tray_rotation_lock.h
ash/system/chromeos/rotation/tray_rotation_lock_unittest.cc
ash/system/chromeos/tray_display.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
chromeos/accelerometer/accelerometer_reader.cc
chromeos/accelerometer/accelerometer_reader.h
ui/gfx/geometry/vector3d_f.cc
ui/gfx/geometry/vector3d_f.h
ui/gfx/geometry/vector3d_unittest.cc