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

Issue 2876993002: Introduce window container to be used by lock screen app windows (Closed)

Created:
3 years, 7 months ago by tbarzic
Modified:
3 years, 7 months ago
Reviewers:
oshima
CC:
chromium-reviews, kalyank, sadrul
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Introduce window container to be used by lock screen app windows An app will be able to show a window on lock screen only if it was registered as a handler for "new_note" tray action, and a user performed an action that causes the action to be handled. Lock screen app windows can have two visible states: * active - when the window is displayed over the user pods on lock screen UI. * background - when the window is displayed in background, under the user pods in lock screen UI. In both states, the lock screen UI system shelf should remain visible. Lock screen app windows are currently restricted only to maximized bounds. To implement this behavior, this CL introduces a new container that adjusts its children visibility state according to lock screen new note action state: * children can be active only when the action is in active state * children can be visible only when the action is in active or background state * in background state, children are stacked below the lock screen window * in active state, children are stacked above lock screen window BUG=716081 Review-Url: https://codereview.chromium.org/2876993002 Cr-Commit-Position: refs/heads/master@{#475042} Committed: https://chromium.googlesource.com/chromium/src/+/98adf00652d29143b41b6ec77b31e74025f10e93

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Patch Set 4 : . #

Patch Set 5 : . #

Patch Set 6 : Handle focus; show/hide individual windows rather than the whole container #

Patch Set 7 : use wm::ActivateWindow instead of window->Focus #

Patch Set 8 : . #

Total comments: 2

Patch Set 9 : . #

Patch Set 10 : . #

Patch Set 11 : Single container #

Patch Set 12 : rebase #

Total comments: 17

Patch Set 13 : . #

Patch Set 14 : review feedback #

Patch Set 15 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+888 lines, -18 lines) Patch
M ash/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +6 lines, -0 lines 0 comments Download
M ash/public/cpp/shell_window_ids.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +9 lines, -0 lines 0 comments Download
M ash/public/cpp/shell_window_ids.cc View 1 chunk +5 lines, -3 lines 0 comments Download
M ash/root_window_controller.cc View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +17 lines, -0 lines 0 comments Download
M ash/screen_util.h View 1 2 1 chunk +11 lines, -0 lines 0 comments Download
M ash/screen_util.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +9 lines, -0 lines 0 comments Download
M ash/tray_action/tray_action.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +4 lines, -1 line 0 comments Download
M ash/tray_action/tray_action.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +5 lines, -1 line 0 comments Download
M ash/tray_action/tray_action_unittest.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +11 lines, -0 lines 0 comments Download
M ash/wm/event_client_impl.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +6 lines, -1 line 0 comments Download
A ash/wm/lock_action_handler_layout_manager.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +65 lines, -0 lines 0 comments Download
A ash/wm/lock_action_handler_layout_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +100 lines, -0 lines 0 comments Download
A ash/wm/lock_action_handler_layout_manager_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +588 lines, -0 lines 0 comments Download
M ash/wm/lock_layout_manager.h View 1 2 3 4 5 6 7 8 1 chunk +5 lines, -1 line 0 comments Download
M ash/wm/lock_window_state.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +17 lines, -2 lines 0 comments Download
M ash/wm/lock_window_state.cc View 1 2 3 4 5 6 7 8 9 10 11 12 5 chunks +30 lines, -9 lines 0 comments Download

Messages

