Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(263)

Issue 196413017: Auto rotate on lid rotation changes. (Closed)

Created:
6 years, 9 months ago by flackr
Modified:
6 years, 8 months ago
Reviewers:
oshima
CC:
chromium-reviews, kalyank, stevenjb+watch_chromium.org, sadrul, oshima+watch_chromium.org, ben+ash_chromium.org
Visibility:
Public.

Description

Auto rotate on lid rotation changes. Based on patch to read the accelerometer https://codereview.chromium.org/200643005, this listens to accelerometer updates and rotates the screen. BUG=342907 TEST=MaximizeModeControllerTest.AccelerometerRotation, MaximizeModeControllerTest.AccelerometerIgnoresLowAngles, MaximizeModeControllerTest.AccelerometerSticky, MaximizeModeControllerTest.RotationOnlyInMaximizeMode TEST=Rotate device, ash should rotate to match device orientation. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=261692

Patch Set 1 #

Patch Set 2 : Rotate the screen on lid rotation. #

Patch Set 3 : Stick to current rotation and add tests. #

Total comments: 7

Patch Set 4 : Merge screen rotation detection with auto maximize mode controller. #

Patch Set 5 : Merge with master and update class comment. #

Total comments: 4

Patch Set 6 : Add local store comment to TODO and use display manager test api to set internal display id. #

Patch Set 7 : Merge with master. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+235 lines, -4 lines) Patch
M ash/wm/maximize_mode/maximize_mode_controller.h View 1 2 3 4 2 chunks +10 lines, -1 line 0 comments Download
M ash/wm/maximize_mode/maximize_mode_controller.cc View 1 2 3 4 5 6 5 chunks +101 lines, -3 lines 0 comments Download
M ash/wm/maximize_mode/maximize_mode_controller_unittest.cc View 1 2 3 4 5 4 chunks +124 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
flackr
Hi, this is dependent on https://codereview.chromium.org/200643005/ which has not yet landed, however the difference is ...
6 years, 8 months ago (2014-04-01 00:02:36 UTC) #1
oshima
FYI: You can upload diffs between commits using git cl upload. (like this https://codereview.chromium.org/218493010) https://codereview.chromium.org/196413017/diff/30001/ash/accelerometer/accelerometer_controller.cc ...
6 years, 8 months ago (2014-04-01 00:57:02 UTC) #2
flackr
I'm not sure what you used to upload that diff. Can you send me the ...
6 years, 8 months ago (2014-04-01 01:46:31 UTC) #3
oshima
> I'm not sure what you used to upload that diff. Can you send me ...
6 years, 8 months ago (2014-04-01 14:52:50 UTC) #4
flackr
Hey, as suggested I've merged this with the maximize mode detection which I will eventually ...
6 years, 8 months ago (2014-04-03 02:50:26 UTC) #5
oshima
lgtm with nits https://codereview.chromium.org/196413017/diff/70001/ash/wm/maximize_mode/maximize_mode_controller.cc File ash/wm/maximize_mode/maximize_mode_controller.cc (right): https://codereview.chromium.org/196413017/diff/70001/ash/wm/maximize_mode/maximize_mode_controller.cc#newcode137 ash/wm/maximize_mode/maximize_mode_controller.cc:137: // back to ROTATE_0 if it ...
6 years, 8 months ago (2014-04-03 19:19:48 UTC) #6
flackr
https://codereview.chromium.org/196413017/diff/70001/ash/wm/maximize_mode/maximize_mode_controller.cc File ash/wm/maximize_mode/maximize_mode_controller.cc (right): https://codereview.chromium.org/196413017/diff/70001/ash/wm/maximize_mode/maximize_mode_controller.cc#newcode137 ash/wm/maximize_mode/maximize_mode_controller.cc:137: // back to ROTATE_0 if it was last set ...
6 years, 8 months ago (2014-04-03 19:43:46 UTC) #7
flackr
The CQ bit was checked by flackr@chromium.org
6 years, 8 months ago (2014-04-04 03:47:19 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/flackr@chromium.org/196413017/130001
6 years, 8 months ago (2014-04-04 03:47:28 UTC) #9
commit-bot: I haz the power
6 years, 8 months ago (2014-04-04 06:26:08 UTC) #10
Message was sent while issue was closed.
Change committed as 261692

Powered by Google App Engine
This is Rietveld 408576698