DescriptionThis 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
Committed: https://crrev.com/0af4521339c7ca15535ea92dd4c27f94610b9a67
Cr-Commit-Position: refs/heads/master@{#311299}
Patch Set 1 : #
Total comments: 14
Patch Set 2 : Merge in Maximize Mode changes #Patch Set 3 : Refactor Rotation from MaximizeModeController to ScreenOrientationController #
Total comments: 9
Patch Set 4 : Add AccelerationUpdate helper #Patch Set 5 : Change similarity to account for moved files #
Total comments: 12
Patch Set 6 : Rebase #Patch Set 7 : Rebase #Patch Set 8 : Fix tests post rebase #Patch Set 9 : Update Helper code #
Total comments: 10
Patch Set 10 : #Patch Set 11 : Vector Unittests #Patch Set 12 : Test inverses #Patch Set 13 : Rebase #Patch Set 14 : Fix Linux Compile #Messages
Total messages: 36 (9 generated)
|