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

Issue 2886253002: mash: remove more shell/shelf WmWindow usage. (Closed)

Created:
3 years, 7 months ago by msw
Modified:
3 years, 7 months ago
Reviewers:
xiyuan, James Cook
CC:
chromium-reviews, alemate+watch_chromium.org, sadrul, dcheng, oshima+watch_chromium.org, kalyank, davemoore+watch_chromium.org, sky, varkha
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

mash: remove more shell/shelf WmWindow usage. Eliminate Shell::GetWmRootWindowForNewWindows(). Convert ShellPort::Get*RootWindow*() to aura::Window. (use Shell::GetPrimaryRootWindow() instead in many places) Convert ScopedRootWindowForNewWindows (etc.) to aura::Window. Convert WmShelf::ForWindow to take aura::Window. Cleanup some helpers and misc WmWindow usage. BUG=722551, 687656 TEST=Automated; no behavior changes R=jamescook@chromium.org,xiyuan@chromium.org Review-Url: https://codereview.chromium.org/2886253002 Cr-Commit-Position: refs/heads/master@{#472934} Committed: https://chromium.googlesource.com/chromium/src/+/ad3d9551c524430d184c1d62a128576bcb2dd452

Patch Set 1 #

Patch Set 2 : More cleanup. #

Patch Set 3 : Even more cleanup. #

Patch Set 4 : Sync and rebase. #

Total comments: 10

Patch Set 5 : Sync and rebase. #

Patch Set 6 : Address comments. #

Patch Set 7 : Fix WmShelf::ForWindow. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+234 lines, -294 lines) Patch
M ash/accelerators/accelerator_controller.cc View 1 6 chunks +8 lines, -10 lines 0 comments Download
M ash/accelerators/exit_warning_handler.cc View 2 chunks +5 lines, -4 lines 0 comments Download
M ash/app_list/app_list_delegate_impl.cc View 1 2 3 4 5 2 chunks +2 lines, -1 line 0 comments Download
M ash/app_list/app_list_presenter_delegate.cc View 1 2 3 4 5 5 chunks +7 lines, -9 lines 0 comments Download
M ash/app_list/app_list_presenter_delegate_unittest.cc View 1 2 3 4 5 2 chunks +5 lines, -5 lines 0 comments Download
M ash/aura/shell_port_classic.h View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M ash/aura/shell_port_classic.cc View 1 2 3 4 5 1 chunk +5 lines, -7 lines 0 comments Download
M ash/drag_drop/drag_drop_tracker_unittest.cc View 4 chunks +4 lines, -8 lines 0 comments Download
M ash/first_run/first_run_helper_impl.cc View 1 2 3 4 5 2 chunks +1 line, -2 lines 0 comments Download
M ash/metrics/user_metrics_recorder.cc View 1 2 3 4 5 2 chunks +1 line, -2 lines 0 comments Download
M ash/mus/accelerators/accelerator_controller_registrar.cc View 1 chunk +4 lines, -4 lines 0 comments Download
M ash/mus/bridge/shell_port_mash.h View 1 2 3 4 5 3 chunks +4 lines, -4 lines 0 comments Download
M ash/mus/bridge/shell_port_mash.cc View 1 2 3 4 5 2 chunks +9 lines, -13 lines 0 comments Download
M ash/mus/top_level_window_factory.cc View 1 chunk +1 line, -2 lines 0 comments Download
M ash/mus/window_manager.h View 1 2 1 chunk +0 lines, -2 lines 0 comments Download
M ash/mus/window_manager.cc View 1 2 4 chunks +7 lines, -15 lines 0 comments Download
M ash/root_window_controller.cc View 1 2 3 4 3 chunks +4 lines, -5 lines 0 comments Download
M ash/root_window_controller_unittest.cc View 1 2 3 chunks +3 lines, -6 lines 0 comments Download
M ash/scoped_root_window_for_new_windows.h View 2 chunks +5 lines, -3 lines 0 comments Download
M ash/scoped_root_window_for_new_windows.cc View 1 chunk +1 line, -1 line 0 comments Download
M ash/shelf/shelf_view.cc View 1 2 3 4 chunks +6 lines, -5 lines 0 comments Download
M ash/shelf/shelf_view_unittest.cc View 1 2 4 chunks +5 lines, -7 lines 0 comments Download
M ash/shelf/shelf_widget_unittest.cc View 1 2 3 4 3 chunks +14 lines, -13 lines 0 comments Download
M ash/shelf/shelf_window_watcher.cc View 1 2 3 4 5 1 chunk +3 lines, -4 lines 0 comments Download
M ash/shelf/shelf_window_watcher_unittest.cc View 1 2 1 chunk +1 line, -3 lines 0 comments Download
M ash/shelf/wm_shelf.h View 1 2 3 4 2 chunks +5 lines, -1 line 0 comments Download
M ash/shelf/wm_shelf.cc View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M ash/shell.h View 1 2 3 4 3 chunks +4 lines, -5 lines 0 comments Download
M ash/shell.cc View 1 2 3 4 5 5 chunks +12 lines, -16 lines 0 comments Download
M ash/shell/window_watcher.cc View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M ash/shell_port.h View 1 2 3 4 5 1 chunk +2 lines, -5 lines 0 comments Download
M ash/shell_port.cc View 1 2 1 chunk +0 lines, -4 lines 0 comments Download
M ash/shell_unittest.cc View 1 2 1 chunk +1 line, -3 lines 0 comments Download
M ash/sticky_keys/sticky_keys_overlay_unittest.cc View 1 2 3 4 5 1 chunk +2 lines, -6 lines 0 comments Download
M ash/system/palette/palette_utils.cc View 1 2 chunks +1 line, -2 lines 0 comments Download
M ash/system/session/logout_confirmation_dialog.cc View 1 2 2 chunks +2 lines, -4 lines 0 comments Download
M ash/system/toast/toast_overlay.cc View 2 chunks +2 lines, -3 lines 0 comments Download
M ash/system/tray/system_tray_controller.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M ash/test/ash_test_base.cc View 1 2 3 4 5 4 chunks +4 lines, -11 lines 0 comments Download
M ash/wm/drag_window_controller.cc View 1 2 3 4 5 1 chunk +2 lines, -3 lines 0 comments Download
M ash/wm/immersive_context_ash.cc View 1 2 chunks +2 lines, -1 line 0 comments Download
M ash/wm/mru_window_tracker.cc View 2 chunks +6 lines, -5 lines 0 comments Download
M ash/wm/overview/window_grid.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M ash/wm/overview/window_selector.cc View 1 3 chunks +3 lines, -3 lines 0 comments Download
M ash/wm/system_modal_container_layout_manager_unittest.cc View 1 2 1 chunk +2 lines, -3 lines 0 comments Download
M ash/wm/window_animations.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M ash/wm/window_cycle_controller_unittest.cc View 1 2 3 4 1 chunk +1 line, -2 lines 0 comments Download
M ash/wm/window_cycle_list.cc View 1 2 3 4 1 chunk +7 lines, -4 lines 0 comments Download
M ash/wm/window_positioner.cc View 3 chunks +9 lines, -4 lines 0 comments Download
M ash/wm/window_positioner_unittest.cc View 1 2 3 chunks +6 lines, -4 lines 0 comments Download
M ash/wm/window_positioning_utils.cc View 3 chunks +9 lines, -8 lines 0 comments Download
M ash/wm/window_util.cc View 1 2 3 4 5 1 chunk +3 lines, -3 lines 0 comments Download
M ash/wm/workspace/workspace_layout_manager_keyboard_unittest.cc View 1 2 3 4 3 chunks +5 lines, -4 lines 0 comments Download
M ash/wm/workspace_controller.cc View 1 2 3 4 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/chromeos/accessibility/chromevox_panel.cc View 1 2 3 4 1 chunk +2 lines, -7 lines 0 comments Download
M chrome/browser/chromeos/first_run/steps/tray_step.cc View 2 chunks +2 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/login/login_browsertest.cc View 1 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/chromeos/ui/accessibility_cursor_ring_layer.cc View 1 2 3 4 5 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/ash/app_list/app_list_interactive_uitest.cc View 1 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller_browsertest.cc View 1 3 chunks +3 lines, -5 lines 0 comments Download
M chrome/browser/ui/ash/multi_user/user_switch_animator_chromeos.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/ash/networking_config_delegate_chromeos_browsertest.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/ash/shelf_browsertest.cc View 1 2 chunks +3 lines, -4 lines 0 comments Download
M chrome/browser/ui/ash/system_tray_client_browsertest.cc View 1 2 2 chunks +2 lines, -4 lines 0 comments Download
M chrome/browser/ui/webui/chromeos/first_run/first_run_ui.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/window_sizer/window_sizer_ash_uitest.cc View 1 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/ui/window_sizer/window_sizer_ash_unittest.cc View 1 2 3 chunks +3 lines, -4 lines 0 comments Download

