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

Issue 2739553005: Moves maintaining root_window_for_new_windows_ to Shell (Closed)

Created:
3 years, 9 months ago by sky
Modified:
3 years, 9 months ago
Reviewers:
James Cook, reveman
CC:
chromium-reviews, dcheng, kalyank, sadrul
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Moves maintaining root_window_for_new_windows_ to Shell There is no reason for this to be on WmShell anymore. This also includes the following: . Renames Shell::GetTargetRootWindow() to GetRootWindowForNewWindows(). This name better indicates what the function is for. . Added version of the above that returns WmWindow. This will be removed once WmWindow is removed. . Removes Shell::GetTargetDisplayId() as it was only used in one place (and it's name is rather confusing). . Makes FocusController's implementation of ActivationClient and FocusClient public. FocusController's is intended to be the ActivationClient and the FocusClient, so making it protected just leads to awkwardness in using the class. BUG=699231 TEST=covered by tests Review-Url: https://codereview.chromium.org/2739553005 Cr-Commit-Position: refs/heads/master@{#455546} Committed: https://chromium.googlesource.com/chromium/src/+/2734438cde42ce98227c4292b35a092fb75ee371

Patch Set 1 #

Patch Set 2 : cleanup #

Total comments: 7

Patch Set 3 : merge #

Patch Set 4 : rename GetTargetWindow and further cleanup #

Total comments: 2

Patch Set 5 : remove ash:: #

Unified diffs Side-by-side diffs Delta from patch set Stats (+154 lines, -165 lines) Patch
M ash/common/accelerators/accelerator_controller.cc View 1 2 3 5 chunks +5 lines, -4 lines 0 comments Download
M ash/common/accelerators/exit_warning_handler.cc View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M ash/common/scoped_root_window_for_new_windows.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M ash/common/system/toast/toast_overlay.cc View 1 2 3 3 chunks +3 lines, -4 lines 0 comments Download
M ash/common/wm/container_finder.cc View 1 2 3 2 chunks +4 lines, -3 lines 0 comments Download
M ash/common/wm/mru_window_tracker.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M ash/common/wm/window_cycle_list.cc View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M ash/common/wm/window_positioner.cc View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M ash/common/wm/window_positioning_utils.cc View 1 chunk +1 line, -1 line 0 comments Download
M ash/common/wm_shell.h View 6 chunks +1 line, -24 lines 0 comments Download
M ash/common/wm_shell.cc View 1 2 3 6 chunks +3 lines, -21 lines 0 comments Download
M ash/drag_drop/drag_drop_tracker_unittest.cc View 1 2 3 3 chunks +2 lines, -3 lines 0 comments Download
M ash/extended_desktop_unittest.cc View 1 2 3 3 chunks +4 lines, -4 lines 0 comments Download
M ash/magnifier/magnification_controller.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M ash/mus/accelerators/accelerator_controller_registrar.cc View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M ash/mus/top_level_window_factory.cc View 1 2 3 3 chunks +2 lines, -2 lines 0 comments Download
M ash/root_window_controller.h View 1 chunk +1 line, -1 line 0 comments Download
M ash/root_window_controller.cc View 1 2 3 2 chunks +5 lines, -6 lines 0 comments Download
M ash/shell.h View 1 2 3 11 chunks +28 lines, -19 lines 0 comments Download
M ash/shell.cc View 1 2 3 8 chunks +35 lines, -27 lines 0 comments Download
M ash/shell/panel_window.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M ash/sticky_keys/sticky_keys_overlay.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M ash/test/ash_test_helper.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M ash/test/ui_controls_factory_ash.cc View 1 2 3 2 chunks +3 lines, -3 lines 0 comments Download
M ash/wm/ash_focus_rules.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M ash/wm/drag_window_resizer_unittest.cc View 1 2 3 4 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/input_method/candidate_window_controller_impl.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/profiles/multiprofiles_intro_dialog.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/profiles/multiprofiles_session_aborted_dialog.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/ui/idle_app_name_notification_view.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/ui/kiosk_external_update_notification.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/ash/app_list/app_list_service_ash.cc View 1 2 3 4 chunks +10 lines, -2 lines 0 comments Download
M chrome/browser/ui/ash/chrome_keyboard_ui.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl_browsertest.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/ash/multi_user/multi_user_warning_dialog.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/apps/chrome_native_app_window_views_aura_ash.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/window_sizer/window_sizer.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/window_sizer/window_sizer_ash_uitest.cc View 1 2 3 6 chunks +6 lines, -6 lines 0 comments Download
M chrome/browser/ui/window_sizer/window_sizer_ash_unittest.cc View 1 2 3 5 chunks +6 lines, -5 lines 0 comments Download
M components/exo/wm_helper_ash.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M ui/wm/core/focus_controller.h View 1 2 3 2 chunks +1 line, -1 line 0 comments Download

Messages

Total messages: 23 (14 generated)
sky
3 years, 9 months ago (2017-03-08 01:11:09 UTC) #1
James Cook
https://codereview.chromium.org/2739553005/diff/20001/ash/shell.cc File ash/shell.cc (right): https://codereview.chromium.org/2739553005/diff/20001/ash/shell.cc#newcode247 ash/shell.cc:247: aura::Window* Shell::GetTargetRootWindow() { Hrm, though now it's confusing that ...
3 years, 9 months ago (2017-03-08 03:04:16 UTC) #6
sky
As part of making Shell remove itself from the FocusController I made FocusController's implementation of ...
3 years, 9 months ago (2017-03-08 17:01:38 UTC) #8
sky
+reveman for exo
3 years, 9 months ago (2017-03-08 17:02:20 UTC) #10
reveman
lgtm
3 years, 9 months ago (2017-03-08 17:09:57 UTC) #11
James Cook
LGTM! The new names are much clearer, it's nice to get rid of the two ...
3 years, 9 months ago (2017-03-08 20:19:17 UTC) #16
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/2739553005/80001
3 years, 9 months ago (2017-03-08 20:28:51 UTC) #19
sky
https://codereview.chromium.org/2739553005/diff/60001/ash/wm/drag_window_resizer_unittest.cc File ash/wm/drag_window_resizer_unittest.cc (right): https://codereview.chromium.org/2739553005/diff/60001/ash/wm/drag_window_resizer_unittest.cc#newcode312 ash/wm/drag_window_resizer_unittest.cc:312: EXPECT_EQ(root_windows[0], ash::Shell::GetRootWindowForNewWindows()); On 2017/03/08 20:19:17, James Cook wrote: > ...
3 years, 9 months ago (2017-03-08 20:42:59 UTC) #20
commit-bot: I haz the power
3 years, 9 months ago (2017-03-08 21:31:21 UTC) #23
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/2734438cde42ce98227c4292b35a...

Powered by Google App Engine
This is Rietveld 408576698