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

Issue 535973002: Disable screen rotation when splitview is engaged and only allow splitview in landscape. (Closed)

Created:
6 years, 3 months ago by flackr
Modified:
6 years, 3 months ago
Reviewers:
oshima, mfomitchev
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Disable screen rotation when splitview is engaged and only allow splitview in landscape. BUG=408962 TEST=SplitSplitViewControllerTest.LandscapeOnly Committed: https://crrev.com/da089db03cecf464d35e3ffef855b3d328f27b7b Cr-Commit-Position: refs/heads/master@{#293180}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Add SetState to have consistent path to locking and unlocking rotation and fix unittest. #

Total comments: 4

Patch Set 3 : nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+118 lines, -14 lines) Patch
M athena/screen/public/screen_manager.h View 1 chunk +1 line, -0 lines 0 comments Download
M athena/screen/screen_manager_impl.cc View 4 chunks +15 lines, -2 lines 0 comments Download
M athena/wm/split_view_controller.h View 1 3 chunks +4 lines, -0 lines 0 comments Download
M athena/wm/split_view_controller.cc View 1 8 chunks +27 lines, -8 lines 0 comments Download
M athena/wm/split_view_controller_unittest.cc View 1 2 3 chunks +71 lines, -4 lines 0 comments Download

Messages

Total messages: 14 (3 generated)
flackr
Hey, can you take a look? This prevents entering splitview while in portrait orientation and ...
6 years, 3 months ago (2014-09-03 15:27:03 UTC) #2
mfomitchev
https://codereview.chromium.org/535973002/diff/1/athena/wm/split_view_controller.cc File athena/wm/split_view_controller.cc (right): https://codereview.chromium.org/535973002/diff/1/athena/wm/split_view_controller.cc#newcode160 athena/wm/split_view_controller.cc:160: ScreenManager::Get()->SetRotationLocked(state_ != INACTIVE); Perhaps we should create a SetState() ...
6 years, 3 months ago (2014-09-03 15:34:00 UTC) #3
mfomitchev
https://codereview.chromium.org/535973002/diff/1/athena/wm/split_view_controller_unittest.cc File athena/wm/split_view_controller_unittest.cc (right): https://codereview.chromium.org/535973002/diff/1/athena/wm/split_view_controller_unittest.cc#newcode103 athena/wm/split_view_controller_unittest.cc:103: ASSERT_TRUE(controller->CanScroll()); Perhaps finish the test by rotating it back ...
6 years, 3 months ago (2014-09-03 15:43:41 UTC) #4
flackr
Also created a friend test fixture for the split view tests since CanScroll is private. ...
6 years, 3 months ago (2014-09-03 16:42:13 UTC) #5
mfomitchev
LGTM
6 years, 3 months ago (2014-09-03 16:44:20 UTC) #6
flackr
+oshima, PTAL, thanks.
6 years, 3 months ago (2014-09-03 16:45:06 UTC) #8
oshima
lgtm with nits https://codereview.chromium.org/535973002/diff/20001/athena/wm/split_view_controller_unittest.cc File athena/wm/split_view_controller_unittest.cc (right): https://codereview.chromium.org/535973002/diff/20001/athena/wm/split_view_controller_unittest.cc#newcode23 athena/wm/split_view_controller_unittest.cc:23: nit // test::AthenaTestBase: https://codereview.chromium.org/535973002/diff/20001/athena/wm/split_view_controller_unittest.cc#newcode34 athena/wm/split_view_controller_unittest.cc:34: bool ...
6 years, 3 months ago (2014-09-03 16:59:40 UTC) #9
flackr
https://codereview.chromium.org/535973002/diff/20001/athena/wm/split_view_controller_unittest.cc File athena/wm/split_view_controller_unittest.cc (right): https://codereview.chromium.org/535973002/diff/20001/athena/wm/split_view_controller_unittest.cc#newcode23 athena/wm/split_view_controller_unittest.cc:23: On 2014/09/03 16:59:40, oshima wrote: > nit // test::AthenaTestBase: ...
6 years, 3 months ago (2014-09-03 17:36:00 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/flackr@chromium.org/535973002/40001
6 years, 3 months ago (2014-09-03 17:38:46 UTC) #12
commit-bot: I haz the power
Committed patchset #3 (id:40001) as 3e4f3686c43af1b328703ad1d8732c8801d67123
6 years, 3 months ago (2014-09-03 18:56:09 UTC) #13
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 03:27:11 UTC) #14
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/da089db03cecf464d35e3ffef855b3d328f27b7b
Cr-Commit-Position: refs/heads/master@{#293180}

Powered by Google App Engine
This is Rietveld 408576698