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

Issue 1900443002: Removes aura dependencies from WindowPositioner (Closed)

Created:
4 years, 8 months ago by sky
Modified:
4 years, 8 months ago
Reviewers:
oshima
CC:
chromium-reviews, kalyank, sadrul, dcheng
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Removes aura dependencies from WindowPositioner This introduces WmGlobals. I would have liked to not have a static Get(), but it's necessitated by some places not having context. Hopefully I can change that later. I'm not moving WindowPositioner to common yet as it uses window_state. Once I move that I can move WindowPositioner. For the time being I'm keeping the tests in ash as they need aura and I don't want ash/wm/common depending upon aura. BUG=603369 TEST=none R=oshima@chromium.org Committed: https://crrev.com/984c189ec33e36d863147f278e8f4db10cae691a Cr-Commit-Position: refs/heads/master@{#388366}

Patch Set 1 #

Patch Set 2 : merge to trunk #

Patch Set 3 : update includes and add :: #

Patch Set 4 : Fix windows #

Patch Set 5 : Fix include #

Patch Set 6 : GetBounds #

Total comments: 3

Patch Set 7 : fix windowpositioner #

Patch Set 8 : fix windows #

Patch Set 9 : nuke GetWorkAreaForWindowInParent and fix windows #

Unified diffs Side-by-side diffs Delta from patch set Stats (+594 lines, -347 lines) Patch
M ash/accelerators/accelerator_delegate.h View 1 chunk +1 line, -1 line 0 comments Download
M ash/ash.gyp View 1 1 chunk +5 lines, -0 lines 0 comments Download
M ash/default_user_wallpaper_delegate.cc View 1 chunk +1 line, -1 line 0 comments Download
M ash/desktop_background/desktop_background_view.cc View 2 chunks +7 lines, -7 lines 0 comments Download
M ash/magnifier/magnification_controller.cc View 1 chunk +1 line, -1 line 0 comments Download
M ash/magnifier/magnification_controller_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M ash/rotator/screen_rotation_animator.cc View 1 chunk +1 line, -1 line 0 comments Download
M ash/shelf/shelf_tooltip_manager.cc View 2 chunks +5 lines, -4 lines 0 comments Download
M ash/shell.h View 3 chunks +7 lines, -0 lines 0 comments Download
M ash/shell.cc View 1 3 chunks +5 lines, -1 line 0 comments Download
M ash/shell/content/client/shell_browser_main_parts.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M ash/shell/toplevel_window.cc View 1 2 3 4 5 6 1 chunk +2 lines, -3 lines 0 comments Download
M ash/shell/window_type_launcher.cc View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M ash/system/toast/toast_overlay.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M ash/system/tray/tray_background_view.cc View 1 chunk +5 lines, -6 lines 0 comments Download
M ash/system/user/user_view.cc View 1 chunk +1 line, -1 line 0 comments Download
M ash/test/ash_test_helper.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M ash/test/cursor_manager_test_api.cc View 1 chunk +2 lines, -4 lines 0 comments Download
A ash/wm/aura/wm_globals_aura.h View 1 chunk +38 lines, -0 lines 0 comments Download
A ash/wm/aura/wm_globals_aura.cc View 1 2 1 chunk +75 lines, -0 lines 0 comments Download
M ash/wm/aura/wm_root_window_controller_aura.h View 1 chunk +1 line, -0 lines 0 comments Download
M ash/wm/aura/wm_root_window_controller_aura.cc View 2 chunks +5 lines, -0 lines 0 comments Download
M ash/wm/aura/wm_window_aura.h View 2 chunks +5 lines, -1 line 0 comments Download
M ash/wm/aura/wm_window_aura.cc View 4 chunks +27 lines, -1 line 0 comments Download
A ash/wm/common/window_positioning_utils.h View 1 chunk +44 lines, -0 lines 0 comments Download
A ash/wm/common/window_positioning_utils.cc View 1 2 1 chunk +50 lines, -0 lines 0 comments Download
A ash/wm/common/wm_globals.h View 1 chunk +51 lines, -0 lines 0 comments Download
M ash/wm/common/wm_root_window_controller.h View 2 chunks +3 lines, -0 lines 0 comments Download
M ash/wm/common/wm_window.h View 4 chunks +13 lines, -1 line 0 comments Download
M ash/wm/default_state.cc View 5 chunks +10 lines, -8 lines 0 comments Download
M ash/wm/drag_window_resizer.cc View 1 chunk +1 line, -0 lines 0 comments Download
M ash/wm/drag_window_resizer_unittest.cc View 2 chunks +2 lines, -1 line 0 comments Download
M ash/wm/window_positioner.h View 1 2 3 4 5 6 5 chunks +10 lines, -12 lines 0 comments Download
M ash/wm/window_positioner.cc View 1 2 3 4 5 6 7 8 19 chunks +74 lines, -115 lines 0 comments Download
M ash/wm/window_positioner_unittest.cc View 1 2 3 4 5 6 2 chunks +2 lines, -4 lines 0 comments Download
M ash/wm/window_resizer.cc View 3 chunks +14 lines, -11 lines 0 comments Download
M ash/wm/window_state.cc View 1 chunk +1 line, -0 lines 0 comments Download
M ash/wm/window_util.h View 2 chunks +0 lines, -23 lines 0 comments Download
M ash/wm/window_util.cc View 1 chunk +0 lines, -34 lines 0 comments Download
M ash/wm/window_util_unittest.cc View 1 chunk +1 line, -0 lines 0 comments Download
M ash/wm/workspace/workspace_layout_manager.cc View 4 chunks +13 lines, -7 lines 0 comments Download
M ash/wm/workspace/workspace_window_resizer_unittest.cc View 5 chunks +15 lines, -16 lines 0 comments Download
M chrome/browser/ui/ash/window_positioner_unittest.cc View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/window_sizer/window_sizer_ash.cc View 1 2 3 4 5 6 1 chunk +2 lines, -6 lines 0 comments Download
M chrome/browser/ui/window_sizer/window_sizer_ash_unittest.cc View 1 2 3 4 5 6 2 chunks +41 lines, -39 lines 0 comments Download
M chrome/browser/ui/window_sizer/window_sizer_common_unittest.h View 1 2 3 4 5 6 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/window_sizer/window_sizer_common_unittest.cc View 1 2 3 4 5 6 7 chunks +33 lines, -24 lines 0 comments Download
M ui/platform_window/win/win_window.cc View 1 2 3 4 5 6 7 8 1 chunk +6 lines, -3 lines 0 comments Download

