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

Issue 1818333002: Reland: mus: Enable system modal windows (Closed)

Created:
4 years, 9 months ago by mohsen
Modified:
4 years, 7 months ago
Reviewers:
sky
CC:
chromium-reviews, kalyank, rjkroege, sadrul
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Reland: mus: Enable system modal windows When a modal window does not have a transient parent, it will be modal to the whole system. BUG=548402 Committed: https://crrev.com/aad86d4a28e819ff7b1d6cef106c7d88da2d48aa Cr-Commit-Position: refs/heads/master@{#390963} Committed: https://crrev.com/3fe9bbb646a9408e6156012d6004a16903423363 Cr-Commit-Position: refs/heads/master@{#392007}

Patch Set 1 #

Patch Set 2 : Some improvements #

Patch Set 3 : Improvements #

Patch Set 4 : Cleaned up comments #

Total comments: 8

Patch Set 5 : Addressed review comments #

Patch Set 6 : Allow multiple system modals #

Patch Set 7 : Rebased #

Total comments: 2

Patch Set 8 : Factored modal window code into ModalWindowController #

Patch Set 9 : Cleanup #

Total comments: 10

Patch Set 10 : Addressed review comments #

Total comments: 2

Patch Set 11 : Added more tests + Cleaned up comments #

Total comments: 6

Patch Set 12 : Addressed nits #

Patch Set 13 : Fixed AddTransientWindow failure + Rebased #

Patch Set 14 : Rebased after fixing the crash #

Unified diffs Side-by-side diffs Delta from patch set Stats (+560 lines, -117 lines) Patch
M components/mus/public/cpp/lib/window.cc View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
M components/mus/public/interfaces/window_tree.mojom View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +9 lines, -7 lines 0 comments Download
M components/mus/ws/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -0 lines 0 comments Download
M components/mus/ws/event_dispatcher.h View 1 2 3 4 5 6 7 8 9 10 11 12 5 chunks +27 lines, -4 lines 0 comments Download
M components/mus/ws/event_dispatcher.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 10 chunks +55 lines, -28 lines 0 comments Download
M components/mus/ws/event_dispatcher_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 6 chunks +127 lines, -5 lines 0 comments Download
A components/mus/ws/modal_window_controller.h View 1 2 3 4 5 6 7 8 9 1 chunk +87 lines, -0 lines 0 comments Download
A components/mus/ws/modal_window_controller.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +121 lines, -0 lines 0 comments Download
M components/mus/ws/server_window.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +2 lines, -12 lines 0 comments Download
M components/mus/ws/server_window.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +6 lines, -31 lines 0 comments Download
M components/mus/ws/test_utils.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +22 lines, -3 lines 0 comments Download
M components/mus/ws/test_utils.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +9 lines, -0 lines 0 comments Download
M components/mus/ws/window_manager_state.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -5 lines 0 comments Download
M components/mus/ws/window_manager_state.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +6 lines, -13 lines 0 comments Download
M components/mus/ws/window_tree.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +9 lines, -3 lines 0 comments Download
M components/mus/ws/window_tree_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +66 lines, -0 lines 0 comments Download
M mash/example/window_type_launcher/window_type_launcher.cc View 1 2 3 4 5 6 3 chunks +7 lines, -6 lines 0 comments Download

Messages

