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

Issue 303723003: Lock Rotation on user settings changes (Closed)

Created:
6 years, 7 months ago by jonross
Modified:
6 years, 6 months ago
Reviewers:
flackr, oshima
CC:
chromium-reviews, sadrul, stevenjb+watch_chromium.org, ben+ash_chromium.org, oshima+watch_chromium.org, kalyank
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Lock Rotation on user settings changes While in MaximizeMode if the rotation of the internal display is changed by a source other than MaximizeModeController rotation lock will be set. Thereby blocking future accelerometer rotations until the user toggles the lock. The rotation lock tray will listen for these changes and update its visuals. TEST=MaximizeModeControllerTest BUG=371426, 369505 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=276699

Patch Set 1 #

Total comments: 23

Patch Set 2 : #

Total comments: 13

Patch Set 3 : #

Total comments: 2

Patch Set 4 : #

Total comments: 1

Patch Set 5 : Also update current rotation #

Total comments: 2

Patch Set 6 : Add test for edge case #

Patch Set 7 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+130 lines, -27 lines) Patch
M ash/system/chromeos/rotation/tray_rotation_lock.h View 1 2 3 chunks +9 lines, -0 lines 0 comments Download
M ash/system/chromeos/rotation/tray_rotation_lock.cc View 1 2 3 4 5 6 3 chunks +12 lines, -9 lines 0 comments Download
M ash/system/chromeos/rotation/tray_rotation_lock_unittest.cc View 1 2 3 4 5 6 1 chunk +4 lines, -4 lines 0 comments Download
M ash/wm/maximize_mode/maximize_mode_controller.h View 1 2 3 4 5 6 5 chunks +31 lines, -4 lines 0 comments Download
M ash/wm/maximize_mode/maximize_mode_controller.cc View 1 2 3 4 5 6 4 chunks +41 lines, -7 lines 0 comments Download
M ash/wm/maximize_mode/maximize_mode_controller_unittest.cc View 1 2 3 4 5 6 5 chunks +33 lines, -3 lines 0 comments Download

Messages

