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

Issue 2710023007: Make WindowTree::SetModal() take the type. (Closed)

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

Description

Make WindowTree::SetModal() take the type. Previously system modal was implicitly inferred as a modal window who doesn't have a transient parent. But this is not true always, for example a JS alert window can be system modal but also have a transient parent. This CL adds modality type to WindowTree::SetModal() so window server is explicitly told the type of modality a window should take. BUG=660073 Review-Url: https://codereview.chromium.org/2710023007 Cr-Commit-Position: refs/heads/master@{#455064} Committed: https://chromium.googlesource.com/chromium/src/+/46d0c110e7c68b484bfc292cf030d599c9bb8251

Patch Set 1 #

Patch Set 2 : more code. #

Total comments: 4

Patch Set 3 : Address feedback and update unittests. #

Patch Set 4 : More cleanup. #

Patch Set 5 : Fix compile error. #

Total comments: 15

Patch Set 6 : Addressed feedback, need to add tests. #

Patch Set 7 : Add one more test for modal fail. #

Patch Set 8 : More testing. #

Patch Set 9 : more cleanup. #

Patch Set 10 : Don't check for system modal when AddTransientWindow(). #

Total comments: 2

Patch Set 11 : address feedback. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+252 lines, -98 lines) Patch
M services/ui/public/interfaces/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M services/ui/public/interfaces/window_tree.mojom View 1 2 3 4 5 2 chunks +3 lines, -4 lines 0 comments Download
M services/ui/ws/event_dispatcher_unittest.cc View 1 2 3 4 5 6 7 8 9 8 chunks +8 lines, -8 lines 0 comments Download
M services/ui/ws/modal_window_controller.cc View 1 2 3 4 5 6 7 8 4 chunks +8 lines, -3 lines 0 comments Download
M services/ui/ws/server_window.h View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -3 lines 0 comments Download
M services/ui/ws/server_window.cc View 1 2 3 4 5 6 7 8 9 3 chunks +3 lines, -7 lines 0 comments Download
M services/ui/ws/window_manager_state.cc View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M services/ui/ws/window_tree.h View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M services/ui/ws/window_tree.cc View 1 2 3 4 5 2 chunks +32 lines, -18 lines 0 comments Download
M services/ui/ws/window_tree_unittest.cc View 1 2 3 4 5 6 7 8 9 7 chunks +8 lines, -8 lines 0 comments Download
M ui/aura/mus/in_flight_change.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +7 lines, -4 lines 0 comments Download
M ui/aura/mus/in_flight_change.cc View 1 2 3 4 5 1 chunk +15 lines, -8 lines 0 comments Download
M ui/aura/mus/window_port_mus.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M ui/aura/mus/window_port_mus.cc View 1 2 3 4 5 2 chunks +5 lines, -4 lines 0 comments Download
M ui/aura/mus/window_tree_client.h View 1 2 3 4 5 2 chunks +4 lines, -1 line 0 comments Download
M ui/aura/mus/window_tree_client.cc View 1 2 3 4 5 6 7 8 9 2 chunks +8 lines, -13 lines 0 comments Download
M ui/aura/mus/window_tree_client_unittest.cc View 1 2 3 4 5 6 7 8 9 2 chunks +38 lines, -6 lines 0 comments Download
M ui/aura/test/mus/test_window_tree.h View 1 2 3 4 5 1 chunk +3 lines, -1 line 0 comments Download
M ui/aura/test/mus/test_window_tree.cc View 1 2 3 4 5 1 chunk +3 lines, -1 line 0 comments Download
M ui/aura/window.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M ui/aura/window_port.h View 1 2 3 4 5 1 chunk +3 lines, -3 lines 0 comments Download
M ui/aura/window_port_local.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M ui/aura/window_port_local.cc View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M ui/base/mojo/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M ui/base/mojo/typemaps.gni View 1 chunk +4 lines, -1 line 0 comments Download
A ui/base/mojo/ui_base_types.mojom View 1 chunk +21 lines, -0 lines 0 comments Download
A ui/base/mojo/ui_base_types.typemap View 1 chunk +12 lines, -0 lines 0 comments Download
A ui/base/mojo/ui_base_types_struct_traits.h View 1 2 3 4 5 1 chunk +55 lines, -0 lines 0 comments Download
M ui/base/mojo/window_open_disposition.typemap View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 54 (41 generated)
sky
I only poked at a couple of things. I think you're on a good path. ...
3 years, 9 months ago (2017-02-24 20:18:54 UTC) #8
Hadi
Addressed feedback. PTAL. tsepez@: please review ui/base/mojo and window_tree.mojom. Thanks. https://codereview.chromium.org/2710023007/diff/20001/services/ui/public/interfaces/window_tree.mojom File services/ui/public/interfaces/window_tree.mojom (right): https://codereview.chromium.org/2710023007/diff/20001/services/ui/public/interfaces/window_tree.mojom#newcode180 ...
3 years, 9 months ago (2017-02-28 20:29:07 UTC) #15
Tom Sepez
Mojom itself LGTM, but do you want to call this concept "Modality" instead of "ModalType"?
3 years, 9 months ago (2017-02-28 20:36:36 UTC) #16
Hadi
Thanks for review. On 2017/02/28 20:36:36, Tom Sepez wrote: > Mojom itself LGTM, but do ...
3 years, 9 months ago (2017-02-28 21:18:47 UTC) #21
sky
Do you plan on changing propagating to window manager separately? https://codereview.chromium.org/2710023007/diff/80001/services/ui/ws/server_window.h File services/ui/ws/server_window.h (right): https://codereview.chromium.org/2710023007/diff/80001/services/ui/ws/server_window.h#newcode135 ...
3 years, 9 months ago (2017-03-01 00:13:43 UTC) #24
Hadi
On 2017/03/01 00:13:43, sky wrote: > Do you plan on changing propagating to window manager ...
3 years, 9 months ago (2017-03-06 20:07:05 UTC) #35
sky
LGTM https://codereview.chromium.org/2710023007/diff/80001/services/ui/ws/window_tree.cc File services/ui/ws/window_tree.cc (right): https://codereview.chromium.org/2710023007/diff/80001/services/ui/ws/window_tree.cc#newcode363 services/ui/ws/window_tree.cc:363: switch (modal_type) { On 2017/03/06 20:07:05, Hadi wrote: ...
3 years, 9 months ago (2017-03-06 22:26:45 UTC) #40
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/2710023007/200001
3 years, 9 months ago (2017-03-07 02:26:56 UTC) #43
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/395388) win_chromium_x64_rel_ng on master.tryserver.chromium.win (JOB_FAILED, ...
3 years, 9 months ago (2017-03-07 04:19:34 UTC) #45
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/2710023007/200001
3 years, 9 months ago (2017-03-07 04:22:23 UTC) #47
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/395510)
3 years, 9 months ago (2017-03-07 07:42:08 UTC) #49
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/2710023007/200001
3 years, 9 months ago (2017-03-07 12:06:16 UTC) #51
commit-bot: I haz the power
3 years, 9 months ago (2017-03-07 13:56:37 UTC) #54
Message was sent while issue was closed.
Committed patchset #11 (id:200001) as
https://chromium.googlesource.com/chromium/src/+/46d0c110e7c68b484bfc292cf030...

Powered by Google App Engine
This is Rietveld 408576698