Screen Orientation Controller allow rotation for some orientations
Some orientation locks allow rotation between the two angles of the given orientation. For landscape 0/180, for portrait 90/270.
Update ScreenOrientationController to check the orientaiton of a rotation lock. If the orientation supports rotation, allow accelerometer events to change the rotation.
TEST=ScreenOrientationControllerTest.LandscapeOrientationAllowsRotation, ScreenOrientationControllerTest.PortraitOrientationAllowsRotation, ScreenOrientationControllerTest.OrientationLockDisallowsRotation, ScreenOrientationControllerTest.UserRotationLockDisallowsRotation
BUG=396760
Review URL: https://codereview.chromium.org/
869393004
Cr-Commit-Position: refs/heads/master@{#314186}