Total messages: 31 (0 generated)
jonross
Hi Rob, Please review the implementation of rotation lock on user display configuration changes.
6 years, 7 months ago (2014-05-27 22:16:33 UTC) #1
flackr
https://codereview.chromium.org/303723003/diff/1/ash/system/chromeos/rotation/tray_rotation_lock.cc File ash/system/chromeos/rotation/tray_rotation_lock.cc (left): https://codereview.chromium.org/303723003/diff/1/ash/system/chromeos/rotation/tray_rotation_lock.cc#oldcode66 ash/system/chromeos/rotation/tray_rotation_lock.cc:66: SetVisible(rotation_locked); Nice to be able to remove this! :-) ...
6 years, 6 months ago (2014-05-28 14:48:04 UTC) #2
jonross
https://codereview.chromium.org/303723003/diff/1/ash/system/chromeos/rotation/tray_rotation_lock.cc File ash/system/chromeos/rotation/tray_rotation_lock.cc (right): https://codereview.chromium.org/303723003/diff/1/ash/system/chromeos/rotation/tray_rotation_lock.cc#newcode62 ash/system/chromeos/rotation/tray_rotation_lock.cc:62: On 2014/05/28 14:48:04, flackr wrote: > nit: I don't ...
6 years, 6 months ago (2014-05-28 19:13:33 UTC) #3
flackr
https://codereview.chromium.org/303723003/diff/20001/ash/system/chromeos/rotation/tray_rotation_lock.cc File ash/system/chromeos/rotation/tray_rotation_lock.cc (right): https://codereview.chromium.org/303723003/diff/20001/ash/system/chromeos/rotation/tray_rotation_lock.cc#newcode58 ash/system/chromeos/rotation/tray_rotation_lock.cc:58: bool rotation_locked = !maximize_mode_controller->rotation_locked(); nit: No need to store ...
6 years, 6 months ago (2014-05-30 00:47:23 UTC) #4
jonross
https://codereview.chromium.org/303723003/diff/20001/ash/system/chromeos/rotation/tray_rotation_lock.cc File ash/system/chromeos/rotation/tray_rotation_lock.cc (right): https://codereview.chromium.org/303723003/diff/20001/ash/system/chromeos/rotation/tray_rotation_lock.cc#newcode58 ash/system/chromeos/rotation/tray_rotation_lock.cc:58: bool rotation_locked = !maximize_mode_controller->rotation_locked(); On 2014/05/30 00:47:24, flackr wrote: ...
6 years, 6 months ago (2014-05-30 14:52:43 UTC) #5
flackr
https://codereview.chromium.org/303723003/diff/20001/ash/system/chromeos/rotation/tray_rotation_lock_unittest.cc File ash/system/chromeos/rotation/tray_rotation_lock_unittest.cc (right): https://codereview.chromium.org/303723003/diff/20001/ash/system/chromeos/rotation/tray_rotation_lock_unittest.cc#newcode135 ash/system/chromeos/rotation/tray_rotation_lock_unittest.cc:135: On 2014/05/30 14:52:44, jonross wrote: > On 2014/05/30 00:47:24, ...
6 years, 6 months ago (2014-05-30 18:58:59 UTC) #6
jonross
https://codereview.chromium.org/303723003/diff/20001/ash/system/chromeos/rotation/tray_rotation_lock_unittest.cc File ash/system/chromeos/rotation/tray_rotation_lock_unittest.cc (right): https://codereview.chromium.org/303723003/diff/20001/ash/system/chromeos/rotation/tray_rotation_lock_unittest.cc#newcode135 ash/system/chromeos/rotation/tray_rotation_lock_unittest.cc:135: On 2014/05/30 18:58:59, flackr wrote: > On 2014/05/30 14:52:44, ...
6 years, 6 months ago (2014-06-02 14:42:46 UTC) #7
flackr
https://codereview.chromium.org/303723003/diff/20001/ash/wm/maximize_mode/maximize_mode_controller.cc File ash/wm/maximize_mode/maximize_mode_controller.cc (right): https://codereview.chromium.org/303723003/diff/20001/ash/wm/maximize_mode/maximize_mode_controller.cc#newcode197 ash/wm/maximize_mode/maximize_mode_controller.cc:197: if (rotation_locked_ || in_set_screen_rotation_) On 2014/05/30 18:58:59, flackr wrote: ...
6 years, 6 months ago (2014-06-02 15:11:10 UTC) #8
jonross
https://codereview.chromium.org/303723003/diff/20001/ash/wm/maximize_mode/maximize_mode_controller.cc File ash/wm/maximize_mode/maximize_mode_controller.cc (right): https://codereview.chromium.org/303723003/diff/20001/ash/wm/maximize_mode/maximize_mode_controller.cc#newcode197 ash/wm/maximize_mode/maximize_mode_controller.cc:197: if (rotation_locked_ || in_set_screen_rotation_) On 2014/06/02 15:11:11, flackr wrote: ...
6 years, 6 months ago (2014-06-02 18:01:12 UTC) #9
jonross
6 years, 6 months ago (2014-06-02 18:36:43 UTC) #10
flackr
https://codereview.chromium.org/303723003/diff/120001/ash/wm/maximize_mode/maximize_mode_controller.cc File ash/wm/maximize_mode/maximize_mode_controller.cc (right): https://codereview.chromium.org/303723003/diff/120001/ash/wm/maximize_mode/maximize_mode_controller.cc#newcode208 ash/wm/maximize_mode/maximize_mode_controller.cc:208: current_rotation_ = user_rotation; Thanks. Can we have a test ...
6 years, 6 months ago (2014-06-02 18:39:29 UTC) #11
jonross
https://codereview.chromium.org/303723003/diff/120001/ash/wm/maximize_mode/maximize_mode_controller.cc File ash/wm/maximize_mode/maximize_mode_controller.cc (right): https://codereview.chromium.org/303723003/diff/120001/ash/wm/maximize_mode/maximize_mode_controller.cc#newcode208 ash/wm/maximize_mode/maximize_mode_controller.cc:208: current_rotation_ = user_rotation; On 2014/06/02 18:39:29, flackr wrote: > ...
6 years, 6 months ago (2014-06-02 18:53:14 UTC) #12
flackr
lgtm
6 years, 6 months ago (2014-06-02 18:58:56 UTC) #13
jonross
Hi Oshima, Could you review this change to set rotation lock when a user changes ...
6 years, 6 months ago (2014-06-02 19:00:21 UTC) #14
oshima
hi, sorry I somehow missed your CL. I'll review this weekends.
6 years, 6 months ago (2014-06-07 03:12:11 UTC) #15
oshima
lgtm
6 years, 6 months ago (2014-06-09 16:18:04 UTC) #16
jonross
The CQ bit was checked by jonross@chromium.org
6 years, 6 months ago (2014-06-09 17:23:54 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jonross@chromium.org/303723003/140001
6 years, 6 months ago (2014-06-09 17:26:11 UTC) #18
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_aosp on tryserver.chromium ...
6 years, 6 months ago (2014-06-10 07:58:12 UTC) #19
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-10 11:19:22 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/chromium_presubmit/builds/72596) linux_chromium_chromeos_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/linux_chromium_chromeos_rel/builds/35857) linux_chromium_clang_dbg ...
6 years, 6 months ago (2014-06-10 11:19:23 UTC) #21
jonross
The CQ bit was checked by jonross@chromium.org
6 years, 6 months ago (2014-06-11 16:39:20 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jonross@chromium.org/303723003/150001
6 years, 6 months ago (2014-06-11 16:42:37 UTC) #23
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_chromium_x64_rel on tryserver.chromium ...
6 years, 6 months ago (2014-06-11 20:59:39 UTC) #24
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-11 21:14:44 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/win_chromium_x64_rel/builds/19586)
6 years, 6 months ago (2014-06-11 21:14:45 UTC) #26
jonross
The CQ bit was checked by jonross@chromium.org
6 years, 6 months ago (2014-06-12 13:44:08 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jonross@chromium.org/303723003/150001
6 years, 6 months ago (2014-06-12 13:46:11 UTC) #28
commit-bot: I haz the power
Change committed as 276699
6 years, 6 months ago (2014-06-12 16:15:54 UTC) #29
commit-bot: I haz the power
Change committed as 276699
6 years, 6 months ago (2014-06-12 16:16:21 UTC) #30
commit-bot: I haz the power
6 years, 6 months ago (2014-06-12 16:16:46 UTC) #31
Message was sent while issue was closed.
Change committed as 276699

Powered by Google App Engine
This is Rietveld 408576698