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

Issue 254673004: Add LockLayoutManager responsible for lock container (login/lock). (Closed)

Created:
6 years, 8 months ago by Nikita (slow)
Modified:
6 years, 6 months ago
Reviewers:
oshima
CC:
chromium-reviews, sadrul, nkostylev+watch_chromium.org, ben+ash_chromium.org, oshima+watch_chromium.org, kalyank, stevenjb+watch_chromium.org, davemoore+watch_chromium.org
Visibility:
Public.

Description

Add LockLayoutManager responsible for lock container (login/lock). Previously WorkspaceManager was used for this container which resulted in various issues when login screen window was not full screen and was supposed to be resized only by virtual keyboard container. Otherwise panels and shelf were taken into account even though they are stacked below the lock container. This CL improves previous fix https://codereview.chromium.org/231123002 Disable this layout manager with --ash-disable-lock-layout-manager Verified that existing out-of-box/login/multi-profiles login/lock* virtual keyboard overscroll/non-overscroll configurations work fine. Non-overscroll lock screen configuration is updated to use the same behavior as login in https://codereview.chromium.org/320523003 BUG=375666 TEST=LockLayoutManager.*, existing tests Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=275431

Patch Set 1 #

Patch Set 2 : cleanup #

Patch Set 3 : . #

Patch Set 4 : rebase #

Patch Set 5 : rebase #

Patch Set 6 : iterate #

Patch Set 7 : cleanup + rebase #

Patch Set 8 : more cleanup #

Patch Set 9 : overscroll comment #

Total comments: 10

Patch Set 10 : added unit_test + keyboard overscroll logic #

Patch Set 11 : cl #

Total comments: 5

Patch Set 12 : review #

Patch Set 13 : cleanup #

Patch Set 14 : rebase #

Patch Set 15 : remove bug fix #

Total comments: 4

Patch Set 16 : review #

Patch Set 17 : comment #

Total comments: 4

Patch Set 18 : nits #

Patch Set 19 : rebase #

Patch Set 20 : fix crash #