Messages

Total messages: 15 (3 generated)
sky
4 years, 8 months ago (2016-04-16 16:29:13 UTC) #1
oshima
lgtm If we can live without Get(), that's good, but let's not introduce another Shell, ...
4 years, 8 months ago (2016-04-18 18:09:18 UTC) #2
sky
I had two bugs in this refactor: 1. gfx::Screen* argument wasn't being used in WindowPositioner. ...
4 years, 8 months ago (2016-04-19 00:02:12 UTC) #3
sky
On 2016/04/19 00:02:12, sky wrote: > I had two bugs in this refactor: > 1. ...
4 years, 8 months ago (2016-04-19 13:11:32 UTC) #4
oshima
https://codereview.chromium.org/1900443002/diff/100001/ash/wm/window_positioner.cc File ash/wm/window_positioner.cc (right): https://codereview.chromium.org/1900443002/diff/100001/ash/wm/window_positioner.cc#newcode72 ash/wm/window_positioner.cc:72: // On Win 8, the host window can't be ...
4 years, 8 months ago (2016-04-19 18:11:52 UTC) #5
sky
https://codereview.chromium.org/1900443002/diff/100001/ash/wm/window_positioner.cc File ash/wm/window_positioner.cc (right): https://codereview.chromium.org/1900443002/diff/100001/ash/wm/window_positioner.cc#newcode72 ash/wm/window_positioner.cc:72: // On Win 8, the host window can't be ...
4 years, 8 months ago (2016-04-19 18:15:14 UTC) #6
oshima
On 2016/04/19 18:15:14, sky wrote: > https://codereview.chromium.org/1900443002/diff/100001/ash/wm/window_positioner.cc > File ash/wm/window_positioner.cc (right): > > https://codereview.chromium.org/1900443002/diff/100001/ash/wm/window_positioner.cc#newcode72 > ...
4 years, 8 months ago (2016-04-19 19:29:15 UTC) #7
sky
On 2016/04/19 19:29:15, oshima wrote: > On 2016/04/19 18:15:14, sky wrote: > > > https://codereview.chromium.org/1900443002/diff/100001/ash/wm/window_positioner.cc ...
4 years, 8 months ago (2016-04-19 22:17:22 UTC) #9
oshima
lgtm
4 years, 8 months ago (2016-04-19 23:54:57 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1900443002/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1900443002/180001
4 years, 8 months ago (2016-04-19 23:55:48 UTC) #12
commit-bot: I haz the power
Committed patchset #9 (id:180001)
4 years, 8 months ago (2016-04-20 00:00:47 UTC) #13
commit-bot: I haz the power
4 years, 8 months ago (2016-04-22 19:18:28 UTC) #15
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/984c189ec33e36d863147f278e8f4db10cae691a
Cr-Commit-Position: refs/heads/master@{#388366}

Powered by Google App Engine
This is Rietveld 408576698