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

Issue 2650833002: Set focusibility correctly when initializing a window in mus+ash. (Closed)

Created:
3 years, 11 months ago by Hadi
Modified:
3 years, 11 months ago
Reviewers:
Tom Sepez, sadrul, sky
CC:
chromium-reviews, rjkroege, sadrul, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, tfarina, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, kalyank, darin (slow to review)
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Set focusibility correctly when initializing a window in mus+ash. Saves |init_params.CanActivate()| in mus properties, and calls SetCanFocus() from WM just after creating the window. BUG=684048 Review-Url: https://codereview.chromium.org/2650833002 Cr-Commit-Position: refs/heads/master@{#446460} Committed: https://chromium.googlesource.com/chromium/src/+/c17142e8e1a64aa75c26b843c2ed23ebec9d39b9

Patch Set 1 #

Total comments: 15

Patch Set 2 : addressed feedback. #

Patch Set 3 : cleanup. #

Total comments: 2

Patch Set 4 : addressed feedback. #

Patch Set 5 : more code. #

Patch Set 6 : update mus_demo. #

Total comments: 6

Patch Set 7 : addressed feedback. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+87 lines, -17 lines) Patch
M ash/mus/top_level_window_factory.cc View 1 2 3 4 5 6 2 chunks +12 lines, -0 lines 0 comments Download
M ash/mus/window_manager.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M ash/mus/window_manager.cc View 1 2 3 4 5 6 1 chunk +7 lines, -0 lines 0 comments Download
M mash/simple_wm/simple_wm.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M mash/simple_wm/simple_wm.cc View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M services/ui/demo/mus_demo.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M services/ui/demo/mus_demo.cc View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M services/ui/public/interfaces/window_manager.mojom View 1 2 3 4 5 6 2 chunks +5 lines, -0 lines 0 comments Download
M services/ui/test_wm/test_wm.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M services/ui/ws/test_utils.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M services/ui/ws/window_manager_client_unittest.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M services/ui/ws/window_server_test_base.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M services/ui/ws/window_server_test_base.cc View 1 2 3 4 1 chunk +6 lines, -0 lines 0 comments Download
M services/ui/ws/window_tree.cc View 1 2 3 4 5 6 1 chunk +13 lines, -3 lines 0 comments Download
M services/ui/ws/window_tree_client_unittest.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M ui/aura/mus/window_manager_delegate.h View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M ui/aura/mus/window_tree_client.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M ui/aura/mus/window_tree_client.cc View 1 2 3 4 1 chunk +6 lines, -0 lines 0 comments Download
M ui/aura/test/aura_test_base.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M ui/aura/test/aura_test_base.cc View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M ui/views/mus/mus_client.cc View 1 1 chunk +3 lines, -0 lines 0 comments Download
M ui/views/widget/widget.h View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
M ui/views/widget/widget.cc View 1 2 3 4 5 6 2 chunks +11 lines, -14 lines 0 comments Download

Messages

