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

Issue 2320273002: Refactors DimWindow and moves to ash/common (Closed)

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

Description

Refactors DimWindow and moves to ash/common DimWindow was both an aura::Window and had some logic. As that won't work at all in mash (and we generally don't subclass aura::Windows) I've converted it to have a WmWindow. I also renamed it to WindowDimmer. BUG=631526 TEST=covered by tests R=jamescook@chromium.org Committed: https://crrev.com/b733d4184e6a91eebd951cae60c871118d4cc2a2 Cr-Commit-Position: refs/heads/master@{#417755}

Patch Set 1 #

Patch Set 2 : todo #

Patch Set 3 : sim=20 #

Total comments: 1

Patch Set 4 : git add wm_window #

Total comments: 18

Patch Set 5 : merge #

Patch Set 6 : feedback #

Patch Set 7 : WmWindowUserData #

Patch Set 8 : WmWindowUserData test #

Total comments: 14

Patch Set 9 : feedback and member initializer ordering #

Unified diffs Side-by-side diffs Delta from patch set Stats (+433 lines, -351 lines) Patch
M ash/BUILD.gn View 1 2 3 4 5 6 7 4 chunks +4 lines, -2 lines 0 comments Download
M ash/aura/wm_shell_aura.h View 1 chunk +2 lines, -1 line 0 comments Download
M ash/aura/wm_shell_aura.cc View 1 chunk +4 lines, -2 lines 0 comments Download
M ash/aura/wm_window_aura.h View 2 chunks +2 lines, -0 lines 0 comments Download
M ash/aura/wm_window_aura.cc View 1 2 3 4 5 6 7 8 2 chunks +9 lines, -0 lines 0 comments Download
A + ash/common/wm/window_dimmer.h View 1 2 3 4 5 6 7 8 1 chunk +32 lines, -14 lines 0 comments Download
A + ash/common/wm/window_dimmer.cc View 1 2 3 4 5 6 1 chunk +47 lines, -40 lines 0 comments Download
M ash/common/wm_root_window_controller.cc View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M ash/common/wm_shell.h View 1 2 3 4 2 chunks +4 lines, -3 lines 0 comments Download
M ash/common/wm_window.h View 1 2 3 4 5 6 2 chunks +5 lines, -0 lines 0 comments Download
A ash/common/wm_window_user_data.h View 1 2 3 4 5 6 7 1 chunk +77 lines, -0 lines 0 comments Download
A ash/common/wm_window_user_data_unittest.cc View 1 2 3 4 5 6 7 1 chunk +81 lines, -0 lines 0 comments Download
M ash/mus/bridge/wm_shell_mus.h View 1 chunk +2 lines, -1 line 0 comments Download
M ash/mus/bridge/wm_shell_mus.cc View 1 1 chunk +7 lines, -2 lines 0 comments Download
M ash/mus/bridge/wm_window_mus.h View 4 chunks +11 lines, -0 lines 0 comments Download
M ash/mus/bridge/wm_window_mus.cc View 1 2 3 4 5 6 7 8 3 chunks +15 lines, -1 line 0 comments Download
M ash/root_window_controller.cc View 1 2 3 4 2 chunks +4 lines, -4 lines 0 comments Download
D ash/wm/dim_window.h View 1 chunk +0 lines, -35 lines 0 comments Download
D ash/wm/dim_window.cc View 1 chunk +0 lines, -79 lines 0 comments Download
M ash/wm/screen_dimmer.h View 1 2 3 4 5 6 5 chunks +17 lines, -3 lines 0 comments Download
M ash/wm/screen_dimmer.cc View 1 2 3 4 5 6 7 3 chunks +18 lines, -15 lines 0 comments Download
M ash/wm/screen_dimmer_unittest.cc View 1 2 3 4 5 6 2 chunks +8 lines, -3 lines 0 comments Download
M ash/wm/screen_pinning_controller.h View 1 2 3 4 5 6 4 chunks +12 lines, -12 lines 0 comments Download
M ash/wm/screen_pinning_controller.cc View 1 2 3 4 5 6 7 8 9 chunks +42 lines, -92 lines 0 comments Download
M ash/wm/system_modal_container_layout_manager.h View 1 2 3 4 5 6 5 chunks +6 lines, -6 lines 0 comments Download
M ash/wm/system_modal_container_layout_manager.cc View 1 2 3 4 5 6 7 6 chunks +17 lines, -30 lines 0 comments Download
M ash/wm/system_modal_container_layout_manager_unittest.cc View 2 chunks +5 lines, -5 lines 0 comments Download

Messages

Total messages: 25 (15 generated)
sky
https://codereview.chromium.org/2320273002/diff/40001/ash/common/wm_window.h File ash/common/wm_window.h (right): https://codereview.chromium.org/2320273002/diff/40001/ash/common/wm_window.h#newcode134 ash/common/wm_window.h:134: base::SupportsUserData* GetUserData(); I went with this approach rather than ...
4 years, 3 months ago (2016-09-08 21:04:31 UTC) #1
James Cook
I like WindowDimmer, both the name and the fact that it isn't a window subclass. ...
4 years, 3 months ago (2016-09-09 00:03:36 UTC) #10
sky
I'm not opposed to nuking UserData. See motivation below for keeping it. Not going with ...
4 years, 3 months ago (2016-09-09 03:50:04 UTC) #11
James Cook
I agree that userdata is useful for WmWindow and we should have something like it ...
4 years, 3 months ago (2016-09-09 04:13:08 UTC) #12
sky
Ok, I refactored things so that ownership is (hopefully) clearer. Take another look? https://codereview.chromium.org/2320273002/diff/140001/ash/common/wm/window_dimmer.h File ...
4 years, 3 months ago (2016-09-09 20:28:32 UTC) #13
James Cook
LGTM with nits. https://codereview.chromium.org/2320273002/diff/140001/ash/aura/wm_window_aura.cc File ash/aura/wm_window_aura.cc (right): https://codereview.chromium.org/2320273002/diff/140001/ash/aura/wm_window_aura.cc#newcode140 ash/aura/wm_window_aura.cc:140: } set window_ = nullptr here? ...
4 years, 3 months ago (2016-09-09 21:33:37 UTC) #18
sky
https://codereview.chromium.org/2320273002/diff/140001/ash/aura/wm_window_aura.cc File ash/aura/wm_window_aura.cc (right): https://codereview.chromium.org/2320273002/diff/140001/ash/aura/wm_window_aura.cc#newcode140 ash/aura/wm_window_aura.cc:140: } On 2016/09/09 21:33:36, James Cook wrote: > set ...
4 years, 3 months ago (2016-09-09 21:50:45 UTC) #21
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/2320273002/160001
4 years, 3 months ago (2016-09-09 21:51:14 UTC) #22
commit-bot: I haz the power
Committed patchset #9 (id:160001)
4 years, 3 months ago (2016-09-09 23:18:59 UTC) #23
commit-bot: I haz the power
4 years, 3 months ago (2016-09-09 23:20:57 UTC) #25
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/b733d4184e6a91eebd951cae60c871118d4cc2a2
Cr-Commit-Position: refs/heads/master@{#417755}

Powered by Google App Engine
This is Rietveld 408576698