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

Issue 2625843002: Folds WmRootWindowController into RootWindowController (Closed)

Created:
3 years, 11 months ago by sky
Modified:
3 years, 11 months ago
Reviewers:
James Cook
CC:
chromium-reviews, sadrul, yusukes+watch_chromium.org, shuchen+watch_chromium.org, dcheng, nona+watch_chromium.org, oshima+watch_chromium.org, devtools-reviews_chromium.org, kalyank, stevenjb+watch_chromium.org, pfeldman
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Folds WmRootWindowController into RootWindowController This is (mostly) the bare minimum to merge the two. Future patches will cleanup WmWindow usage. BUG=671246 TEST=none R=jamescook@chromium.org

Patch Set 1 #

Total comments: 2

Patch Set 2 : cleanup #

Patch Set 3 : merge #

Patch Set 4 : definition in wm_root_window_controller.cc #

Patch Set 5 : definition in wm_root_window_controller.cc 2 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+465 lines, -614 lines) Patch
M ash/BUILD.gn View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M ash/app_list/app_list_presenter_delegate.cc View 1 chunk +0 lines, -1 line 0 comments Download
M ash/ash_touch_exploration_manager_chromeos.cc View 3 chunks +5 lines, -10 lines 0 comments Download
M ash/aura/wm_lookup_aura.h View 1 chunk +1 line, -1 line 0 comments Download
M ash/aura/wm_lookup_aura.cc View 1 1 chunk +2 lines, -5 lines 0 comments Download
M ash/aura/wm_window_aura.h View 1 chunk +1 line, -1 line 0 comments Download
M ash/aura/wm_window_aura.cc View 1 chunk +2 lines, -6 lines 0 comments Download
M ash/common/accelerators/accelerator_controller.cc View 3 chunks +11 lines, -18 lines 0 comments Download
M ash/common/accelerators/debug_commands.cc View 1 chunk +1 line, -1 line 0 comments Download
M ash/common/accelerators/exit_warning_handler.cc View 1 chunk +1 line, -1 line 0 comments Download
M ash/common/devtools/ash_devtools_dom_agent.cc View 1 chunk +1 line, -1 line 0 comments Download
M ash/common/devtools/ash_devtools_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M ash/common/drag_drop/drag_image_view.cc View 1 chunk +1 line, -1 line 0 comments Download
M ash/common/shelf/overflow_bubble_view.cc View 1 chunk +1 line, -1 line 0 comments Download
M ash/common/shelf/shelf_controller.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M ash/common/shelf/shelf_layout_manager.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M ash/common/shelf/shelf_tooltip_manager.cc View 1 chunk +1 line, -1 line 0 comments Download
M ash/common/shelf/shelf_widget.cc View 1 chunk +1 line, -1 line 0 comments Download
M ash/common/shelf/shelf_window_watcher_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M ash/common/shelf/wm_shelf.cc View 1 chunk +1 line, -1 line 0 comments Download
M ash/common/system/chromeos/audio/tray_audio.cc View 1 chunk +1 line, -1 line 0 comments Download
M ash/common/system/chromeos/ime_menu/ime_menu_tray.cc View 1 chunk +1 line, -1 line 0 comments Download
M ash/common/system/chromeos/network/network_state_list_detailed_view.cc View 1 chunk +1 line, -1 line 0 comments Download
M ash/common/system/chromeos/palette/palette_tray.cc View 1 chunk +1 line, -1 line 0 comments Download
M ash/common/system/chromeos/session/logout_confirmation_dialog.cc View 1 chunk +1 line, -1 line 0 comments Download
M ash/common/system/status_area_widget.cc View 1 chunk +1 line, -1 line 0 comments Download
M ash/common/system/status_area_widget_delegate.cc View 1 chunk +1 line, -1 line 0 comments Download
M ash/common/system/toast/toast_overlay.cc View 1 chunk +1 line, -1 line 0 comments Download
M ash/common/system/tray/system_tray.cc View 1 chunk +1 line, -1 line 0 comments Download
M ash/common/system/tray/system_tray_controller.cc View 1 chunk +1 line, -1 line 0 comments Download
M ash/common/system/tray/system_tray_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M ash/common/system/user/user_view.cc View 1 chunk +1 line, -1 line 0 comments Download
M ash/common/system/web_notification/ash_popup_alignment_delegate.cc View 1 chunk +1 line, -1 line 0 comments Download
M ash/common/system/web_notification/web_notification_tray.cc View 1 chunk +1 line, -1 line 0 comments Download
M ash/common/test/ash_test.cc View 1 chunk +1 line, -1 line 0 comments Download
M ash/common/wallpaper/wallpaper_controller.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M ash/common/wallpaper/wallpaper_controller_unittest.cc View 5 chunks +5 lines, -5 lines 0 comments Download
M ash/common/wallpaper/wallpaper_view.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M ash/common/wallpaper/wallpaper_widget_controller.h View 2 chunks +2 lines, -2 lines 0 comments Download
M ash/common/wallpaper/wallpaper_widget_controller.cc View 4 chunks +4 lines, -4 lines 0 comments Download
M ash/common/wm/container_finder.cc View 1 chunk +1 line, -1 line 0 comments Download
M ash/common/wm/default_state.cc View 1 chunk +1 line, -1 line 0 comments Download
M ash/common/wm/dock/docked_window_layout_manager.h View 2 chunks +2 lines, -2 lines 0 comments Download
M ash/common/wm/dock/docked_window_layout_manager.cc View 1 chunk +1 line, -1 line 0 comments Download
M ash/common/wm/dock/docked_window_resizer.cc View 1 chunk +1 line, -1 line 0 comments Download
M ash/common/wm/maximize_mode/maximize_mode_window_manager.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M ash/common/wm/maximize_mode/workspace_backdrop_delegate.cc View 1 chunk +1 line, -1 line 0 comments Download
M ash/common/wm/overview/scoped_transform_overview_window.cc View 1 chunk +1 line, -1 line 0 comments Download
M ash/common/wm/overview/window_grid.cc View 1 chunk +1 line, -1 line 0 comments Download
M ash/common/wm/overview/window_selector.cc View 1 chunk +1 line, -1 line 0 comments Download
M ash/common/wm/overview/window_selector_item.cc View 1 chunk +1 line, -1 line 0 comments Download
M ash/common/wm/panels/panel_layout_manager.h View 2 chunks +2 lines, -2 lines 0 comments Download
M ash/common/wm/panels/panel_layout_manager.cc View 1 chunk +1 line, -1 line 0 comments Download
M ash/common/wm/panels/panel_window_resizer.cc View 1 chunk +1 line, -1 line 0 comments Download
M ash/common/wm/root_window_finder.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M ash/common/wm/window_cycle_list.cc View 1 chunk +1 line, -1 line 0 comments Download
M ash/common/wm/window_positioning_utils.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M ash/common/wm/wm_screen_util.cc View 1 chunk +1 line, -1 line 0 comments Download
M ash/common/wm/workspace/multi_window_resize_controller.cc View 1 chunk +1 line, -1 line 0 comments Download
M ash/common/wm/workspace/phantom_window_controller.cc View 1 chunk +1 line, -1 line 0 comments Download
M ash/common/wm/workspace/workspace_layout_manager.h View 2 chunks +2 lines, -2 lines 0 comments Download
M ash/common/wm/workspace/workspace_layout_manager.cc View 1 chunk +1 line, -1 line 0 comments Download
M ash/common/wm/workspace/workspace_layout_manager_unittest.cc View 4 chunks +4 lines, -4 lines 0 comments Download
M ash/common/wm/workspace/workspace_window_resizer.cc View 1 chunk +1 line, -1 line 0 comments Download
M ash/common/wm/workspace_controller.cc View 1 chunk +1 line, -1 line 0 comments Download
M ash/common/wm_lookup.h View 2 chunks +4 lines, -4 lines 0 comments Download
D ash/common/wm_root_window_controller.h View 1 chunk +0 lines, -202 lines 0 comments Download
D ash/common/wm_root_window_controller.cc View 1 2 3 12 chunks +122 lines, -158 lines 0 comments Download
M ash/common/wm_shell.h View 3 chunks +2 lines, -2 lines 0 comments Download
M ash/common/wm_shell.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M ash/common/wm_window.h View 2 chunks +2 lines, -2 lines 0 comments Download
M ash/mus/accelerators/accelerator_controller_unittest.cc View 2 chunks +1 line, -1 line 0 comments Download
M ash/mus/bridge/wm_lookup_mus.h View 1 chunk +1 line, -1 line 0 comments Download
M ash/mus/bridge/wm_lookup_mus.cc View 1 chunk +2 lines, -3 lines 0 comments Download
M ash/mus/window_manager.cc View 3 chunks +1 line, -2 lines 0 comments Download
M ash/root_window_controller.h View 1 2 3 12 chunks +138 lines, -9 lines 0 comments Download
M ash/root_window_controller.cc View 1 2 3 15 chunks +30 lines, -34 lines 0 comments Download
M ash/root_window_controller_unittest.cc View 5 chunks +43 lines, -48 lines 0 comments Download
M ash/shelf/shelf_view_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M ash/shelf/shelf_widget_unittest.cc View 1 chunk +0 lines, -1 line 0 comments Download
M ash/shell.cc View 1 chunk +0 lines, -1 line 0 comments Download
M ash/shell_unittest.cc View 1 chunk +0 lines, -1 line 0 comments Download
M ash/system/web_notification/ash_popup_alignment_delegate_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M ash/test/ash_test_base.cc View 2 chunks +1 line, -1 line 0 comments Download
M ash/wm/always_on_top_controller_unittest.cc View 2 chunks +1 line, -2 lines 0 comments Download
M ash/wm/panels/panel_layout_manager_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M ash/wm/system_modal_container_layout_manager_unittest.cc View 1 chunk +0 lines, -1 line 0 comments Download
M ash/wm/window_util.cc View 2 chunks +4 lines, -6 lines 0 comments Download
M ash/wm/workspace/workspace_layout_manager_keyboard_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M ash/wm/workspace/workspace_layout_manager_unittest.cc View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ui/ash/launcher/launcher_context_menu_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/ash/networking_config_delegate_chromeos_browsertest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/ash/system_tray_client_browsertest.cc View 1 chunk +1 line, -1 line 0 comments Download