Messages

Total messages: 30 (20 generated)
msw
Hey James, please take a look; thanks! +CC Scott for FYI.
3 years, 7 months ago (2017-05-17 21:07:37 UTC) #5
James Cook
LGTM with nits. fyi, varkha has a cl in-flight that touches ash/wm, https://codereview.chromium.org/2893643003/ https://codereview.chromium.org/2886253002/diff/60001/ash/app_list/app_list_delegate_impl.cc File ...
3 years, 7 months ago (2017-05-17 23:41:49 UTC) #12
sky
Thanks Mike! I'm glad to see others chipping in. On Wed, May 17, 2017 at ...
3 years, 7 months ago (2017-05-18 00:09:25 UTC) #15
msw
Done landing (so long as tests are green). https://codereview.chromium.org/2886253002/diff/60001/ash/app_list/app_list_delegate_impl.cc File ash/app_list/app_list_delegate_impl.cc (right): https://codereview.chromium.org/2886253002/diff/60001/ash/app_list/app_list_delegate_impl.cc#newcode29 ash/app_list/app_list_delegate_impl.cc:29: ShellPort::Get()->GetRootWindowForDisplayId(display_id)->aura_window(); ...
3 years, 7 months ago (2017-05-18 20:28:01 UTC) #18
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/2886253002/120001
3 years, 7 months ago (2017-05-18 20:29:24 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/441582)
3 years, 7 months ago (2017-05-18 20:45:43 UTC) #21
msw
Xiyuan, please take a look at chrome/browser/chromeos/*.
3 years, 7 months ago (2017-05-18 20:50:14 UTC) #24
xiyuan
chromeos lgtm
3 years, 7 months ago (2017-05-18 21:02:09 UTC) #25
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/2886253002/120001
3 years, 7 months ago (2017-05-18 21:15:58 UTC) #27
commit-bot: I haz the power
3 years, 7 months ago (2017-05-18 21:23:53 UTC) #30
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/ad3d9551c524430d184c1d62a128...

Powered by Google App Engine
This is Rietveld 408576698