Total messages: 41 (24 generated)
Hadi
PTAL. If this CL looks fine, I'll fix init_params.accept_events in a follow-up CL. Thanks.
3 years, 11 months ago (2017-01-23 20:30:29 UTC) #5
sky
https://codereview.chromium.org/2650833002/diff/1/services/ui/public/interfaces/window_manager.mojom File services/ui/public/interfaces/window_manager.mojom (right): https://codereview.chromium.org/2650833002/diff/1/services/ui/public/interfaces/window_manager.mojom#newcode39 services/ui/public/interfaces/window_manager.mojom:39: const string kActivatable_InitProperty = "init:activatable"; Name this Focusable to ...
3 years, 11 months ago (2017-01-23 21:28:29 UTC) #6
sadrul
https://codereview.chromium.org/2650833002/diff/1/services/ui/ws/window_tree.cc File services/ui/ws/window_tree.cc (left): https://codereview.chromium.org/2650833002/diff/1/services/ui/ws/window_tree.cc#oldcode1551 services/ui/ws/window_tree.cc:1551: window->set_can_focus(can_focus); if (!window) return; if (ShouldRouteToWndowManager(window) || access_policy_->CanSetFocus(window)) window->set_can_focus(can_focus); ...
3 years, 11 months ago (2017-01-24 17:34:49 UTC) #9
sadrul
https://codereview.chromium.org/2650833002/diff/1/services/ui/ws/window_tree.cc File services/ui/ws/window_tree.cc (left): https://codereview.chromium.org/2650833002/diff/1/services/ui/ws/window_tree.cc#oldcode1551 services/ui/ws/window_tree.cc:1551: window->set_can_focus(can_focus); On 2017/01/24 17:34:49, sadrul wrote: > if (!window) ...
3 years, 11 months ago (2017-01-24 17:35:23 UTC) #10
Hadi
https://codereview.chromium.org/2650833002/diff/1/services/ui/public/interfaces/window_manager.mojom File services/ui/public/interfaces/window_manager.mojom (right): https://codereview.chromium.org/2650833002/diff/1/services/ui/public/interfaces/window_manager.mojom#newcode39 services/ui/public/interfaces/window_manager.mojom:39: const string kActivatable_InitProperty = "init:activatable"; On 2017/01/23 21:28:29, sky ...
3 years, 11 months ago (2017-01-24 18:42:33 UTC) #11
sadrul
https://codereview.chromium.org/2650833002/diff/1/ui/views/mus/mus_client.cc File ui/views/mus/mus_client.cc (right): https://codereview.chromium.org/2650833002/diff/1/ui/views/mus/mus_client.cc#newcode155 ui/views/mus/mus_client.cc:155: mojo::ConvertTo<std::vector<uint8_t>>(init_params.CanActivate()); On 2017/01/24 18:42:33, Hadi wrote: > On 2017/01/24 ...
3 years, 11 months ago (2017-01-25 05:31:40 UTC) #12
Hadi
On 2017/01/25 05:31:40, sadrul wrote: > The window-id is set pretty early on in the ...
3 years, 11 months ago (2017-01-25 21:14:46 UTC) #13
sky
On 2017/01/25 21:14:46, Hadi wrote: > On 2017/01/25 05:31:40, sadrul wrote: > > The window-id ...
3 years, 11 months ago (2017-01-25 22:29:30 UTC) #14
sadrul
Ah, I see. Thanks for the explanation! Looks like you are doing the right thing ...
3 years, 11 months ago (2017-01-26 06:27:36 UTC) #15
Hadi
https://codereview.chromium.org/2650833002/diff/40001/services/ui/ws/window_tree.cc File services/ui/ws/window_tree.cc (right): https://codereview.chromium.org/2650833002/diff/40001/services/ui/ws/window_tree.cc#newcode1555 services/ui/ws/window_tree.cc:1555: wm_tree->SetCanFocus(transport_window_id, can_focus); On 2017/01/26 06:27:35, sadrul wrote: > My ...
3 years, 11 months ago (2017-01-26 17:34:25 UTC) #20
sky
https://codereview.chromium.org/2650833002/diff/100001/ash/mus/top_level_window_factory.cc File ash/mus/top_level_window_factory.cc (right): https://codereview.chromium.org/2650833002/diff/100001/ash/mus/top_level_window_factory.cc#newcode187 ash/mus/top_level_window_factory.cc:187: // No need to persist this value. Any properties ...
3 years, 11 months ago (2017-01-26 18:59:05 UTC) #25
Hadi
https://codereview.chromium.org/2650833002/diff/100001/ash/mus/top_level_window_factory.cc File ash/mus/top_level_window_factory.cc (right): https://codereview.chromium.org/2650833002/diff/100001/ash/mus/top_level_window_factory.cc#newcode187 ash/mus/top_level_window_factory.cc:187: // No need to persist this value. On 2017/01/26 ...
3 years, 11 months ago (2017-01-26 20:23:17 UTC) #28
sky
LGTM
3 years, 11 months ago (2017-01-26 20:40:30 UTC) #29
Hadi
tsepez@ can you please review window_manager.mojom? Thanks.
3 years, 11 months ago (2017-01-26 20:43:31 UTC) #31
Tom Sepez
lgtm
3 years, 11 months ago (2017-01-26 21:09:15 UTC) #34
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/2650833002/120001
3 years, 11 months ago (2017-01-26 21:41:07 UTC) #38
commit-bot: I haz the power
3 years, 11 months ago (2017-01-26 21:51:16 UTC) #41
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/c17142e8e1a64aa75c26b843c2ed...

Powered by Google App Engine
This is Rietveld 408576698