Unified diffs Side-by-side diffs Delta from patch set Stats (+674 lines, -1 line) Patch
M ash/ash.gyp View 1 2 3 4 5 6 7 8 9 2 chunks +5 lines, -0 lines 0 comments Download
M ash/ash_switches.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M ash/ash_switches.cc View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
M ash/root_window_controller.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +8 lines, -1 line 0 comments Download
M ash/test/test_shell_delegate.h View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -0 lines 0 comments Download
M ash/test/test_shell_delegate.cc View 1 2 3 4 5 6 7 8 9 1 chunk +5 lines, -0 lines 0 comments Download
A ash/wm/lock_layout_manager.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +102 lines, -0 lines 0 comments Download
A ash/wm/lock_layout_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +139 lines, -0 lines 0 comments Download
A ash/wm/lock_layout_manager_unittest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +177 lines, -0 lines 0 comments Download
A ash/wm/lock_window_state.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +58 lines, -0 lines 0 comments Download
A ash/wm/lock_window_state.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +170 lines, -0 lines 0 comments Download
M ash/wm/window_state.h View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 27 (0 generated)
Nikita (slow)
Please review, I'll be working on adding tests in this CL. A bit more context: ...
6 years, 6 months ago (2014-06-03 17:30:34 UTC) #1
oshima
https://codereview.chromium.org/254673004/diff/170001/ash/wm/lock_layout_manager.cc File ash/wm/lock_layout_manager.cc (right): https://codereview.chromium.org/254673004/diff/170001/ash/wm/lock_layout_manager.cc#newcode65 ash/wm/lock_layout_manager.cc:65: you should be able to just wm::GetWindowState(child)->SetStateObject(lock_state) and discard ...
6 years, 6 months ago (2014-06-03 22:36:44 UTC) #2
Nikita (slow)
https://codereview.chromium.org/254673004/diff/170001/ash/wm/lock_layout_manager.cc File ash/wm/lock_layout_manager.cc (right): https://codereview.chromium.org/254673004/diff/170001/ash/wm/lock_layout_manager.cc#newcode65 ash/wm/lock_layout_manager.cc:65: On 2014/06/03 22:36:44, oshima wrote: > you should be ...
6 years, 6 months ago (2014-06-04 04:17:00 UTC) #3
oshima
On 2014/06/04 04:17:00, Nikita Kostylev wrote: > https://codereview.chromium.org/254673004/diff/170001/ash/wm/lock_layout_manager.cc > File ash/wm/lock_layout_manager.cc (right): > > https://codereview.chromium.org/254673004/diff/170001/ash/wm/lock_layout_manager.cc#newcode65 ...
6 years, 6 months ago (2014-06-04 04:34:37 UTC) #4
Nikita (slow)
Added test + keyboard overscroll logic. https://codereview.chromium.org/254673004/diff/170001/ash/wm/lock_layout_manager.cc File ash/wm/lock_layout_manager.cc (right): https://codereview.chromium.org/254673004/diff/170001/ash/wm/lock_layout_manager.cc#newcode65 ash/wm/lock_layout_manager.cc:65: On 2014/06/03 22:36:44, ...
6 years, 6 months ago (2014-06-04 17:40:39 UTC) #5
oshima
https://codereview.chromium.org/254673004/diff/170001/ash/wm/lock_layout_manager.cc File ash/wm/lock_layout_manager.cc (right): https://codereview.chromium.org/254673004/diff/170001/ash/wm/lock_layout_manager.cc#newcode63 ash/wm/lock_layout_manager.cc:63: windows_.insert(child); do you need windows_? Isn't this same as ...
6 years, 6 months ago (2014-06-04 19:20:13 UTC) #6
Nikita (slow)
https://codereview.chromium.org/254673004/diff/170001/ash/wm/lock_layout_manager.cc File ash/wm/lock_layout_manager.cc (right): https://codereview.chromium.org/254673004/diff/170001/ash/wm/lock_layout_manager.cc#newcode66 ash/wm/lock_layout_manager.cc:66: window_state_map_[child] = new LockWindowState(child, this); On 2014/06/04 19:20:14, oshima ...
6 years, 6 months ago (2014-06-04 19:37:56 UTC) #7
oshima
On 2014/06/04 19:37:56, Nikita Kostylev wrote: > https://codereview.chromium.org/254673004/diff/170001/ash/wm/lock_layout_manager.cc > File ash/wm/lock_layout_manager.cc (right): > > https://codereview.chromium.org/254673004/diff/170001/ash/wm/lock_layout_manager.cc#newcode66 ...
6 years, 6 months ago (2014-06-04 19:48:53 UTC) #8
Nikita (slow)
On 2014/06/04 19:48:53, oshima wrote: > On 2014/06/04 19:37:56, Nikita Kostylev wrote: > > > ...
6 years, 6 months ago (2014-06-05 09:27:25 UTC) #9
Nikita (slow)
https://codereview.chromium.org/254673004/diff/170001/ash/wm/lock_layout_manager.cc File ash/wm/lock_layout_manager.cc (right): https://codereview.chromium.org/254673004/diff/170001/ash/wm/lock_layout_manager.cc#newcode147 ash/wm/lock_layout_manager.cc:147: } On 2014/06/04 19:20:14, oshima wrote: > this should ...
6 years, 6 months ago (2014-06-05 10:51:36 UTC) #10
oshima
> Won't work > >../../base/memory/scoped_ptr.h: In static member function 'static void ash::LockWindowState::Create(aura::Window*)': >../../base/memory/scoped_ptr.h:311:3: error: 'scoped_ptr<T, ...
6 years, 6 months ago (2014-06-05 15:27:26 UTC) #11
Nikita (slow)
On 2014/06/05 15:27:26, oshima wrote: > https://codereview.chromium.org/311373002 works for me. Thanks. I've probably missed something. ...
6 years, 6 months ago (2014-06-05 16:08:29 UTC) #12
Nikita (slow)
https://codereview.chromium.org/254673004/diff/290001/ash/wm/lock_window_state.cc File ash/wm/lock_window_state.cc (right): https://codereview.chromium.org/254673004/diff/290001/ash/wm/lock_window_state.cc#newcode95 ash/wm/lock_window_state.cc:95: window_state->set_can_be_dragged(false); On 2014/06/05 15:27:26, oshima wrote: > you can ...
6 years, 6 months ago (2014-06-05 16:08:36 UTC) #13
oshima
On 2014/06/05 16:08:36, Nikita Kostylev wrote: > https://codereview.chromium.org/254673004/diff/290001/ash/wm/lock_window_state.cc > File ash/wm/lock_window_state.cc (right): > > https://codereview.chromium.org/254673004/diff/290001/ash/wm/lock_window_state.cc#newcode95 ...
6 years, 6 months ago (2014-06-05 16:15:09 UTC) #14
Nikita (slow)
On 2014/06/05 16:15:09, oshima wrote: > https://codereview.chromium.org/254673004/diff/290001/ash/wm/lock_window_state.h#newcode13 > > ash/wm/lock_window_state.h:13: // states to maximized and ...
6 years, 6 months ago (2014-06-05 16:26:31 UTC) #15
oshima
lgtm if you address the following comments. https://codereview.chromium.org/254673004/diff/320001/ash/wm/lock_layout_manager.cc File ash/wm/lock_layout_manager.cc (right): https://codereview.chromium.org/254673004/diff/320001/ash/wm/lock_layout_manager.cc#newcode18 ash/wm/lock_layout_manager.cc:18: using aura::Window; ...
6 years, 6 months ago (2014-06-05 17:09:05 UTC) #16
Nikita (slow)
https://codereview.chromium.org/254673004/diff/320001/ash/wm/lock_layout_manager.cc File ash/wm/lock_layout_manager.cc (right): https://codereview.chromium.org/254673004/diff/320001/ash/wm/lock_layout_manager.cc#newcode18 ash/wm/lock_layout_manager.cc:18: using aura::Window; On 2014/06/05 17:09:05, oshima wrote: > nit: ...
6 years, 6 months ago (2014-06-06 04:31:30 UTC) #17
Nikita (slow)
The CQ bit was checked by nkostylev@chromium.org
6 years, 6 months ago (2014-06-06 08:34:10 UTC) #18
Nikita (slow)
The CQ bit was unchecked by nkostylev@chromium.org
6 years, 6 months ago (2014-06-06 08:34:19 UTC) #19
Nikita (slow)
The CQ bit was checked by nkostylev@chromium.org
6 years, 6 months ago (2014-06-06 10:47:54 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nkostylev@chromium.org/254673004/380001
6 years, 6 months ago (2014-06-06 10:49:02 UTC) #21
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_clang_dbg on tryserver.chromium ...
6 years, 6 months ago (2014-06-06 12:44:20 UTC) #22
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-06 13:16:34 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: android_clang_dbg on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/android_clang_dbg/builds/149472)
6 years, 6 months ago (2014-06-06 13:16:35 UTC) #24
Nikita (slow)
The CQ bit was checked by nkostylev@chromium.org
6 years, 6 months ago (2014-06-06 13:18:26 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nkostylev@chromium.org/254673004/380001
6 years, 6 months ago (2014-06-06 13:19:08 UTC) #26
commit-bot: I haz the power
6 years, 6 months ago (2014-06-06 13:51:16 UTC) #27
Message was sent while issue was closed.
Change committed as 275431

Powered by Google App Engine
This is Rietveld 408576698