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

Issue 2726823003: Remove WmLookup. (Closed)

Created:
3 years, 9 months ago by thanhph
Modified:
3 years, 9 months ago
Reviewers:
sky, thanhph1
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove WmLookup. Since we no longer need WmLookup, WmLookup.(c|hh) and WmLookup(Aura|Mus).(c|hh) will be removed. The calling sites to WmLookup::GetWindowForWidget(widget) can just call WmWindow::Get(widget->GetNativeWindow()). The calling sites to WmLookup::GetRootWindowControllerWithDisplayId(id) can just call Shell::GetRootWindowControllerWithDisplayId(id). Review-Url: https://codereview.chromium.org/2726823003 Cr-Commit-Position: refs/heads/master@{#454615} Committed: https://chromium.googlesource.com/chromium/src/+/c90f49ca766d5403ccb7d16180f91f5aa32f603e

Patch Set 1 #

Patch Set 2 : Remove wm_lookup. #

Total comments: 4

Patch Set 3 : Clean up .get(). #

Patch Set 4 : Clean up and rebase. #

Total comments: 4

Patch Set 5 : Clean up include and modify comment. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+180 lines, -471 lines) Patch
M ash/BUILD.gn View 1 2 3 4 2 chunks +0 lines, -4 lines 0 comments Download
M ash/app_list/app_list_presenter_delegate.cc View 1 4 chunks +3 lines, -4 lines 0 comments Download
M ash/aura/wm_lookup_aura.h View 1 1 chunk +0 lines, -30 lines 0 comments Download
M ash/aura/wm_lookup_aura.cc View 1 1 chunk +0 lines, -36 lines 0 comments Download
M ash/aura/wm_shell_aura.h View 1 2 chunks +0 lines, -2 lines 0 comments Download
M ash/common/devtools/ash_devtools_css_agent.cc View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M ash/common/devtools/ash_devtools_dom_agent.cc View 1 2 4 chunks +5 lines, -8 lines 0 comments Download
M ash/common/devtools/ash_devtools_unittest.cc View 1 2 11 chunks +10 lines, -11 lines 0 comments Download
M ash/common/drag_drop/drag_image_view.cc View 1 2 2 chunks +1 line, -2 lines 0 comments Download
M ash/common/frame/caption_buttons/frame_size_button.cc View 1 3 chunks +2 lines, -3 lines 0 comments Download
M ash/common/frame/custom_frame_view_ash.cc View 1 4 chunks +3 lines, -4 lines 0 comments Download
M ash/common/frame/header_painter_util.cc View 1 2 chunks +1 line, -2 lines 0 comments Download
M ash/common/frame/header_view.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M ash/common/metrics/pointer_metrics_recorder.cc View 1 2 chunks +1 line, -2 lines 0 comments Download
M ash/common/metrics/pointer_metrics_recorder_unittest.cc View 1 2 2 chunks +1 line, -2 lines 0 comments Download
M ash/common/shelf/overflow_bubble_view.cc View 1 2 chunks +1 line, -3 lines 0 comments Download
M ash/common/shelf/shelf_controller.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M ash/common/shelf/shelf_layout_manager.cc View 1 13 chunks +19 lines, -20 lines 0 comments Download
M ash/common/shelf/shelf_tooltip_manager.cc View 1 5 chunks +5 lines, -9 lines 0 comments Download
M ash/common/shelf/shelf_view.cc View 1 2 3 5 chunks +4 lines, -7 lines 0 comments Download
M ash/common/shelf/shelf_widget.cc View 1 2 chunks +1 line, -2 lines 0 comments Download
M ash/common/shelf/shelf_window_watcher_unittest.cc View 1 2 11 chunks +14 lines, -15 lines 0 comments Download
M ash/common/shelf/wm_shelf.cc View 1 2 2 chunks +1 line, -2 lines 0 comments Download
M ash/common/system/chromeos/ime_menu/ime_menu_tray.cc View 1 2 3 2 chunks +1 line, -3 lines 0 comments Download
M ash/common/system/chromeos/network/network_state_list_detailed_view.cc View 1 2 3 2 chunks +1 line, -3 lines 0 comments Download
M ash/common/system/chromeos/palette/palette_tray.cc View 1 2 3 2 chunks +1 line, -3 lines 0 comments Download
M ash/common/system/status_area_layout_manager.cc View 1 2 chunks +2 lines, -4 lines 0 comments Download
M ash/common/system/status_area_widget.cc View 1 2 3 3 chunks +2 lines, -3 lines 0 comments Download
M ash/common/system/status_area_widget_delegate.cc View 1 2 3 2 chunks +1 line, -2 lines 0 comments Download
M ash/common/system/toast/toast_overlay.cc View 1 2 3 4 2 chunks +1 line, -3 lines 0 comments Download
M ash/common/system/tray/system_tray.cc View 1 2 3 2 chunks +1 line, -3 lines 0 comments Download
M ash/common/system/tray/tray_background_view.cc View 1 2 3 2 chunks +1 line, -2 lines 0 comments Download
M ash/common/system/tray/tray_bubble_wrapper.cc View 1 2 chunks +1 line, -2 lines 0 comments Download
M ash/common/system/tray/tray_event_filter.cc View 1 2 chunks +1 line, -2 lines 0 comments Download
M ash/common/system/user/user_view.cc View 1 2 3 2 chunks +1 line, -3 lines 0 comments Download
M ash/common/system/web_notification/web_notification_tray.cc View 1 2 3 2 chunks +1 line, -3 lines 0 comments Download
M ash/common/wallpaper/wallpaper_view.cc View 1 3 chunks +2 lines, -3 lines 0 comments Download
M ash/common/wallpaper/wallpaper_widget_controller.cc View 1 3 chunks +3 lines, -4 lines 0 comments Download
M ash/common/wm/container_finder_unittest.cc View 1 2 2 chunks +1 line, -2 lines 0 comments Download
M ash/common/wm/dock/docked_window_layout_manager.cc View 1 2 chunks +1 line, -2 lines 0 comments Download
M ash/common/wm/dock/docked_window_resizer.cc View 1 2 chunks +2 lines, -4 lines 0 comments Download
M ash/common/wm/immersive_context_ash.cc View 1 3 chunks +4 lines, -4 lines 0 comments Download
M ash/common/wm/maximize_mode/workspace_backdrop_delegate.cc View 1 2 chunks +1 line, -2 lines 0 comments Download
M ash/common/wm/overview/cleanup_animation_observer_unittest.cc View 1 2 3 chunks +2 lines, -3 lines 0 comments Download
M ash/common/wm/overview/scoped_transform_overview_window.cc View 1 2 2 chunks +2 lines, -4 lines 0 comments Download
M ash/common/wm/overview/window_grid.cc View 1 2 3 9 chunks +8 lines, -13 lines 0 comments Download
M ash/common/wm/overview/window_selector.cc View 1 2 3 chunks +2 lines, -3 lines 0 comments Download
M ash/common/wm/overview/window_selector_item.cc View 1 2 3 8 chunks +7 lines, -12 lines 0 comments Download
M ash/common/wm/panels/panel_frame_view.cc View 1 2 chunks +1 line, -2 lines 0 comments Download
M ash/common/wm/panels/panel_layout_manager.cc View 1 4 chunks +3 lines, -4 lines 0 comments Download
M ash/common/wm/panels/panel_window_resizer.cc View 1 2 chunks +2 lines, -3 lines 0 comments Download
M ash/common/wm/root_window_finder.cc View 1 3 chunks +3 lines, -3 lines 0 comments Download
M ash/common/wm/window_positioning_utils.cc View 1 3 chunks +4 lines, -5 lines 0 comments Download
M ash/common/wm/workspace/multi_window_resize_controller.cc View 1 2 2 chunks +1 line, -3 lines 0 comments Download
M ash/common/wm/workspace/phantom_window_controller.cc View 1 2 3 chunks +2 lines, -3 lines 0 comments Download
M ash/common/wm/workspace/workspace_layout_manager_unittest.cc View 1 2 2 chunks +3 lines, -5 lines 0 comments Download
M ash/common/wm/workspace/workspace_window_resizer.cc View 1 2 chunks +3 lines, -4 lines 0 comments Download
M ash/common/wm_lookup.h View 1 1 chunk +0 lines, -44 lines 0 comments Download
D ash/common/wm_lookup.cc View 1 1 chunk +0 lines, -22 lines 0 comments Download
M ash/mus/BUILD.gn View 1 2 3 1 chunk +0 lines, -2 lines 0 comments Download
M ash/mus/bridge/wm_lookup_mus.h View 1 1 chunk +0 lines, -34 lines 0 comments Download
M ash/mus/bridge/wm_lookup_mus.cc View 1 1 chunk +0 lines, -33 lines 0 comments Download
M ash/mus/window_manager.h View 1 2 chunks +0 lines, -3 lines 0 comments Download
M ash/mus/window_manager.cc View 1 2 3 3 chunks +0 lines, -5 lines 0 comments Download
M ash/root_window_controller_unittest.cc View 1 2 3 7 chunks +8 lines, -9 lines 0 comments Download
M ash/screen_util_unittest.cc View 1 2 chunks +1 line, -2 lines 0 comments Download
M ash/shelf/shelf_view_unittest.cc View 1 2 3 3 chunks +2 lines, -3 lines 0 comments Download
M ash/shell.h View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M ash/shell.cc View 1 1 chunk +9 lines, -0 lines 0 comments Download
M ash/system/web_notification/ash_popup_alignment_delegate_unittest.cc View 1 2 3 4 2 chunks +1 line, -3 lines 0 comments Download
M ash/system/web_notification/web_notification_tray_unittest.cc View 1 2 3 4 2 chunks +1 line, -3 lines 0 comments Download
M ash/wm/overview/window_selector_unittest.cc View 1 2 3 4 3 chunks +2 lines, -3 lines 0 comments Download
M ash/wm/workspace/workspace_layout_manager_keyboard_unittest.cc View 1 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.cc View 1 2 chunks +1 line, -2 lines 0 comments Download
M chrome/browser/ui/ash/launcher/launcher_context_menu_unittest.cc View 1 2 chunks +1 line, -2 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_non_client_frame_view_ash.cc View 1 2 chunks +1 line, -3 lines 0 comments Download