Total messages: 59 (42 generated)
tbarzic
Can you please take a look?
3 years, 7 months ago (2017-05-15 17:40:22 UTC) #19
oshima
one question. Why do you want to reparent, instead of changing visibility? Reparenting has many ...
3 years, 7 months ago (2017-05-17 18:16:00 UTC) #22
tbarzic
On 2017/05/17 18:16:00, oshima wrote: > one question. Why do you want to reparent, instead ...
3 years, 7 months ago (2017-05-17 18:28:43 UTC) #23
oshima
> Only one of these window containers will be visible at a time. I've got ...
3 years, 7 months ago (2017-05-17 23:26:03 UTC) #24
tbarzic
On 2017/05/17 23:26:03, oshima wrote: > > Only one of these window containers will be ...
3 years, 7 months ago (2017-05-18 00:45:02 UTC) #26
oshima
On 2017/05/18 00:45:02, tbarzic wrote: > On 2017/05/17 23:26:03, oshima wrote: > > > Only ...
3 years, 7 months ago (2017-05-18 01:09:08 UTC) #27
tbarzic
On 2017/05/18 01:09:08, oshima wrote: > On 2017/05/18 00:45:02, tbarzic wrote: > > On 2017/05/17 ...
3 years, 7 months ago (2017-05-18 01:33:31 UTC) #28
tbarzic
btw. one advantage of using two containers is it's easier to ensure the app windows ...
3 years, 7 months ago (2017-05-18 03:14:28 UTC) #29
tbarzic
Updated the approach to use a single window container. Please, take another look. https://codereview.chromium.org/2876993002/diff/140001/ash/wm/lock_action_handler_layout_manager.cc File ...
3 years, 7 months ago (2017-05-18 19:54:58 UTC) #33
oshima
https://codereview.chromium.org/2876993002/diff/220001/ash/screen_util.cc File ash/screen_util.cc (right): https://codereview.chromium.org/2876993002/diff/220001/ash/screen_util.cc#newcode52 ash/screen_util.cc:52: return GetDisplayBoundsInParent(window); nit: looks like shelf shouldn't be null? ...
3 years, 7 months ago (2017-05-25 19:50:00 UTC) #40
tbarzic
https://codereview.chromium.org/2876993002/diff/220001/ash/screen_util.cc File ash/screen_util.cc (right): https://codereview.chromium.org/2876993002/diff/220001/ash/screen_util.cc#newcode52 ash/screen_util.cc:52: return GetDisplayBoundsInParent(window); On 2017/05/25 19:49:59, oshima (OOO May 22-24) ...
3 years, 7 months ago (2017-05-25 20:32:21 UTC) #41
oshima
lgtm https://codereview.chromium.org/2876993002/diff/220001/ash/wm/lock_action_handler_layout_manager.cc File ash/wm/lock_action_handler_layout_manager.cc (right): https://codereview.chromium.org/2876993002/diff/220001/ash/wm/lock_action_handler_layout_manager.cc#newcode54 ash/wm/lock_action_handler_layout_manager.cc:54: AdjustWindowsForWorkAreaChange(&event); On 2017/05/25 20:32:20, tbarzic wrote: > On ...
3 years, 7 months ago (2017-05-25 23:46:20 UTC) #46
tbarzic
https://codereview.chromium.org/2876993002/diff/220001/ash/wm/lock_action_handler_layout_manager.cc File ash/wm/lock_action_handler_layout_manager.cc (right): https://codereview.chromium.org/2876993002/diff/220001/ash/wm/lock_action_handler_layout_manager.cc#newcode54 ash/wm/lock_action_handler_layout_manager.cc:54: AdjustWindowsForWorkAreaChange(&event); On 2017/05/25 23:46:20, oshima wrote: > On 2017/05/25 ...
3 years, 7 months ago (2017-05-26 00:49:33 UTC) #47
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2876993002/280001
3 years, 7 months ago (2017-05-26 01:25:14 UTC) #50
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/303847)
3 years, 7 months ago (2017-05-26 05:43:24 UTC) #52
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2876993002/280001
3 years, 7 months ago (2017-05-26 16:22:12 UTC) #56
commit-bot: I haz the power
3 years, 7 months ago (2017-05-26 17:28:40 UTC) #59
Message was sent while issue was closed.
Committed patchset #15 (id:280001) as
https://chromium.googlesource.com/chromium/src/+/98adf00652d29143b41b6ec77b31...

Powered by Google App Engine
This is Rietveld 408576698