Depends on Patchset:

Messages

Total messages: 3 (0 generated)
sky
Sorry for the ginormo review. The code in RootWindowController is nearly an exact copy of ...
3 years, 11 months ago (2017-01-10 22:45:22 UTC) #1
James Cook
Starting to look... https://codereview.chromium.org/2625843002/diff/1/ash/root_window_controller.cc File ash/root_window_controller.cc (right): https://codereview.chromium.org/2625843002/diff/1/ash/root_window_controller.cc#newcode632 ash/root_window_controller.cc:632: // ShelfWidget* shelf_widget = GetShelf()->shelf_widget(); On ...
3 years, 11 months ago (2017-01-11 00:49:55 UTC) #2
sky
3 years, 11 months ago (2017-01-11 05:54:38 UTC) #3
Message was sent while issue was closed.
On 2017/01/11 00:49:55, James Cook wrote:
> Starting to look...
> 
>
https://codereview.chromium.org/2625843002/diff/1/ash/root_window_controller.cc
> File ash/root_window_controller.cc (right):
> 
>
https://codereview.chromium.org/2625843002/diff/1/ash/root_window_controller....
> ash/root_window_controller.cc:632: // ShelfWidget* shelf_widget =
> GetShelf()->shelf_widget();
> On 2017/01/10 22:45:22, sky wrote:
> > One question here. The commented code is what mash had where as ash had the
> > CHECK. Do I keep the CHECK and remove the (commented out) conditionals?
> 
> I would keep the CHECK. Feel free to ping me if you get test failures.

git cl got confused with the removal of wm_root_window_controller and then
adding it back. So, I closed this and created a new patch:
https://codereview.chromium.org/2620153003/ .

Powered by Google App Engine
This is Rietveld 408576698