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

Issue 289583002: Lock rotation when screen is manually rotated. (Closed)

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

Description

Lock rotation when screen is manually rotated. Lock Rotation when screen is manually rotated. This re-lands: https://codereview.chromium.org/261163004 which was reverted by: https://codereview.chromium.org/271133002 640650531fbd87578ea969b3a7f8d8a9c915bcc4. Additionally DisplayManager now accepts a source of display rotations. Those triggered by explicit user input (display settins, ctrl+shift+f3) will be stored as a part of display settings. Those triggered by rotation will not. Upon exiting maximize mode the display will be returned to the last rotation explicitly set by a user. TEST=MaximizeControllerModeTest TEST=DisplayPreferencesTest BUG=371426 BUG=369505 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=273011

Patch Set 1 #

Patch Set 2 : Define sources for rotation #

Total comments: 14

Patch Set 3 : Rename enum #

Patch Set 4 : Revert the Rotation Source approach #

Patch Set 5 : Block saving directly #

Total comments: 8

Patch Set 6 : Rebase #

Patch Set 7 : #

Total comments: 2

Patch Set 8 : #

Total comments: 10

Patch Set 9 : #

Patch Set 10 : Fix non chromeOS builds #

Unified diffs Side-by-side diffs Delta from patch set Stats (+132 lines, -42 lines) Patch
M ash/shell.h View 1 2 3 4 5 6 7 8 9 1 chunk +8 lines, -0 lines 0 comments Download
M ash/shell.cc View 1 2 3 4 5 6 7 8 9 1 chunk +8 lines, -0 lines 0 comments Download
M ash/wm/maximize_mode/maximize_mode_controller.h View 1 2 3 4 5 6 3 chunks +13 lines, -0 lines 0 comments Download
M ash/wm/maximize_mode/maximize_mode_controller.cc View 1 2 3 4 5 6 7 8 5 chunks +36 lines, -36 lines 0 comments Download
M ash/wm/maximize_mode/maximize_mode_controller_unittest.cc View 1 2 3 4 5 6 4 chunks +26 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/display/display_preferences.cc View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/display/display_preferences_unittest.cc View 1 2 3 4 5 3 chunks +39 lines, -0 lines 0 comments Download

Messages

