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

Issue 1759523002: mus: Server-side implementation of modal windows (Closed)

Created:
4 years, 9 months ago by mohsen
Modified:
4 years, 9 months ago
Reviewers:
sky
CC:
Aaron Boodman, abarth-chromium, ben+mojo_chromium.org, chromium-reviews, darin (slow to review), qsr+mojo_chromium.org, rjkroege, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

mus: Server-side implementation of modal windows This patch adds server-side implementation for window modal windows, i.e. windows that are modal to their transient parent. System modal windows will be added later. BUG=548402 Committed: https://crrev.com/ae35edbf864d215d1dc699225a1b0e0ece08b3be Cr-Commit-Position: refs/heads/master@{#380177}

Patch Set 1 #

Total comments: 10

Patch Set 2 : Addressed some review comments #

Total comments: 2

Patch Set 3 : More capture handling #

Patch Set 4 : Added tests #

Patch Set 5 : Rebased + Cleanup #

Patch Set 6 : More cleanup #

Total comments: 6

Patch Set 7 : Addressed more review comments #

Patch Set 8 : Rebased #

Patch Set 9 : Cleanup after rebase #

Patch Set 10 : Added test for WindowHierarchyChanged case #

Total comments: 8

Patch Set 11 : SetAsModal -> SetModal + Other review comments addressed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+583 lines, -40 lines) Patch
M components/mus/public/cpp/tests/test_window_tree.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M components/mus/public/cpp/tests/test_window_tree.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 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 1 chunk +7 lines, -0 lines 0 comments Download
M components/mus/ws/access_policy.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M components/mus/ws/connection_manager.h View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M components/mus/ws/connection_manager.cc View 1 2 3 4 5 6 7 2 chunks +15 lines, -0 lines 0 comments Download
M components/mus/ws/default_access_policy.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M components/mus/ws/default_access_policy.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +5 lines, -0 lines 0 comments Download
M components/mus/ws/event_dispatcher.h View 1 2 3 4 5 6 7 1 chunk +3 lines, -1 line 0 comments Download
M components/mus/ws/event_dispatcher.cc View 1 2 3 4 5 6 7 4 chunks +12 lines, -5 lines 0 comments Download
M components/mus/ws/event_dispatcher_unittest.cc View 1 2 3 4 5 6 7 8 9 10 19 chunks +208 lines, -27 lines 0 comments Download
M components/mus/ws/server_window.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +15 lines, -0 lines 0 comments Download
M components/mus/ws/server_window.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +35 lines, -0 lines 0 comments Download
M components/mus/ws/window_manager_access_policy.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M components/mus/ws/window_manager_access_policy.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +5 lines, -0 lines 0 comments Download
M components/mus/ws/window_manager_state.h View 1 2 3 4 5 6 7 1 chunk +9 lines, -1 line 0 comments Download
M components/mus/ws/window_manager_state.cc View 1 2 3 4 5 6 7 1 chunk +24 lines, -3 lines 0 comments Download
M components/mus/ws/window_tree.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +2 lines, -0 lines 0 comments Download
M components/mus/ws/window_tree.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +18 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 1 chunk +218 lines, -0 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 22 (4 generated)
mohsen
Can you please take a look.... I'll add some tests soon
4 years, 9 months ago (2016-03-02 07:19:55 UTC) #2
sky
https://codereview.chromium.org/1759523002/diff/1/components/mus/ws/event_dispatcher.cc File components/mus/ws/event_dispatcher.cc (right): https://codereview.chromium.org/1759523002/diff/1/components/mus/ws/event_dispatcher.cc#newcode460 components/mus/ws/event_dispatcher.cc:460: pointer_target.in_nonclient_area = Aren't you going to use an enum ...
4 years, 9 months ago (2016-03-02 18:28:33 UTC) #3
mohsen
https://codereview.chromium.org/1759523002/diff/1/components/mus/ws/event_dispatcher.cc File components/mus/ws/event_dispatcher.cc (right): https://codereview.chromium.org/1759523002/diff/1/components/mus/ws/event_dispatcher.cc#newcode460 components/mus/ws/event_dispatcher.cc:460: pointer_target.in_nonclient_area = On 2016/03/02 at 18:28:33, sky wrote: > ...
4 years, 9 months ago (2016-03-03 22:54:59 UTC) #4
sky
https://codereview.chromium.org/1759523002/diff/1/components/mus/ws/event_dispatcher.cc File components/mus/ws/event_dispatcher.cc (right): https://codereview.chromium.org/1759523002/diff/1/components/mus/ws/event_dispatcher.cc#newcode460 components/mus/ws/event_dispatcher.cc:460: pointer_target.in_nonclient_area = On 2016/03/03 22:54:59, mohsen wrote: > On ...
4 years, 9 months ago (2016-03-03 23:50:39 UTC) #5
mohsen
https://codereview.chromium.org/1759523002/diff/1/components/mus/ws/event_dispatcher.cc File components/mus/ws/event_dispatcher.cc (right): https://codereview.chromium.org/1759523002/diff/1/components/mus/ws/event_dispatcher.cc#newcode460 components/mus/ws/event_dispatcher.cc:460: pointer_target.in_nonclient_area = On 2016/03/03 at 23:50:39, sky wrote: > ...
4 years, 9 months ago (2016-03-04 16:24:18 UTC) #6
sky
https://codereview.chromium.org/1759523002/diff/20001/components/mus/ws/connection_manager.cc File components/mus/ws/connection_manager.cc (right): https://codereview.chromium.org/1759523002/diff/20001/components/mus/ws/connection_manager.cc#newcode678 components/mus/ws/connection_manager.cc:678: void ConnectionManager::OnWindowVisibilityChanged(ServerWindow* window) { What if the window is ...
4 years, 9 months ago (2016-03-04 17:00:42 UTC) #7
mohsen
https://codereview.chromium.org/1759523002/diff/20001/components/mus/ws/connection_manager.cc File components/mus/ws/connection_manager.cc (right): https://codereview.chromium.org/1759523002/diff/20001/components/mus/ws/connection_manager.cc#newcode678 components/mus/ws/connection_manager.cc:678: void ConnectionManager::OnWindowVisibilityChanged(ServerWindow* window) { On 2016/03/04 17:00:42, sky wrote: ...
4 years, 9 months ago (2016-03-05 01:21:53 UTC) #8
sky
Is there a reason you aren't including tests in this patch?
4 years, 9 months ago (2016-03-07 16:08:19 UTC) #9
mohsen
On 2016/03/07 at 16:08:19, sky wrote: > Is there a reason you aren't including tests ...
4 years, 9 months ago (2016-03-07 16:53:58 UTC) #10
sky
Excellent! On Mon, Mar 7, 2016 at 8:53 AM, <mohsen@chromium.org> wrote: > On 2016/03/07 at ...
4 years, 9 months ago (2016-03-07 18:45:39 UTC) #11
mohsen
Added tests and rebased the code. Also, changed GetModalTargetForWindow() in components/mus/ws/event_dispatcher.cc to take into account ...
4 years, 9 months ago (2016-03-08 08:50:59 UTC) #12
sky
https://codereview.chromium.org/1759523002/diff/100001/components/mus/ws/connection_manager.cc File components/mus/ws/connection_manager.cc (right): https://codereview.chromium.org/1759523002/diff/100001/components/mus/ws/connection_manager.cc#newcode317 components/mus/ws/connection_manager.cc:317: } Do you need to call ReleaseCaptureForModalWindow here too? ...
4 years, 9 months ago (2016-03-08 17:07:53 UTC) #13
mohsen
As mentioned in inline comments, I moved some code around to be able to release ...
4 years, 9 months ago (2016-03-09 08:26:48 UTC) #14
sky
LGTM with the following https://codereview.chromium.org/1759523002/diff/180001/components/mus/public/interfaces/window_tree.mojom File components/mus/public/interfaces/window_tree.mojom (right): https://codereview.chromium.org/1759523002/diff/180001/components/mus/public/interfaces/window_tree.mojom#newcode187 components/mus/public/interfaces/window_tree.mojom:187: SetAsModal(uint32 change_id, uint32 window_id); SetModal ...
4 years, 9 months ago (2016-03-09 16:33:56 UTC) #15
mohsen
https://codereview.chromium.org/1759523002/diff/180001/components/mus/public/interfaces/window_tree.mojom File components/mus/public/interfaces/window_tree.mojom (right): https://codereview.chromium.org/1759523002/diff/180001/components/mus/public/interfaces/window_tree.mojom#newcode187 components/mus/public/interfaces/window_tree.mojom:187: SetAsModal(uint32 change_id, uint32 window_id); On 2016/03/09 at 16:33:56, sky ...
4 years, 9 months ago (2016-03-09 18:32:52 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1759523002/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1759523002/200001
4 years, 9 months ago (2016-03-09 19:29:48 UTC) #19
commit-bot: I haz the power
Committed patchset #11 (id:200001)
4 years, 9 months ago (2016-03-09 19:36:04 UTC) #20
commit-bot: I haz the power
4 years, 9 months ago (2016-03-09 19:41:16 UTC) #22
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/ae35edbf864d215d1dc699225a1b0e0ece08b3be
Cr-Commit-Position: refs/heads/master@{#380177}

Powered by Google App Engine
This is Rietveld 408576698