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

Issue 2804403002: Adds ability for WindowManager to create display roots (Closed)

Created:
3 years, 8 months ago by sky
Modified:
3 years, 8 months ago
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/heads/master
Project:
chromium
Visibility:
Public.

Description

Adds ability for WindowManager to create display roots Prior to this patch mus would automatically create a Window for each display and tell the WindowManager about it. This patch allows the WindowManager to control this behavior so that if the windowmanager wants to create the windows it can. In the new mode mus still creates a window for the display, but it doesn't tell the client. The expectation is the client eventually calls SetDisplayRoot() with the client supplied window. When SetDisplayRoot() is called mus wires up the window appropriately. The expectation is ash transitions to observing newly added displays using another mechanism and then tells mus about it. BUG=708287 TEST=covered by tests R=erg@chromium.org Review-Url: https://codereview.chromium.org/2804403002 Cr-Commit-Position: refs/heads/master@{#463070} Committed: https://chromium.googlesource.com/chromium/src/+/bb4b4de1b5a2b99c62e71b93f6c157e8290e3c3b

Patch Set 1 #

Patch Set 2 : cleanup #

Unified diffs Side-by-side diffs Delta from patch set Stats (+329 lines, -55 lines) Patch
M services/ui/public/interfaces/window_manager.mojom View 1 chunk +6 lines, -0 lines 0 comments Download
M services/ui/public/interfaces/window_manager_window_tree_factory.mojom View 1 chunk +11 lines, -4 lines 0 comments Download
M services/ui/ws/display.h View 2 chunks +5 lines, -2 lines 0 comments Download
M services/ui/ws/display.cc View 1 chunk +12 lines, -0 lines 0 comments Download
M services/ui/ws/display_binding.cc View 1 chunk +2 lines, -1 line 0 comments Download
M services/ui/ws/display_manager.h View 1 chunk +1 line, -1 line 0 comments Download
M services/ui/ws/test_utils.h View 10 chunks +36 lines, -17 lines 0 comments Download
M services/ui/ws/test_utils.cc View 3 chunks +26 lines, -5 lines 0 comments Download
M services/ui/ws/window_manager_state.h View 1 chunk +3 lines, -0 lines 0 comments Download
M services/ui/ws/window_manager_state.cc View 3 chunks +29 lines, -4 lines 0 comments Download
M services/ui/ws/window_manager_window_tree_factory.h View 2 chunks +3 lines, -2 lines 0 comments Download
M services/ui/ws/window_manager_window_tree_factory.cc View 2 chunks +10 lines, -4 lines 0 comments Download
M services/ui/ws/window_server.h View 1 chunk +2 lines, -1 line 0 comments Download
M services/ui/ws/window_server.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M services/ui/ws/window_tree.h View 4 chunks +18 lines, -2 lines 0 comments Download
M services/ui/ws/window_tree.cc View 8 chunks +77 lines, -7 lines 0 comments Download
M services/ui/ws/window_tree_unittest.cc View 1 1 chunk +79 lines, -0 lines 0 comments Download
M ui/aura/mus/window_tree_client.h View 1 chunk +2 lines, -1 line 0 comments Download
M ui/aura/mus/window_tree_client.cc View 1 chunk +4 lines, -2 lines 0 comments Download

Messages

Total messages: 18 (9 generated)
sky
3 years, 8 months ago (2017-04-07 21:28:10 UTC) #1
sky
3 years, 8 months ago (2017-04-07 21:28:21 UTC) #2
sky
+tsepez for mojom
3 years, 8 months ago (2017-04-07 21:50:18 UTC) #7
Tom Sepez
Refresh my memory, we are using unguessable IDs here, so we don't worry about the ...
3 years, 8 months ago (2017-04-07 21:58:17 UTC) #8
sky
The window id is scoped to the client (the server internally has an id too, ...
3 years, 8 months ago (2017-04-07 22:13:15 UTC) #9
Elliot Glaysher
lgtm after talking irl
3 years, 8 months ago (2017-04-07 23:00:05 UTC) #12
Tom Sepez
lgtm
3 years, 8 months ago (2017-04-07 23:10:26 UTC) #13
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/2804403002/20001
3 years, 8 months ago (2017-04-07 23:17:38 UTC) #15
commit-bot: I haz the power
3 years, 8 months ago (2017-04-08 00:24:51 UTC) #18
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/bb4b4de1b5a2b99c62e71b93f6c1...

Powered by Google App Engine
This is Rietveld 408576698