Total messages: 30 (0 generated)
jonross
6 years, 7 months ago (2014-05-15 00:49:59 UTC) #1
flackr
+oshima https://codereview.chromium.org/289583002/diff/60001/ash/display/display_info.h File ash/display/display_info.h (right): https://codereview.chromium.org/289583002/diff/60001/ash/display/display_info.h#newcode102 ash/display/display_info.h:102: gfx::Display::Rotation GetRotation(ui::RotationSource source); Do we ever want to ...
6 years, 7 months ago (2014-05-16 16:00:22 UTC) #2
jonross
https://codereview.chromium.org/289583002/diff/60001/ash/wm/maximize_mode/maximize_mode_controller.cc File ash/wm/maximize_mode/maximize_mode_controller.cc (right): https://codereview.chromium.org/289583002/diff/60001/ash/wm/maximize_mode/maximize_mode_controller.cc#newcode288 ash/wm/maximize_mode/maximize_mode_controller.cc:288: rotation_locked_ = current_rotation != gfx::Display::ROTATE_0; On 2014/05/16 16:00:22, flackr ...
6 years, 7 months ago (2014-05-16 17:25:28 UTC) #3
oshima
https://codereview.chromium.org/289583002/diff/60001/ui/display/types/display_constants.h File ui/display/types/display_constants.h (right): https://codereview.chromium.org/289583002/diff/60001/ui/display/types/display_constants.h#newcode57 ui/display/types/display_constants.h:57: }; I'd like to avoid having this info in ...
6 years, 7 months ago (2014-05-17 03:23:30 UTC) #4
jonross
Update to the enum namings. I will move their location based on oshima's decision. https://codereview.chromium.org/289583002/diff/60001/ash/display/display_info.h ...
6 years, 7 months ago (2014-05-20 15:24:29 UTC) #5
jonross
Offline discussion: Instead of the current approach, we will for now block saving any changes ...
6 years, 7 months ago (2014-05-20 21:43:26 UTC) #6
jonross
6 years, 7 months ago (2014-05-21 20:49:39 UTC) #7
oshima
https://codereview.chromium.org/289583002/diff/140001/ash/wm/maximize_mode/maximize_mode_controller.h File ash/wm/maximize_mode/maximize_mode_controller.h (right): https://codereview.chromium.org/289583002/diff/140001/ash/wm/maximize_mode/maximize_mode_controller.h#newcode33 ash/wm/maximize_mode/maximize_mode_controller.h:33: bool accelerometer_setting_rotation() { vconst https://codereview.chromium.org/289583002/diff/140001/ash/wm/maximize_mode/maximize_mode_controller.h#newcode84 ash/wm/maximize_mode/maximize_mode_controller.h:84: bool accelerometer_setting_rotation_; optional: ...
6 years, 7 months ago (2014-05-22 17:14:29 UTC) #8
flackr
Generally looks good. In CL description it looks like you somehow have doubled the title. ...
6 years, 7 months ago (2014-05-23 15:30:58 UTC) #9
jonross
https://codereview.chromium.org/289583002/diff/140001/ash/wm/maximize_mode/maximize_mode_controller.cc File ash/wm/maximize_mode/maximize_mode_controller.cc (right): https://codereview.chromium.org/289583002/diff/140001/ash/wm/maximize_mode/maximize_mode_controller.cc#newcode289 ash/wm/maximize_mode/maximize_mode_controller.cc:289: rotation_locked_ = user_rotation_ != gfx::Display::ROTATE_0; On 2014/05/23 15:30:58, flackr ...
6 years, 7 months ago (2014-05-23 19:07:19 UTC) #10
oshima
https://codereview.chromium.org/289583002/diff/180001/chrome/browser/chromeos/display/display_preferences.cc File chrome/browser/chromeos/display/display_preferences.cc (right): https://codereview.chromium.org/289583002/diff/180001/chrome/browser/chromeos/display/display_preferences.cc#newcode314 chrome/browser/chromeos/display/display_preferences.cc:314: if (!ash::Shell::GetInstance()->ShouldSaveDisplaySettings()) Sorry if it wasn't clear. I wanted ...
6 years, 7 months ago (2014-05-23 19:15:05 UTC) #11
jonross
https://codereview.chromium.org/289583002/diff/180001/chrome/browser/chromeos/display/display_preferences.cc File chrome/browser/chromeos/display/display_preferences.cc (right): https://codereview.chromium.org/289583002/diff/180001/chrome/browser/chromeos/display/display_preferences.cc#newcode314 chrome/browser/chromeos/display/display_preferences.cc:314: if (!ash::Shell::GetInstance()->ShouldSaveDisplaySettings()) On 2014/05/23 19:15:05, oshima wrote: > Sorry ...
6 years, 7 months ago (2014-05-23 19:52:14 UTC) #12
oshima
lgtm with a nit https://codereview.chromium.org/289583002/diff/150006/chrome/browser/chromeos/display/display_preferences.cc File chrome/browser/chromeos/display/display_preferences.cc (right): https://codereview.chromium.org/289583002/diff/150006/chrome/browser/chromeos/display/display_preferences.cc#newcode11 chrome/browser/chromeos/display/display_preferences.cc:11: #include "ash/wm/maximize_mode/maximize_mode_controller.h" nit: you don't ...
6 years, 7 months ago (2014-05-23 20:00:57 UTC) #13
flackr
LGTM with nits https://codereview.chromium.org/289583002/diff/150006/ash/shell.cc File ash/shell.cc (right): https://codereview.chromium.org/289583002/diff/150006/ash/shell.cc#newcode482 ash/shell.cc:482: maximize_mode_controller_->in_set_screen_rotation()) || nit: I would indent ...
6 years, 7 months ago (2014-05-26 16:05:17 UTC) #14
jonross
https://codereview.chromium.org/289583002/diff/150006/ash/shell.cc File ash/shell.cc (right): https://codereview.chromium.org/289583002/diff/150006/ash/shell.cc#newcode482 ash/shell.cc:482: maximize_mode_controller_->in_set_screen_rotation()) || On 2014/05/26 16:05:18, flackr wrote: > nit: ...
6 years, 7 months ago (2014-05-26 19:05:48 UTC) #15
jonross
The CQ bit was checked by jonross@chromium.org
6 years, 7 months ago (2014-05-26 19:05:56 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jonross@chromium.org/289583002/210001
6 years, 7 months ago (2014-05-26 19:06:55 UTC) #17
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-26 22:59:20 UTC) #18
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-26 23:23:52 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: android_aosp on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/android_aosp/builds/77718)
6 years, 7 months ago (2014-05-26 23:23:53 UTC) #20
jonross
flackr@ could you review this update? I have a patch for the non-chromeos builds.
6 years, 7 months ago (2014-05-27 15:19:50 UTC) #21
flackr
slgtm
6 years, 7 months ago (2014-05-27 15:22:46 UTC) #22
jonross
The CQ bit was checked by jonross@chromium.org
6 years, 7 months ago (2014-05-27 15:23:04 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jonross@chromium.org/289583002/230001
6 years, 7 months ago (2014-05-27 15:23:29 UTC) #24
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, 7 months ago (2014-05-27 18:34:23 UTC) #25
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-27 18:39:41 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: android_aosp on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/android_aosp/builds/78050)
6 years, 7 months ago (2014-05-27 18:39:42 UTC) #27
jonross
The CQ bit was checked by jonross@chromium.org
6 years, 7 months ago (2014-05-27 18:44:48 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jonross@chromium.org/289583002/230001
6 years, 7 months ago (2014-05-27 18:46:31 UTC) #29
commit-bot: I haz the power
6 years, 7 months ago (2014-05-27 19:53:46 UTC) #30
Message was sent while issue was closed.
Change committed as 273011

Powered by Google App Engine
This is Rietveld 408576698