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

Issue 2194353002: mash: Migrate ScopedTargetRootWindow to //ash/common (Closed)

Created:
4 years, 4 months ago by James Cook
Modified:
4 years, 4 months ago
Reviewers:
msw
CC:
chromium-reviews, Dirk Pranke, sadrul, kalyank
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

mash: Migrate ScopedTargetRootWindow to //ash/common It's a dependency of ShelfView, which we're trying to move. * Rename to ScopedRootWindowForNewWindows, the more-descriptive name we're using in mus code. * Move ownership of root_window_for_new_windows_ to WmShell. * ash::Shell no longer needs to be an activation observer, since it was only using that to set the target root window, and we can do that in WmShellAura now. * Fix some tests that were unnecessarily setting the target root window to the primary display, which is the default. BUG=633323 TEST=ash_unittests, unit_tests, create new browser windows by clicking on the browser shortcut shelf item on different displays Committed: https://crrev.com/4545062c75118e1a633987878b524277f33c9bbc Cr-Commit-Position: refs/heads/master@{#409256}

Patch Set 1 #

Patch Set 2 : cleanup, similarity #

Patch Set 3 : similarity 40 #

Total comments: 4

Patch Set 4 : review comments, move ownership to WmShell #

Patch Set 5 : reflow comment #

Total comments: 15

Patch Set 6 : review comments 2 #

Total comments: 2

Patch Set 7 : rebase #

Patch Set 8 : non-virtual #

Unified diffs Side-by-side diffs Delta from patch set Stats (+146 lines, -188 lines) Patch
M ash/ash.gyp View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
M ash/aura/wm_shell_aura.h View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M ash/aura/wm_shell_aura.cc View 1 2 3 2 chunks +5 lines, -6 lines 0 comments Download
A + ash/common/scoped_root_window_for_new_windows.h View 1 2 3 4 5 1 chunk +10 lines, -12 lines 0 comments Download
A ash/common/scoped_root_window_for_new_windows.cc View 1 2 3 4 5 1 chunk +22 lines, -0 lines 0 comments Download
M ash/common/wm_shell.h View 1 2 3 4 5 6 7 4 chunks +12 lines, -1 line 0 comments Download
M ash/common/wm_shell.cc View 1 2 3 4 5 1 chunk +6 lines, -0 lines 0 comments Download
M ash/display/screen_position_controller.cc View 1 2 3 2 chunks +5 lines, -2 lines 0 comments Download
M ash/drag_drop/drag_drop_tracker_unittest.cc View 1 2 3 4 5 5 chunks +13 lines, -6 lines 0 comments Download
M ash/mus/bridge/wm_shell_mus.h View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M ash/mus/bridge/wm_shell_mus.cc View 1 2 3 4 5 3 chunks +8 lines, -7 lines 0 comments Download
M ash/root_window_controller.cc View 1 2 3 4 5 1 chunk +8 lines, -5 lines 0 comments Download
D ash/scoped_target_root_window.h View 1 chunk +0 lines, -33 lines 0 comments Download
D ash/scoped_target_root_window.cc View 1 chunk +0 lines, -18 lines 0 comments Download
M ash/shelf/shelf_view.h View 2 chunks +3 lines, -2 lines 0 comments Download
M ash/shelf/shelf_view.cc View 1 2 3 4 5 8 chunks +17 lines, -13 lines 0 comments Download
M ash/shell.h View 1 2 3 8 chunks +2 lines, -23 lines 0 comments Download
M ash/shell.cc View 1 2 3 4 5 5 chunks +4 lines, -20 lines 0 comments Download
M ash/wm/window_cycle_controller_unittest.cc View 1 2 3 4 chunks +4 lines, -7 lines 0 comments Download
M ash/wm/window_positioner_unittest.cc View 1 2 3 4 chunks +9 lines, -8 lines 0 comments Download
M chrome/browser/ui/window_sizer/window_sizer_ash_unittest.cc View 1 2 3 4 5 3 chunks +16 lines, -21 lines 0 comments Download

