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

Issue 2176813002: mash: Migrate ShelfTooltipManager to wm common types. (Closed)

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

Description

mash: Migrate ShelfTooltipManager to wm common types. ShelfLayoutManagerObserver -> WmShelfObserver Use OnBeforeBubbleWidgetInit for display/container init. Add WmWindow::Add[Remove]LimitedPreTargetHandler (only supports that window itself, not embedded windows) Make it a pre-target handler for the shelf WmWindow. (as opposed to the root aura window for the display) BUG=629255 TEST=Automated tests; no shelf tooltip behavior changes. R=jamescook@chromium.org,sky@chromium.org Committed: https://crrev.com/7d55249c4cf653a3c699764e37658b4ba1e11710 Cr-Commit-Position: refs/heads/master@{#407927}

Patch Set 1 #

Patch Set 2 : Use a pre-target handler on the shelf aura::Window. #

Patch Set 3 : Cleanup. #

Total comments: 1

Patch Set 4 : Sync and rebase. #

Total comments: 8

Patch Set 5 : Address comment; fix rebase. #

Patch Set 6 : Sync and rebase. #

Patch Set 7 : Add limited pre-target handler WmWindow interface; Move tooltip manager to common. #

Total comments: 20

Patch Set 8 : Add comments and DCHECK. #

Patch Set 9 : Sync and rebase. #

Total comments: 2

Patch Set 10 : Update comment. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+115 lines, -490 lines) Patch
M ash/ash.gyp View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -2 lines 0 comments Download
M ash/aura/wm_window_aura.h View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M ash/aura/wm_window_aura.cc View 1 2 3 4 5 6 7 1 chunk +9 lines, -0 lines 0 comments Download
M ash/common/shelf/DEPS View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
A + ash/common/shelf/shelf_tooltip_manager.h View 1 2 3 4 5 6 7 chunks +7 lines, -16 lines 0 comments Download
A + ash/common/shelf/shelf_tooltip_manager.cc View 1 2 3 4 5 6 7 8 9 chunks +57 lines, -74 lines 0 comments Download
M ash/common/wm_window.h View 1 2 3 4 5 6 7 8 9 3 chunks +8 lines, -1 line 0 comments Download
M ash/mus/bridge/wm_window_mus.h View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M ash/mus/bridge/wm_window_mus.cc View 1 2 3 4 5 6 7 2 chunks +10 lines, -0 lines 0 comments Download
M ash/shelf/shelf_tooltip_manager.h View 1 2 3 4 5 6 1 chunk +0 lines, -102 lines 0 comments Download
D ash/shelf/shelf_tooltip_manager.cc View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -278 lines 0 comments Download
M ash/shelf/shelf_tooltip_manager_unittest.cc View 1 2 3 4 5 6 7 chunks +12 lines, -15 lines 0 comments Download
M ash/shelf/shelf_view.h View 1 2 3 4 5 6 2 chunks +2 lines, -1 line 0 comments Download
M ash/shelf/shelf_view_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 46 (33 generated)
msw
Hey James and Scott, please take a look; thanks! https://codereview.chromium.org/2176813002/diff/40001/ash/shelf/shelf_tooltip_manager.cc File ash/shelf/shelf_tooltip_manager.cc (right): https://codereview.chromium.org/2176813002/diff/40001/ash/shelf/shelf_tooltip_manager.cc#newcode18 ash/shelf/shelf_tooltip_manager.cc:18: ...
4 years, 5 months ago (2016-07-22 22:41:39 UTC) #3
James Cook
The WM conversion stuff looks fine, but you might want to hold off on more ...
4 years, 5 months ago (2016-07-22 23:48:21 UTC) #13
msw
Hey James and Scott, please take a look; thanks! Scott: wm_window; James: everything. https://codereview.chromium.org/2176813002/diff/80001/ash/shelf/shelf_tooltip_manager.cc File ...
4 years, 4 months ago (2016-07-25 22:56:44 UTC) #22
sky
https://codereview.chromium.org/2176813002/diff/160001/ash/aura/wm_window_aura.cc File ash/aura/wm_window_aura.cc (right): https://codereview.chromium.org/2176813002/diff/160001/ash/aura/wm_window_aura.cc#newcode666 ash/aura/wm_window_aura.cc:666: window_->AddPreTargetHandler(handler); This will give different semantics than the mus ...
4 years, 4 months ago (2016-07-26 13:25:20 UTC) #27
James Cook
https://codereview.chromium.org/2176813002/diff/160001/ash/common/shelf/shelf_tooltip_manager.cc File ash/common/shelf/shelf_tooltip_manager.cc (left): https://codereview.chromium.org/2176813002/diff/160001/ash/common/shelf/shelf_tooltip_manager.cc#oldcode221 ash/common/shelf/shelf_tooltip_manager.cc:221: void ShelfTooltipManager::OnWindowDestroying(aura::Window* window) { On 2016/07/26 13:25:20, sky wrote: ...
4 years, 4 months ago (2016-07-26 16:31:14 UTC) #28
msw
Please take another look; thanks! https://codereview.chromium.org/2176813002/diff/160001/ash/aura/wm_window_aura.cc File ash/aura/wm_window_aura.cc (right): https://codereview.chromium.org/2176813002/diff/160001/ash/aura/wm_window_aura.cc#newcode666 ash/aura/wm_window_aura.cc:666: window_->AddPreTargetHandler(handler); On 2016/07/26 13:25:20, ...
4 years, 4 months ago (2016-07-26 17:43:25 UTC) #29
msw
Please take another look; thanks!
4 years, 4 months ago (2016-07-26 17:44:28 UTC) #30
James Cook
LGTM https://codereview.chromium.org/2176813002/diff/160001/ash/common/shelf/shelf_tooltip_manager.cc File ash/common/shelf/shelf_tooltip_manager.cc (left): https://codereview.chromium.org/2176813002/diff/160001/ash/common/shelf/shelf_tooltip_manager.cc#oldcode221 ash/common/shelf/shelf_tooltip_manager.cc:221: void ShelfTooltipManager::OnWindowDestroying(aura::Window* window) { On 2016/07/26 17:43:25, msw ...
4 years, 4 months ago (2016-07-26 17:55:38 UTC) #33
sky
LGTM https://codereview.chromium.org/2176813002/diff/200001/ash/common/wm_window.h File ash/common/wm_window.h (right): https://codereview.chromium.org/2176813002/diff/200001/ash/common/wm_window.h#newcode289 ash/common/wm_window.h:289: // from embedded windows. This only supports windows ...
4 years, 4 months ago (2016-07-26 21:07:20 UTC) #38
msw
https://codereview.chromium.org/2176813002/diff/200001/ash/common/wm_window.h File ash/common/wm_window.h (right): https://codereview.chromium.org/2176813002/diff/200001/ash/common/wm_window.h#newcode289 ash/common/wm_window.h:289: // from embedded windows. This only supports windows with ...
4 years, 4 months ago (2016-07-26 21:17:21 UTC) #39
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/2176813002/220001
4 years, 4 months ago (2016-07-26 21:18:37 UTC) #42
commit-bot: I haz the power
Committed patchset #10 (id:220001)
4 years, 4 months ago (2016-07-26 22:06:11 UTC) #44
commit-bot: I haz the power
4 years, 4 months ago (2016-07-26 22:08:58 UTC) #46
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/7d55249c4cf653a3c699764e37658b4ba1e11710
Cr-Commit-Position: refs/heads/master@{#407927}

Powered by Google App Engine
This is Rietveld 408576698