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

Issue 201573015: Introdcue AshWindowTreeHost and move ash/chrome specific code in WTH to ash. (Closed)

Created:
6 years, 9 months ago by oshima
Modified:
6 years, 8 months ago
CC:
chromium-reviews, kalyank, sadrul, ben+ash_chromium.org, Yufeng Shen (Slow to review)
Visibility:
Public.

Description

Introdcue AshWindowTreeHost and move ash/chrome specific code in WTH to ash. Other notable changes: * Removed WindowTreeHostFactory as this is no longer necessary. * Moved RootWindowTransformer to ash/host * Removed Set/GetInsets which are no longer necessary (a code in SetInsets is now a part of SetRootWindowTransformer) * Added TransformerHelper that implements common behavior to transform root window for AshWindowTreeHost * Added DEPS files * Updated metro_viewer code to make sure it creates ash::AshRemoteWindowHostTree A few more simplifications to come: * Simplify RootWindowTransformer * Eliminate EnvObserver in AshWindowTreeHostX11 I'll also work on DEPS reorg to make it more explicit under ash/ BUG=355771 TEST=No functional change. ui/aura/window_tree_host_x11_unittests has been moved to ash/host/ash_window_tree_host_x11_unittests Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=263192

Patch Set 1 : #

Total comments: 3

Patch Set 2 : #

Patch Set 3 : git cl format #

Patch Set 4 : metro viewer fix #

Patch Set 5 : rebased #

Total comments: 10

Patch Set 6 : addressed comments #

Patch Set 7 : win fix #

