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

Issue 2503923003: Demonstrate external-window-mode in mus-demo (Closed)

Created:
4 years, 1 month ago by Tom (Use chromium acct)
Modified:
3 years, 11 months ago
Reviewers:
rjkroege, sky, tonikitoo
CC:
chromium-reviews, rjkroege, kalyank, ozone-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Demonstrate external-window-mode in mus-demo This CL * Adds a new command line switch to enable external window mode * Modifies mus-demo to use the new flag to create 2 toplevel windows BUG=666958

Patch Set 1 : Reuploading for sky #

Patch Set 2 : Apply sky@'s patch #

Patch Set 3 : Remove WM code and other cleanups #

Total comments: 5

Patch Set 4 : Add external window mode as a flag #

Total comments: 3

Patch Set 5 : Move CommandLine into OnStart #

Total comments: 8

Patch Set 6 : Determine external window mode in mus-ws based on if a WM is connected #

Total comments: 6

Patch Set 7 : Refactor, revert ozone_switches #

Total comments: 6

Patch Set 8 : Address rjkroege@'s comments" #

Patch Set 9 : Wrap comment #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+170 lines, -106 lines) Patch
M services/ui/demo/manifest.json View 1 chunk +1 line, -2 lines 1 comment Download
M services/ui/demo/mus_demo.h View 1 2 3 4 5 6 7 3 chunks +13 lines, -20 lines 0 comments Download
M services/ui/demo/mus_demo.cc View 1 2 3 4 5 6 8 chunks +95 lines, -52 lines 0 comments Download
M services/ui/display/platform_screen.h View 1 2 3 4 5 6 7 2 chunks +13 lines, -6 lines 0 comments Download
M services/ui/display/platform_screen_ozone.h View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M services/ui/display/platform_screen_ozone.cc View 1 2 3 4 5 6 7 8 2 chunks +11 lines, -8 lines 1 comment Download
M services/ui/display/platform_screen_ozone_unittests.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M services/ui/display/platform_screen_stub.h View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M services/ui/display/platform_screen_stub.cc View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M services/ui/service.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M services/ui/service.cc View 1 2 3 4 5 6 7 1 chunk +5 lines, -2 lines 0 comments Download
M services/ui/ws/cursor_unittest.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -1 line 0 comments Download
M services/ui/ws/display_unittest.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -1 line 0 comments Download
M services/ui/ws/test_utils.h View 1 2 3 4 5 6 7 2 chunks +3 lines, -2 lines 0 comments Download
M services/ui/ws/test_utils.cc View 1 2 3 4 5 6 7 2 chunks +4 lines, -2 lines 0 comments Download
M services/ui/ws/user_display_manager_unittest.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -1 line 0 comments Download
M services/ui/ws/window_manager_state_unittest.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -1 line 0 comments Download
M services/ui/ws/window_server.cc View 1 2 3 4 5 6 7 1 chunk +8 lines, -1 line 0 comments Download
M services/ui/ws/window_server_delegate.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M services/ui/ws/window_tree_unittest.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 32 (12 generated)
Tom (Use chromium acct)
rjkroege@ PTAL https://codereview.chromium.org/2503923003/diff/120001/services/ui/demo/mus_demo.cc File services/ui/demo/mus_demo.cc (right): https://codereview.chromium.org/2503923003/diff/120001/services/ui/demo/mus_demo.cc#newcode106 services/ui/demo/mus_demo.cc:106: AddWindowTree(); how do you propose we fix ...
4 years, 1 month ago (2016-11-18 20:27:56 UTC) #8
rjkroege
I think that MusDemo still to register a WindowManagerDelegate on CrOS or else it won't ...
4 years, 1 month ago (2016-11-18 22:47:14 UTC) #9
Tom (Use chromium acct)
rjkroege@ PTAL. I think the latest PS should address all of your concerns about CrOS ...
4 years, 1 month ago (2016-11-19 00:48:04 UTC) #12
tonikitoo
looking good. One comment: https://codereview.chromium.org/2503923003/diff/140001/services/ui/demo/mus_demo.cc File services/ui/demo/mus_demo.cc (right): https://codereview.chromium.org/2503923003/diff/140001/services/ui/demo/mus_demo.cc#newcode98 services/ui/demo/mus_demo.cc:98: : external_window_mode_(base::CommandLine::ForCurrentProcess()->HasSwitch( I see an ...
4 years, 1 month ago (2016-11-21 16:44:17 UTC) #14
tonikitoo
additionally, on a regular chrome_os off-device build, I get this: $ time ninja -C out/chrome_os/ ...
4 years, 1 month ago (2016-11-21 17:09:57 UTC) #15
Tom (Use chromium acct)
On 2016/11/21 17:09:57, tonikitoo wrote: > additionally, on a regular chrome_os off-device build, I get ...
4 years, 1 month ago (2016-11-21 19:24:33 UTC) #16
rjkroege
I would expect the external window version to use CreateWindowTree in WindowTreeFactory while the internal ...
4 years, 1 month ago (2016-11-21 21:19:11 UTC) #17
Tom (Use chromium acct)
Note that there is still a linker issue related to ozone_switches On 2016/11/21 21:19:11, rjkroege ...
4 years, 1 month ago (2016-11-22 02:48:15 UTC) #18
tonikitoo
Some (driven by) minor comments. https://codereview.chromium.org/2503923003/diff/180001/services/ui/service.cc File services/ui/service.cc (right): https://codereview.chromium.org/2503923003/diff/180001/services/ui/service.cc#newcode232 services/ui/service.cc:232: !window_manager_connected); nit: in order ...
4 years, 1 month ago (2016-11-22 03:07:39 UTC) #19
Tom (Use chromium acct)
I reverted the changes is ozone_switches because the "external-window-mode" flag is really a sister flag ...
4 years, 1 month ago (2016-11-22 19:19:48 UTC) #21
Tom (Use chromium acct)
ping. rjkroege@ this is ready for another review
4 years, 1 month ago (2016-11-23 03:24:55 UTC) #22
rjkroege
Sorry for the slow review. I think is getting much better. sky@ needs to look ...
4 years ago (2016-11-24 00:58:28 UTC) #23
Tom (Use chromium acct)
+sky for ws rjkroege@ and I decided we should try to land these changes rather ...
4 years ago (2016-11-28 20:47:38 UTC) #25
sky
WindowTreeHostFactory isn't going to work well with aura-mus. Before adding more depenendencies on WindowTreeHostFactory it ...
4 years ago (2016-11-28 21:40:05 UTC) #26
Tom (Use chromium acct)
On 2016/11/28 21:40:05, sky wrote: > WindowTreeHostFactory isn't going to work well with aura-mus. Before ...
4 years ago (2016-12-06 00:51:15 UTC) #27
fwang
On 2016/12/06 00:51:15, Tom Anderson wrote: > > Work is happening now to convert this ...
3 years, 11 months ago (2017-01-10 10:32:53 UTC) #28
fwang
On 2017/01/10 10:32:53, fwang wrote: > tom@: What is your plan for this change? So ...
3 years, 11 months ago (2017-01-10 15:16:41 UTC) #29
sky
For the most part you are right, but you could make aura mostly work with ...
3 years, 11 months ago (2017-01-10 16:06:07 UTC) #30
Tom (Use chromium acct)
On 2017/01/10 10:32:53, fwang wrote: > tom@: What is your plan for this change? I ...
3 years, 11 months ago (2017-01-10 18:44:45 UTC) #31
fwang
3 years, 11 months ago (2017-01-11 17:37:20 UTC) #32
Message was sent while issue was closed.
On 2017/01/10 18:44:45, Tom Anderson wrote:
> I don't currently have any plans for this CL.  If you'd like to take over this
> one, you're more than welcome :)

Thanks, I've started to rebase this in
https://codereview.chromium.org/2622103004/

Powered by Google App Engine
This is Rietveld 408576698