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}