Messages

Total messages: 27 (17 generated)
James Cook
msw, please take a look.
4 years, 4 months ago (2016-08-01 21:21:19 UTC) #3
msw
https://codereview.chromium.org/2194353002/diff/40001/ash/aura/scoped_root_window_for_new_windows_aura.cc File ash/aura/scoped_root_window_for_new_windows_aura.cc (right): https://codereview.chromium.org/2194353002/diff/40001/ash/aura/scoped_root_window_for_new_windows_aura.cc#newcode13 ash/aura/scoped_root_window_for_new_windows_aura.cc:13: Shell::GetInstance()->scoped_target_root_window_ = root_window; q: [D]CHECK that scoped_target_root_window_ is null? ...
4 years, 4 months ago (2016-08-01 21:36:15 UTC) #5
James Cook
msw, please take another look. https://codereview.chromium.org/2194353002/diff/80001/ash/common/scoped_root_window_for_new_windows.h File ash/common/scoped_root_window_for_new_windows.h (right): https://codereview.chromium.org/2194353002/diff/80001/ash/common/scoped_root_window_for_new_windows.h#newcode26 ash/common/scoped_root_window_for_new_windows.h:26: WmWindow* old_root_; I did ...
4 years, 4 months ago (2016-08-02 00:27:50 UTC) #11
msw
https://codereview.chromium.org/2194353002/diff/80001/ash/common/scoped_root_window_for_new_windows.cc File ash/common/scoped_root_window_for_new_windows.cc (right): https://codereview.chromium.org/2194353002/diff/80001/ash/common/scoped_root_window_for_new_windows.cc#newcode19 ash/common/scoped_root_window_for_new_windows.cc:19: WmShell::Get()->set_root_window_for_new_windows(old_root_); I'm a little worried that this will break ...
4 years, 4 months ago (2016-08-02 01:04:51 UTC) #14
James Cook
msw, please take another look. https://codereview.chromium.org/2194353002/diff/80001/ash/common/scoped_root_window_for_new_windows.cc File ash/common/scoped_root_window_for_new_windows.cc (right): https://codereview.chromium.org/2194353002/diff/80001/ash/common/scoped_root_window_for_new_windows.cc#newcode19 ash/common/scoped_root_window_for_new_windows.cc:19: WmShell::Get()->set_root_window_for_new_windows(old_root_); On 2016/08/02 01:04:50, ...
4 years, 4 months ago (2016-08-02 16:16:05 UTC) #17
msw
lgtm with a nit https://codereview.chromium.org/2194353002/diff/100001/ash/common/wm_shell.h File ash/common/wm_shell.h (right): https://codereview.chromium.org/2194353002/diff/100001/ash/common/wm_shell.h#newcode157 ash/common/wm_shell.h:157: virtual WmWindow* GetRootWindowForNewWindows(); nit: virtual ...
4 years, 4 months ago (2016-08-02 17:22:19 UTC) #20
James Cook
https://codereview.chromium.org/2194353002/diff/100001/ash/common/wm_shell.h File ash/common/wm_shell.h (right): https://codereview.chromium.org/2194353002/diff/100001/ash/common/wm_shell.h#newcode157 ash/common/wm_shell.h:157: virtual WmWindow* GetRootWindowForNewWindows(); On 2016/08/02 17:22:19, msw wrote: > ...
4 years, 4 months ago (2016-08-02 17:48:08 UTC) #21
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/2194353002/140001
4 years, 4 months ago (2016-08-02 17:48:59 UTC) #24
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 4 months ago (2016-08-02 18:48:44 UTC) #25
commit-bot: I haz the power
4 years, 4 months ago (2016-08-02 18:51:43 UTC) #27
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/4545062c75118e1a633987878b524277f33c9bbc
Cr-Commit-Position: refs/heads/master@{#409256}

Powered by Google App Engine
This is Rietveld 408576698