Patch Set 8 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1484 lines, -1404 lines) Patch
M ash/DEPS View 1 1 chunk +7 lines, -0 lines 0 comments Download
A ash/accelerators/DEPS View 1 1 chunk +5 lines, -0 lines 0 comments Download
M ash/accelerators/accelerator_controller.cc View 1 2 3 4 3 chunks +3 lines, -2 lines 0 comments Download
M ash/ash.gyp View 1 2 3 4 5 6 4 chunks +17 lines, -5 lines 0 comments Download
M ash/cancel_mode.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M ash/desktop_background/desktop_background_controller.cc View 1 2 3 4 5 6 2 chunks +5 lines, -5 lines 0 comments Download
A + ash/display/DEPS View 1 1 chunk +2 lines, -1 line 0 comments Download
M ash/display/cursor_window_controller.cc View 1 2 3 4 5 1 chunk +4 lines, -3 lines 0 comments Download
M ash/display/display_controller.h View 1 2 3 4 4 chunks +13 lines, -12 lines 0 comments Download
M ash/display/display_controller.cc View 1 2 3 4 14 chunks +97 lines, -77 lines 0 comments Download
M ash/display/mirror_window_controller.h View 1 2 3 4 3 chunks +7 lines, -7 lines 0 comments Download
M ash/display/mirror_window_controller.cc View 1 2 3 4 5 chunks +36 lines, -31 lines 0 comments Download
M ash/display/root_window_transformers.h View 1 2 3 4 3 chunks +3 lines, -4 lines 0 comments Download
M ash/display/root_window_transformers.cc View 1 2 3 4 5 chunks +5 lines, -6 lines 0 comments Download
M ash/display/root_window_transformers_unittest.cc View 1 2 3 4 3 chunks +2 lines, -2 lines 0 comments Download
M ash/display/virtual_keyboard_window_controller.cc View 1 2 3 4 5 chunks +15 lines, -15 lines 0 comments Download
A ash/host/DEPS View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
A ash/host/ash_remote_window_tree_host_win.h View 1 2 3 4 1 chunk +53 lines, -0 lines 0 comments Download
A ash/host/ash_remote_window_tree_host_win.cc View 1 2 3 4 5 6 1 chunk +72 lines, -0 lines 0 comments Download
A ash/host/ash_window_tree_host.h View 1 2 1 chunk +49 lines, -0 lines 0 comments Download
A ash/host/ash_window_tree_host_ozone.cc View 1 2 3 4 5 1 chunk +40 lines, -0 lines 0 comments Download
A ash/host/ash_window_tree_host_win.cc View 1 2 3 4 5 1 chunk +119 lines, -0 lines 0 comments Download
A ash/host/ash_window_tree_host_x11.h View 1 2 3 4 5 1 chunk +74 lines, -0 lines 0 comments Download
A ash/host/ash_window_tree_host_x11.cc View 1 2 3 4 5 6 7 1 chunk +418 lines, -0 lines 0 comments Download
A + ash/host/ash_window_tree_host_x11_unittest.cc View 1 2 3 4 9 chunks +34 lines, -37 lines 0 comments Download
A + ash/host/root_window_transformer.h View 1 2 3 chunks +7 lines, -7 lines 0 comments Download
A ash/host/transformer_helper.h View 1 2 1 chunk +54 lines, -0 lines 0 comments Download
A ash/host/transformer_helper.cc View 1 2 1 chunk +111 lines, -0 lines 0 comments Download
M ash/host/window_tree_host_factory.h View 1 chunk +0 lines, -33 lines 0 comments Download
D ash/host/window_tree_host_factory.cc View 1 chunk +0 lines, -31 lines 0 comments Download
D ash/host/window_tree_host_factory_win.cc View 1 chunk +0 lines, -40 lines 0 comments Download
A ash/magnifier/DEPS View 1 1 chunk +5 lines, -0 lines 0 comments Download
M ash/magnifier/magnification_controller.cc View 1 2 3 4 2 chunks +6 lines, -3 lines 0 comments Download
M ash/root_window_controller.h View 1 2 3 4 5 chunks +13 lines, -9 lines 0 comments Download
M ash/root_window_controller.cc View 1 2 3 4 19 chunks +65 lines, -46 lines 0 comments Download
M ash/root_window_controller_unittest.cc View 1 2 3 4 7 chunks +25 lines, -39 lines 0 comments Download
M ash/shell.h View 1 2 3 4 5 3 chunks +1 line, -6 lines 0 comments Download
M ash/shell.cc View 1 2 3 4 5 3 chunks +2 lines, -9 lines 0 comments Download
M ash/shell/shell_delegate_impl.h View 1 2 3 4 5 6 1 chunk +0 lines, -1 line 0 comments Download
M ash/shell/shell_delegate_impl.cc View 1 2 3 4 5 6 2 chunks +0 lines, -5 lines 0 comments Download
M ash/shell_delegate.h View 1 2 3 4 5 6 2 chunks +0 lines, -5 lines 0 comments Download
M ash/test/DEPS View 1 2 3 1 chunk +9 lines, -0 lines 0 comments Download
M ash/test/mirror_window_test_api.h View 1 2 3 chunks +3 lines, -3 lines 0 comments Download
M ash/test/mirror_window_test_api.cc View 1 2 2 chunks +7 lines, -4 lines 0 comments Download
M ash/test/test_shell_delegate.h View 1 2 3 4 5 6 1 chunk +0 lines, -1 line 0 comments Download
M ash/test/test_shell_delegate.cc View 1 2 3 4 5 6 2 chunks +0 lines, -5 lines 0 comments Download
M ash/wm/maximize_mode/maximize_mode_window_manager.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M ash/wm/window_manager_unittest.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/metro_viewer/chrome_metro_viewer_process_host_aurawin.cc View 1 2 3 4 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/ash/chrome_shell_delegate.h View 1 2 3 4 5 6 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ui/ash/chrome_shell_delegate.cc View 1 2 3 4 5 6 2 chunks +0 lines, -5 lines 0 comments Download
M mojo/examples/aura_demo/window_tree_host_mojo.h View 1 2 1 chunk +0 lines, -5 lines 0 comments Download
M mojo/examples/aura_demo/window_tree_host_mojo.cc View 1 2 3 chunks +0 lines, -22 lines 0 comments Download
M ui/aura/aura.gyp View 1 2 3 4 3 chunks +1 line, -4 lines 0 comments Download
M ui/aura/remote_window_tree_host_win.h View 1 2 3 3 chunks +9 lines, -8 lines 0 comments Download
M ui/aura/remote_window_tree_host_win.cc View 1 2 3 4 chunks +8 lines, -24 lines 0 comments Download
D ui/aura/root_window_transformer.h View 1 chunk +0 lines, -45 lines 0 comments Download
M ui/aura/test/test_screen.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M ui/aura/window_tree_host.h View 1 2 5 chunks +5 lines, -26 lines 0 comments Download
M ui/aura/window_tree_host.cc View 1 2 4 chunks +13 lines, -65 lines 0 comments Download
M ui/aura/window_tree_host_ozone.h View 1 2 3 4 1 chunk +0 lines, -5 lines 0 comments Download
M ui/aura/window_tree_host_ozone.cc View 1 2 3 4 2 chunks +0 lines, -15 lines 0 comments Download
M ui/aura/window_tree_host_win.h View 1 2 chunks +4 lines, -13 lines 0 comments Download
M ui/aura/window_tree_host_win.cc View 1 5 chunks +1 line, -58 lines 0 comments Download
M ui/aura/window_tree_host_x11.h View 1 2 3 4 5 chunks +20 lines, -41 lines 0 comments Download
M ui/aura/window_tree_host_x11.cc View 1 2 3 4 5 6 7 18 chunks +17 lines, -313 lines 0 comments Download
D ui/aura/window_tree_host_x11_unittest.cc View 1 2 3 4 1 chunk +0 lines, -240 lines 0 comments Download
M ui/aura/window_unittest.cc View 1 2 4 chunks +4 lines, -4 lines 0 comments Download
M ui/views/widget/desktop_aura/desktop_window_tree_host_win.h View 1 chunk +0 lines, -5 lines 0 comments Download
M ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc View 3 chunks +0 lines, -21 lines 0 comments Download
M ui/views/widget/desktop_aura/desktop_window_tree_host_x11.h View 1 2 3 4 1 chunk +0 lines, -5 lines 0 comments Download
M ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc View 1 2 3 4 3 chunks +0 lines, -20 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
oshima
This is WIP and not for full review. Ben, can you take a quick look ...
6 years, 9 months ago (2014-03-26 00:56:02 UTC) #1
Ben Goodger (Google)
This looks like a good direction to me. LMK when you're done, and I'll unleash ...
6 years, 9 months ago (2014-03-26 05:11:07 UTC) #2
oshima
On 2014/03/26 05:11:07, Ben Goodger (Google) wrote: > This looks like a good direction to ...
6 years, 9 months ago (2014-03-27 23:24:41 UTC) #3
beng (no_code_reviews)
You can add a DEPS file in ash/host that has "-ash"... see src/ui/DEPS... it excludes ...
6 years, 9 months ago (2014-03-28 02:48:17 UTC) #4
oshima
I uploaded latest patch and updated the description. PTAL.
6 years, 8 months ago (2014-04-01 14:45:56 UTC) #5
oshima
On 2014/04/01 14:45:56, oshima wrote: > I uploaded latest patch and updated the description. > ...
6 years, 8 months ago (2014-04-01 22:05:38 UTC) #6
Yufeng Shen (Slow to review)
https://codereview.chromium.org/201573015/diff/930001/ui/aura/window_tree_host_x11.cc File ui/aura/window_tree_host_x11.cc (right): https://codereview.chromium.org/201573015/diff/930001/ui/aura/window_tree_host_x11.cc#newcode548 ui/aura/window_tree_host_x11.cc:548: return; Can we have a virtual bool WindowTreeHostX11::IsTouchEventTargetingThisRootWindow() { ...
6 years, 8 months ago (2014-04-09 21:35:51 UTC) #7
Ben Goodger (Google)
This is a great change. Just nits. LGTM https://codereview.chromium.org/201573015/diff/930001/ash/display/cursor_window_controller.cc File ash/display/cursor_window_controller.cc (right): https://codereview.chromium.org/201573015/diff/930001/ash/display/cursor_window_controller.cc#newcode121 ash/display/cursor_window_controller.cc:121: ->display_controller() ...
6 years, 8 months ago (2014-04-09 22:41:49 UTC) #8
oshima
https://codereview.chromium.org/201573015/diff/930001/ash/display/cursor_window_controller.cc File ash/display/cursor_window_controller.cc (right): https://codereview.chromium.org/201573015/diff/930001/ash/display/cursor_window_controller.cc#newcode121 ash/display/cursor_window_controller.cc:121: ->display_controller() On 2014/04/09 22:41:49, Ben Goodger (Google) wrote: > ...
6 years, 8 months ago (2014-04-09 23:52:14 UTC) #9
miletus1
On Wed, Apr 9, 2014 at 7:52 PM, <oshima@chromium.org> wrote: > > https://codereview.chromium.org/201573015/diff/930001/ash/ > display/cursor_window_controller.cc ...
6 years, 8 months ago (2014-04-10 00:10:44 UTC) #10
oshima
The CQ bit was checked by oshima@chromium.org
6 years, 8 months ago (2014-04-10 03:31:13 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/oshima@chromium.org/201573015/950001
6 years, 8 months ago (2014-04-10 03:31:19 UTC) #12
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-10 05:21:42 UTC) #13
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=295502
6 years, 8 months ago (2014-04-10 05:21:42 UTC) #14
oshima
The CQ bit was checked by oshima@chromium.org
6 years, 8 months ago (2014-04-11 03:19:47 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/oshima@chromium.org/201573015/990001
6 years, 8 months ago (2014-04-11 03:20:36 UTC) #16
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-11 03:20:55 UTC) #17
commit-bot: I haz the power
Failed to apply patch for ui/aura/window_tree_host_x11.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 8 months ago (2014-04-11 03:20:56 UTC) #18
oshima
The CQ bit was checked by oshima@chromium.org
6 years, 8 months ago (2014-04-11 05:30:07 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/oshima@chromium.org/201573015/1030001
6 years, 8 months ago (2014-04-11 05:30:47 UTC) #20
commit-bot: I haz the power
6 years, 8 months ago (2014-04-11 08:13:49 UTC) #21
Message was sent while issue was closed.
Change committed as 263192

Powered by Google App Engine
This is Rietveld 408576698