Total messages: 34 (9 generated)
mohsen
Please take a look... (I'll most probably add a few more tests).
4 years, 8 months ago (2016-04-20 19:37:48 UTC) #3
sky
https://codereview.chromium.org/1818333002/diff/60001/components/mus/ws/event_dispatcher.cc File components/mus/ws/event_dispatcher.cc (right): https://codereview.chromium.org/1818333002/diff/60001/components/mus/ws/event_dispatcher.cc#newcode177 components/mus/ws/event_dispatcher.cc:177: return false; nit: spacing is off (run git cl ...
4 years, 8 months ago (2016-04-20 20:14:12 UTC) #4
mohsen
https://codereview.chromium.org/1818333002/diff/60001/components/mus/ws/event_dispatcher.cc File components/mus/ws/event_dispatcher.cc (right): https://codereview.chromium.org/1818333002/diff/60001/components/mus/ws/event_dispatcher.cc#newcode177 components/mus/ws/event_dispatcher.cc:177: return false; On 2016/04/20 at 20:14:11, sky wrote: > ...
4 years, 8 months ago (2016-04-21 17:58:43 UTC) #5
sky
On Thu, Apr 21, 2016 at 10:58 AM, <mohsen@chromium.org> wrote: > > https://codereview.chromium.org/1818333002/diff/60001/components/mus/ws/event_dispatcher.cc > File ...
4 years, 8 months ago (2016-04-21 20:12:36 UTC) #6
mohsen
Please take a look... I added a stack of system modal windows, instead of just ...
4 years, 8 months ago (2016-04-25 22:01:29 UTC) #7
sky
https://codereview.chromium.org/1818333002/diff/120001/components/mus/ws/event_dispatcher.cc File components/mus/ws/event_dispatcher.cc (right): https://codereview.chromium.org/1818333002/diff/120001/components/mus/ws/event_dispatcher.cc#newcode177 components/mus/ws/event_dispatcher.cc:177: ObserveWindow(window); It's confusing and error prone to have this ...
4 years, 8 months ago (2016-04-25 23:36:08 UTC) #8
mohsen
https://codereview.chromium.org/1818333002/diff/120001/components/mus/ws/event_dispatcher.cc File components/mus/ws/event_dispatcher.cc (right): https://codereview.chromium.org/1818333002/diff/120001/components/mus/ws/event_dispatcher.cc#newcode177 components/mus/ws/event_dispatcher.cc:177: ObserveWindow(window); On 2016/04/25 at 23:36:08, sky wrote: > It's ...
4 years, 8 months ago (2016-04-26 20:24:05 UTC) #9
sky
https://codereview.chromium.org/1818333002/diff/160001/components/mus/ws/modal_window_controller.cc File components/mus/ws/modal_window_controller.cc (right): https://codereview.chromium.org/1818333002/diff/160001/components/mus/ws/modal_window_controller.cc#newcode47 components/mus/ws/modal_window_controller.cc:47: DCHECK(std::find(system_modal_windows_.begin(), system_modal_windows_.end(), !ContainsValue (in stl_util). https://codereview.chromium.org/1818333002/diff/160001/components/mus/ws/modal_window_controller.cc#newcode101 components/mus/ws/modal_window_controller.cc:101: if (!window->IsDrawn()) ...
4 years, 8 months ago (2016-04-26 23:40:08 UTC) #10
mohsen
https://codereview.chromium.org/1818333002/diff/160001/components/mus/ws/modal_window_controller.cc File components/mus/ws/modal_window_controller.cc (right): https://codereview.chromium.org/1818333002/diff/160001/components/mus/ws/modal_window_controller.cc#newcode47 components/mus/ws/modal_window_controller.cc:47: DCHECK(std::find(system_modal_windows_.begin(), system_modal_windows_.end(), On 2016/04/26 at 23:40:08, sky wrote: > ...
4 years, 7 months ago (2016-04-27 20:18:25 UTC) #11
sky
LGTM https://codereview.chromium.org/1818333002/diff/180001/components/mus/ws/modal_window_controller.cc File components/mus/ws/modal_window_controller.cc (right): https://codereview.chromium.org/1818333002/diff/180001/components/mus/ws/modal_window_controller.cc#newcode115 components/mus/ws/modal_window_controller.cc:115: system_modal_windows_.splice(system_modal_windows_.end(), erase?
4 years, 7 months ago (2016-04-27 21:16:16 UTC) #12
mohsen
https://codereview.chromium.org/1818333002/diff/180001/components/mus/ws/modal_window_controller.cc File components/mus/ws/modal_window_controller.cc (right): https://codereview.chromium.org/1818333002/diff/180001/components/mus/ws/modal_window_controller.cc#newcode115 components/mus/ws/modal_window_controller.cc:115: system_modal_windows_.splice(system_modal_windows_.end(), On 2016/04/27 at 21:16:16, sky wrote: > erase? ...
4 years, 7 months ago (2016-04-27 21:19:28 UTC) #13
sky
Subtle. Make sense. On Wed, Apr 27, 2016 at 2:19 PM, <mohsen@chromium.org> wrote: > > ...
4 years, 7 months ago (2016-04-27 23:43:29 UTC) #14
mohsen
I added two more tests and cleaned up comments. Can you take another look, please...
4 years, 7 months ago (2016-04-28 16:57:18 UTC) #15
sky
LGTM https://codereview.chromium.org/1818333002/diff/200001/components/mus/public/interfaces/window_tree.mojom File components/mus/public/interfaces/window_tree.mojom (right): https://codereview.chromium.org/1818333002/diff/200001/components/mus/public/interfaces/window_tree.mojom#newcode174 components/mus/public/interfaces/window_tree.mojom:174: // This also places |transient_window_id| always on top ...
4 years, 7 months ago (2016-04-29 00:23:18 UTC) #16
mohsen
https://codereview.chromium.org/1818333002/diff/200001/components/mus/public/interfaces/window_tree.mojom File components/mus/public/interfaces/window_tree.mojom (right): https://codereview.chromium.org/1818333002/diff/200001/components/mus/public/interfaces/window_tree.mojom#newcode174 components/mus/public/interfaces/window_tree.mojom:174: // This also places |transient_window_id| always on top of ...
4 years, 7 months ago (2016-04-29 03:33:38 UTC) #17
sky
On Thu, Apr 28, 2016 at 8:33 PM, <mohsen@chromium.org> wrote: > > https://codereview.chromium.org/1818333002/diff/200001/components/mus/public/interfaces/window_tree.mojom > File ...
4 years, 7 months ago (2016-04-29 17:11:02 UTC) #18
mohsen
Fixed AddTransientWindow to fail on system modals.
4 years, 7 months ago (2016-04-29 20:40:25 UTC) #19
sky
LGTM
4 years, 7 months ago (2016-05-02 15:15:35 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1818333002/240001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1818333002/240001
4 years, 7 months ago (2016-05-02 15:32:29 UTC) #22
commit-bot: I haz the power
Committed patchset #13 (id:240001)
4 years, 7 months ago (2016-05-02 16:22:26 UTC) #23
commit-bot: I haz the power
Patchset 13 (id:??) landed as https://crrev.com/aad86d4a28e819ff7b1d6cef106c7d88da2d48aa Cr-Commit-Position: refs/heads/master@{#390963}
4 years, 7 months ago (2016-05-02 16:23:41 UTC) #25
Ben Goodger (Google)
A revert of this CL (patchset #13 id:240001) has been created in https://codereview.chromium.org/1949603002/ by ben@chromium.org. ...
4 years, 7 months ago (2016-05-03 17:22:25 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1818333002/260001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1818333002/260001
4 years, 7 months ago (2016-05-06 05:28:59 UTC) #31
commit-bot: I haz the power
Committed patchset #14 (id:260001)
4 years, 7 months ago (2016-05-06 05:32:28 UTC) #32
commit-bot: I haz the power
4 years, 7 months ago (2016-05-06 05:34:14 UTC) #34
Message was sent while issue was closed.
Patchset 14 (id:??) landed as
https://crrev.com/3fe9bbb646a9408e6156012d6004a16903423363
Cr-Commit-Position: refs/heads/master@{#392007}

Powered by Google App Engine
This is Rietveld 408576698