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

Issue 2735983006: Renames WmWindowUserData and converts to using aura (Closed)

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

Description

Renames WmWindowUserData and converts to using aura As part of this I converted a handful of places from WmWindow to aura::Window. For example, GetContainersFromAllRootWindows was converted from WmWindow to aura::Window. BUG=699678 TEST=covered by tests R=jamescook@chromium.org Review-Url: https://codereview.chromium.org/2735983006 Cr-Commit-Position: refs/heads/master@{#455891} Committed: https://chromium.googlesource.com/chromium/src/+/e02e09e5f6b809e3af3c8d2707929c1bfcb43781

Patch Set 1 #

Patch Set 2 : moor aura #

Total comments: 1

Patch Set 3 : more cleanup #

Total comments: 10

Patch Set 4 : Bring back WindowUserData #

Patch Set 5 : cleanup #

Total comments: 2

Patch Set 6 : bye bye unique_ptr #

Patch Set 7 : =null #

Total comments: 2

Patch Set 8 : ownership comments #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+164 lines, -316 lines) Patch
M ash/BUILD.gn View 1 2 3 3 chunks +2 lines, -2 lines 0 comments Download
A + ash/common/window_user_data.h View 1 2 3 2 chunks +23 lines, -21 lines 0 comments Download
A + ash/common/window_user_data_unittest.cc View 1 2 3 4 2 chunks +19 lines, -27 lines 0 comments Download
M ash/common/wm/container_finder.h View 2 chunks +6 lines, -2 lines 0 comments Download
M ash/common/wm/container_finder.cc View 2 chunks +6 lines, -5 lines 0 comments Download
M ash/common/wm/screen_dimmer.h View 1 2 3 3 chunks +13 lines, -7 lines 0 comments Download
M ash/common/wm/screen_dimmer.cc View 1 2 3 4 4 chunks +6 lines, -6 lines 0 comments Download
M ash/common/wm/system_modal_container_layout_manager.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M ash/common/wm/window_dimmer.h View 1 2 3 4 5 6 7 2 chunks +12 lines, -11 lines 1 comment Download
M ash/common/wm/window_dimmer.cc View 1 2 3 4 5 6 7 2 chunks +23 lines, -25 lines 0 comments Download
D ash/common/wm_window_user_data.h View 1 chunk +0 lines, -78 lines 0 comments Download
D ash/common/wm_window_user_data_unittest.cc View 1 2 3 1 chunk +0 lines, -88 lines 0 comments Download
M ash/shell.cc View 1 chunk +4 lines, -5 lines 0 comments Download
M ash/wm/ash_focus_rules.cc View 1 chunk +4 lines, -5 lines 0 comments Download
M ash/wm/screen_dimmer_unittest.cc View 1 2 3 4 3 chunks +4 lines, -6 lines 0 comments Download
M ash/wm/screen_pinning_controller.h View 1 2 3 4 chunks +7 lines, -3 lines 0 comments Download
M ash/wm/screen_pinning_controller.cc View 1 2 3 4 9 chunks +29 lines, -19 lines 0 comments Download
M ash/wm/system_modal_container_layout_manager_unittest.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M ui/base/class_property.h View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 26 (16 generated)
sky
I think this patch makes the ownership of WindowDimmer mildly confusing and error prone. I'm ...
3 years, 9 months ago (2017-03-09 01:02:26 UTC) #3
James Cook
I had not yet looked at ScreenPinningController before we talked. I now think it would ...
3 years, 9 months ago (2017-03-09 18:39:27 UTC) #6
sky
https://codereview.chromium.org/2735983006/diff/40001/ash/common/wm/container_finder.h File ash/common/wm/container_finder.h (right): https://codereview.chromium.org/2735983006/diff/40001/ash/common/wm/container_finder.h#newcode39 ash/common/wm/container_finder.h:39: ASH_EXPORT std::vector<aura::Window*> GetContainersFromAllRootWindows( On 2017/03/09 18:39:27, James Cook wrote: ...
3 years, 9 months ago (2017-03-09 20:39:04 UTC) #8
James Cook
https://codereview.chromium.org/2735983006/diff/80001/ash/common/wm/window_dimmer.h File ash/common/wm/window_dimmer.h (right): https://codereview.chromium.org/2735983006/diff/80001/ash/common/wm/window_dimmer.h#newcode49 ash/common/wm/window_dimmer.h:49: std::unique_ptr<aura::Window> window_; Wait, why does this have to become ...
3 years, 9 months ago (2017-03-09 21:12:00 UTC) #12
sky
https://codereview.chromium.org/2735983006/diff/80001/ash/common/wm/window_dimmer.h File ash/common/wm/window_dimmer.h (right): https://codereview.chromium.org/2735983006/diff/80001/ash/common/wm/window_dimmer.h#newcode49 ash/common/wm/window_dimmer.h:49: std::unique_ptr<aura::Window> window_; On 2017/03/09 21:12:00, James Cook wrote: > ...
3 years, 9 months ago (2017-03-09 21:18:42 UTC) #13
James Cook
LGTM but can you see if you can improve the ownership comments? https://codereview.chromium.org/2735983006/diff/120001/ash/common/wm/window_dimmer.cc File ash/common/wm/window_dimmer.cc ...
3 years, 9 months ago (2017-03-09 21:24:57 UTC) #16
sky
https://codereview.chromium.org/2735983006/diff/120001/ash/common/wm/window_dimmer.cc File ash/common/wm/window_dimmer.cc (right): https://codereview.chromium.org/2735983006/diff/120001/ash/common/wm/window_dimmer.cc#newcode50 ash/common/wm/window_dimmer.cc:50: delete window_; On 2017/03/09 21:24:57, James Cook wrote: > ...
3 years, 9 months ago (2017-03-09 21:32:28 UTC) #19
James Cook
still lgtm https://codereview.chromium.org/2735983006/diff/140001/ash/common/wm/window_dimmer.h File ash/common/wm/window_dimmer.h (right): https://codereview.chromium.org/2735983006/diff/140001/ash/common/wm/window_dimmer.h#newcode24 ash/common/wm/window_dimmer.h:24: // still valid, then WindowDimmer deletes the ...
3 years, 9 months ago (2017-03-09 21:40:39 UTC) #20
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/2735983006/140001
3 years, 9 months ago (2017-03-09 21:41:18 UTC) #23
commit-bot: I haz the power
3 years, 9 months ago (2017-03-09 22:55:18 UTC) #26
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as
https://chromium.googlesource.com/chromium/src/+/e02e09e5f6b809e3af3c8d270792...

Powered by Google App Engine
This is Rietveld 408576698