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

Issue 2558963002: Move shelf item tooltip flag from delegate to item. (Closed)

Created:
4 years ago by msw
Modified:
4 years ago
Reviewers:
Tom Sepez, oshima, sky
CC:
chromium-reviews, rjkroege, sadrul, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, tfarina, dcheng, abarth-chromium, Aaron Boodman, yzshen+watch_chromium.org, kalyank, darin (slow to review)
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Move shelf item tooltip flag from delegate to item. Remove ShelfItemDelegate::ShouldShowTooltip and overrides. Add ShelfItem::shows_tooltip and plumbing, update users. Remove WindowState panel-attached member and accessors. Add ash, mus, and common panel-attached property keys. Add requisite WmWindow::SetBoolProperty and aura impl. Add requisite ShelfItem copy ctor (compiler complained...) BUG=557406 TEST=No Chrome OS shelf tooltip (or panel) behavior changes. R=sky@chromium.org TBR=tsepez@chromium.org Committed: https://crrev.com/60fee0810363cb1c3826ca3d375208bd4805aef3 Cr-Commit-Position: refs/heads/master@{#437441}

Patch Set 1 #

Patch Set 2 : Cleanup #

Total comments: 19

Patch Set 3 : Address comments. #

Patch Set 4 : Rebase #

Patch Set 5 : Remove WmWindowMus::SetBoolProperty override. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+94 lines, -96 lines) Patch
M ash/aura/wm_window_aura.h View 1 chunk +1 line, -0 lines 0 comments Download
M ash/aura/wm_window_aura.cc View 1 2 3 chunks +16 lines, -0 lines 0 comments Download
M ash/common/shelf/app_list_shelf_item_delegate.h View 1 chunk +0 lines, -1 line 0 comments Download
M ash/common/shelf/app_list_shelf_item_delegate.cc View 1 chunk +0 lines, -4 lines 0 comments Download
M ash/common/shelf/shelf_controller.cc View 1 chunk +0 lines, -2 lines 0 comments Download
M ash/common/shelf/shelf_item_delegate.h View 1 chunk +0 lines, -3 lines 0 comments Download
M ash/common/shelf/shelf_item_types.h View 2 chunks +4 lines, -0 lines 0 comments Download
M ash/common/shelf/shelf_item_types.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M ash/common/shelf/shelf_view.cc View 1 chunk +3 lines, -6 lines 0 comments Download
M ash/common/shelf/shelf_window_watcher.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M ash/common/shelf/shelf_window_watcher.cc View 1 2 3 chunks +13 lines, -0 lines 0 comments Download
M ash/common/shelf/shelf_window_watcher_item_delegate.h View 1 chunk +0 lines, -1 line 0 comments Download
M ash/common/shelf/shelf_window_watcher_item_delegate.cc View 3 chunks +2 lines, -7 lines 0 comments Download
M ash/common/test/test_shelf_item_delegate.h View 1 chunk +0 lines, -1 line 0 comments Download
M ash/common/test/test_shelf_item_delegate.cc View 1 chunk +0 lines, -4 lines 0 comments Download
M ash/common/wm/container_finder.cc View 2 chunks +2 lines, -1 line 0 comments Download
M ash/common/wm/dock/docked_window_resizer.cc View 2 chunks +2 lines, -1 line 0 comments Download
M ash/common/wm/drag_details.cc View 2 chunks +4 lines, -2 lines 0 comments Download
M ash/common/wm/panels/panel_layout_manager.cc View 1 chunk +1 line, -1 line 0 comments Download
M ash/common/wm/panels/panel_window_resizer.cc View 4 chunks +10 lines, -6 lines 0 comments Download
M ash/common/wm/window_state.h View 1 2 3 2 chunks +0 lines, -7 lines 0 comments Download
M ash/common/wm/window_state.cc View 1 chunk +0 lines, -1 line 0 comments Download
M ash/common/wm_window.h View 1 chunk +1 line, -0 lines 0 comments Download
M ash/common/wm_window_property.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M ash/mus/window_manager.cc View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M ash/shell/window_watcher_shelf_item_delegate.h View 1 chunk +0 lines, -1 line 0 comments Download
M ash/shell/window_watcher_shelf_item_delegate.cc View 1 chunk +0 lines, -4 lines 0 comments Download
M ash/wm/dock/docked_window_resizer_unittest.cc View 2 chunks +2 lines, -1 line 0 comments Download
M ash/wm/panels/panel_window_resizer_unittest.cc View 13 chunks +15 lines, -15 lines 0 comments Download
M ash/wm/window_properties.h View 1 1 chunk +4 lines, -2 lines 0 comments Download
M ash/wm/window_properties.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/ash/launcher/app_shortcut_launcher_item_controller.h View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ui/ash/launcher/app_shortcut_launcher_item_controller.cc View 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/browser/ui/ash/launcher/app_window_launcher_item_controller.h View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ui/ash/launcher/app_window_launcher_item_controller.cc View 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/browser/ui/ash/launcher/arc_app_deferred_launcher_item_controller.h View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ui/ash/launcher/arc_app_deferred_launcher_item_controller.cc View 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/browser/ui/ash/launcher/browser_shortcut_launcher_item_controller.h View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ui/ash/launcher/browser_shortcut_launcher_item_controller.cc View 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl_unittest.cc View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ui/views/apps/chrome_native_app_window_views_aura_ash.cc View 1 2 3 1 chunk +2 lines, -4 lines 0 comments Download
M services/ui/public/interfaces/window_manager.mojom View 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 35 (21 generated)
msw
Hey Scott, please take a look; thanks!
4 years ago (2016-12-07 23:20:56 UTC) #5
sky
+oshima for question about moving WmState::panel_attached to a property. https://codereview.chromium.org/2558963002/diff/20001/ash/aura/wm_window_aura.cc File ash/aura/wm_window_aura.cc (right): https://codereview.chromium.org/2558963002/diff/20001/ash/aura/wm_window_aura.cc#newcode313 ash/aura/wm_window_aura.cc:313: ...
4 years ago (2016-12-08 00:38:54 UTC) #9
msw
Hey Oshima, please see the panel_window_resizer_unittest.cc thread. https://codereview.chromium.org/2558963002/diff/20001/ash/aura/wm_window_aura.cc File ash/aura/wm_window_aura.cc (right): https://codereview.chromium.org/2558963002/diff/20001/ash/aura/wm_window_aura.cc#newcode313 ash/aura/wm_window_aura.cc:313: void WmWindowAura::SetBoolProperty(WmWindowProperty ...
4 years ago (2016-12-08 20:31:36 UTC) #10
sky
https://codereview.chromium.org/2558963002/diff/20001/ash/mus/bridge/wm_window_mus.cc File ash/mus/bridge/wm_window_mus.cc (right): https://codereview.chromium.org/2558963002/diff/20001/ash/mus/bridge/wm_window_mus.cc#newcode139 ash/mus/bridge/wm_window_mus.cc:139: void WmWindowMus::SetBoolProperty(WmWindowProperty key, bool value) { On 2016/12/08 20:31:36, ...
4 years ago (2016-12-08 20:52:42 UTC) #12
msw
https://codereview.chromium.org/2558963002/diff/20001/ash/mus/bridge/wm_window_mus.cc File ash/mus/bridge/wm_window_mus.cc (right): https://codereview.chromium.org/2558963002/diff/20001/ash/mus/bridge/wm_window_mus.cc#newcode139 ash/mus/bridge/wm_window_mus.cc:139: void WmWindowMus::SetBoolProperty(WmWindowProperty key, bool value) { On 2016/12/08 20:52:42, ...
4 years ago (2016-12-08 21:00:21 UTC) #14
msw
https://codereview.chromium.org/2558963002/diff/20001/ash/mus/bridge/wm_window_mus.cc File ash/mus/bridge/wm_window_mus.cc (right): https://codereview.chromium.org/2558963002/diff/20001/ash/mus/bridge/wm_window_mus.cc#newcode139 ash/mus/bridge/wm_window_mus.cc:139: void WmWindowMus::SetBoolProperty(WmWindowProperty key, bool value) { On 2016/12/08 21:00:21, ...
4 years ago (2016-12-08 21:18:19 UTC) #15
sky
LGTM
4 years ago (2016-12-08 23:08:30 UTC) #20
msw
https://codereview.chromium.org/2558963002/diff/20001/ash/wm/panels/panel_window_resizer_unittest.cc File ash/wm/panels/panel_window_resizer_unittest.cc (right): https://codereview.chromium.org/2558963002/diff/20001/ash/wm/panels/panel_window_resizer_unittest.cc#newcode330 ash/wm/panels/panel_window_resizer_unittest.cc:330: EXPECT_FALSE(window->GetProperty(kPanelAttachedKey)); On 2016/12/08 20:52:42, sky wrote: > On 2016/12/08 ...
4 years ago (2016-12-09 01:18:21 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/2558963002/80001
4 years ago (2016-12-09 01:19:15 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/322190)
4 years ago (2016-12-09 02:14:58 UTC) #25
msw
+TBR Tom for window_manager.mojom; ptal as you have time, thanks!
4 years ago (2016-12-09 02:23:44 UTC) #28
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/2558963002/80001
4 years ago (2016-12-09 02:24:21 UTC) #30
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years ago (2016-12-09 02:36:46 UTC) #33
commit-bot: I haz the power
4 years ago (2016-12-09 02:38:54 UTC) #35
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/60fee0810363cb1c3826ca3d375208bd4805aef3
Cr-Commit-Position: refs/heads/master@{#437441}

Powered by Google App Engine
This is Rietveld 408576698