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

Issue 2575613002: Remove ShelfItemDelegate::IsDraggable; check for app list button. (Closed)

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

Description

Remove ShelfItemDelegate::IsDraggable; check for app list button. The only button that shouldn't be draggable is the app list. (arc deferred items were incorrectly marked non-draggable) Remove the item delegate function to simplify shelf view code. Add test support for trying to drag the app list button. Update and expand the related unit test. BUG=557406 TEST=Automated; no shelf dragging behavior changes. R=jamescook@chromium.org Committed: https://crrev.com/086f91b5d4636ea0680b0db2b5ff2ad67d52926d Cr-Commit-Position: refs/heads/master@{#438614}

Patch Set 1 #

Total comments: 10

Patch Set 2 : Address comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+58 lines, -107 lines) Patch
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, -5 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_view.cc View 1 4 chunks +7 lines, -25 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 1 chunk +0 lines, -4 lines 0 comments Download
M ash/common/test/test_shelf_item_delegate.h View 1 chunk +0 lines, -5 lines 0 comments Download
M ash/common/test/test_shelf_item_delegate.cc View 2 chunks +1 line, -5 lines 0 comments Download
M ash/shelf/shelf_view_unittest.cc View 1 4 chunks +38 lines, -24 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/test/shelf_view_test_api.h View 1 3 chunks +6 lines, -2 lines 0 comments Download
M ash/test/shelf_view_test_api.cc View 1 chunk +6 lines, -2 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

Messages

Total messages: 16 (10 generated)
msw
Hey James, please take a look; thanks! FYI Yury, please note the change for arc ...
4 years ago (2016-12-13 22:14:28 UTC) #4
James Cook
LGTM with a couple things in the test code. Lemme know if you want me ...
4 years ago (2016-12-14 17:41:54 UTC) #7
msw
https://codereview.chromium.org/2575613002/diff/1/ash/common/shelf/shelf_view.cc File ash/common/shelf/shelf_view.cc (right): https://codereview.chromium.org/2575613002/diff/1/ash/common/shelf/shelf_view.cc#newcode1172 ash/common/shelf/shelf_view.cc:1172: int first_draggable_item = model_->GetItemIndexForType(TYPE_APP_LIST) + 1; On 2016/12/14 17:41:54, ...
4 years ago (2016-12-14 19:46:50 UTC) #8
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/2575613002/20001
4 years ago (2016-12-14 19:47:25 UTC) #11
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years ago (2016-12-14 20:41:19 UTC) #14
commit-bot: I haz the power
4 years ago (2016-12-14 20:42:57 UTC) #16
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/086f91b5d4636ea0680b0db2b5ff2ad67d52926d
Cr-Commit-Position: refs/heads/master@{#438614}

Powered by Google App Engine
This is Rietveld 408576698