Messages

Total messages: 52 (43 generated)
thanhph1
Hi Scott, Please review my cl. Thanks, Thanh.
3 years, 9 months ago (2017-03-02 15:16:34 UTC) #23
sky
I got part way through this and realized you have a bunch of unnecessary .get()'s. ...
3 years, 9 months ago (2017-03-02 19:04:52 UTC) #25
thanhph1
https://codereview.chromium.org/2726823003/diff/80001/ash/common/devtools/ash_devtools_unittest.cc File ash/common/devtools/ash_devtools_unittest.cc (right): https://codereview.chromium.org/2726823003/diff/80001/ash/common/devtools/ash_devtools_unittest.cc#newcode301 ash/common/devtools/ash_devtools_unittest.cc:301: WmWindow* parent_window = WmWindow::Get(widget.get()->GetNativeWindow()); On 2017/03/02 19:04:52, sky wrote: ...
3 years, 9 months ago (2017-03-02 22:24:17 UTC) #39
sky
https://codereview.chromium.org/2726823003/diff/140001/ash/common/system/toast/toast_overlay.cc File ash/common/system/toast/toast_overlay.cc (right): https://codereview.chromium.org/2726823003/diff/140001/ash/common/system/toast/toast_overlay.cc#newcode8 ash/common/system/toast/toast_overlay.cc:8: #include "ash/common/strings/grit/ash_strings.h" Did you mean to add this include? ...
3 years, 9 months ago (2017-03-02 23:49:57 UTC) #40
thanhph1
Thanks Scott. I rebased again this morning. Please review my new patch! Thanks, Thanh. https://codereview.chromium.org/2726823003/diff/140001/ash/common/system/toast/toast_overlay.cc ...
3 years, 9 months ago (2017-03-03 16:29:54 UTC) #45
sky
LGTM
3 years, 9 months ago (2017-03-03 17:08:25 UTC) #46
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/2726823003/160001
3 years, 9 months ago (2017-03-03 17:39:10 UTC) #48
thanhph1
On 2017/03/03 17:08:25, sky wrote: > LGTM Great, thanks Scott! Thanh.
3 years, 9 months ago (2017-03-03 17:39:10 UTC) #49
commit-bot: I haz the power
3 years, 9 months ago (2017-03-03 17:49:40 UTC) #52
Message was sent while issue was closed.
Committed patchset #5 (id:160001) as
https://chromium.googlesource.com/chromium/src/+/c90f49ca766d5403ccb7d16180f9...

Powered by Google App Engine
This is Rietveld 408576698