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

Issue 261163004: 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, oshima
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Lock Rotation when screen is manually rotated Lock rotation if a user has rotated the display upon entering maximize mode. Only reset the display rotation upon exiting maximize mode, if rotation lock has not been established. TEST=MaximizeModeControllerTest BUG=369505 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=268794

Patch Set 1 #

Total comments: 6

Patch Set 2 : #

Total comments: 6

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+58 lines, -43 lines) Patch
M ash/wm/maximize_mode/maximize_mode_controller.h View 1 2 1 chunk +8 lines, -0 lines 0 comments Download
M ash/wm/maximize_mode/maximize_mode_controller.cc View 1 2 3 chunks +30 lines, -24 lines 0 comments Download
M ash/wm/maximize_mode/maximize_mode_controller_unittest.cc View 1 2 5 chunks +20 lines, -19 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
jonross
6 years, 7 months ago (2014-05-05 15:29:46 UTC) #1
flackr
CC +oshima about the reasons for having rotation lock on DisplayManager. https://codereview.chromium.org/261163004/diff/1/ash/wm/maximize_mode/maximize_mode_controller.cc File ash/wm/maximize_mode/maximize_mode_controller.cc (right): ...
6 years, 7 months ago (2014-05-05 20:53:56 UTC) #2
jonross
https://codereview.chromium.org/261163004/diff/1/ash/wm/maximize_mode/maximize_mode_controller.cc File ash/wm/maximize_mode/maximize_mode_controller.cc (right): https://codereview.chromium.org/261163004/diff/1/ash/wm/maximize_mode/maximize_mode_controller.cc#newcode153 ash/wm/maximize_mode/maximize_mode_controller.cc:153: rotation_locked_ = false; On 2014/05/05 20:53:56, flackr wrote: > ...
6 years, 7 months ago (2014-05-06 15:07:54 UTC) #3
flackr
lgtm with nits. https://codereview.chromium.org/261163004/diff/20001/ash/wm/maximize_mode/maximize_mode_controller.cc File ash/wm/maximize_mode/maximize_mode_controller.cc (right): https://codereview.chromium.org/261163004/diff/20001/ash/wm/maximize_mode/maximize_mode_controller.cc#newcode160 ash/wm/maximize_mode/maximize_mode_controller.cc:160: // mode. https://code.google.com/p/chromium/issues/detail?id=370443 nit: just use ...
6 years, 7 months ago (2014-05-06 15:47:25 UTC) #4
oshima
https://codereview.chromium.org/261163004/diff/20001/ash/wm/maximize_mode/maximize_mode_controller.cc File ash/wm/maximize_mode/maximize_mode_controller.cc (right): https://codereview.chromium.org/261163004/diff/20001/ash/wm/maximize_mode/maximize_mode_controller.cc#newcode154 ash/wm/maximize_mode/maximize_mode_controller.cc:154: event_blocker_.reset(); Would you mind defining MaximizeModeController::EnterMaximizeMode/LeaveMaximizeMode() for these? It'd ...
6 years, 7 months ago (2014-05-06 16:04:10 UTC) #5
jonross
https://codereview.chromium.org/261163004/diff/20001/ash/wm/maximize_mode/maximize_mode_controller.cc File ash/wm/maximize_mode/maximize_mode_controller.cc (right): https://codereview.chromium.org/261163004/diff/20001/ash/wm/maximize_mode/maximize_mode_controller.cc#newcode154 ash/wm/maximize_mode/maximize_mode_controller.cc:154: event_blocker_.reset(); On 2014/05/06 16:04:10, oshima wrote: > Would you ...
6 years, 7 months ago (2014-05-06 21:49:00 UTC) #6
oshima
ok, that makes sense. lgtm
6 years, 7 months ago (2014-05-06 21:53:34 UTC) #7
jonross
The CQ bit was checked by jonross@chromium.org
6 years, 7 months ago (2014-05-06 23:04:39 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jonross@chromium.org/261163004/40001
6 years, 7 months ago (2014-05-06 23:05:51 UTC) #9
commit-bot: I haz the power
6 years, 7 months ago (2014-05-07 15:59:33 UTC) #10
Message was sent while issue was closed.
Change committed as 268794

Powered by Google App Engine
This is Rietveld 408576698