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

Issue 19382003: Make dragging outside the app list scroll back to its original position. (Closed)

Created:
7 years, 5 months ago by koz (OOO until 15th September)
Modified:
7 years, 5 months ago
Reviewers:
xiyuan
CC:
chromium-reviews, chrome-apps-syd-reviews_chromium.org, tfarina, benwells
Visibility:
Public.

Description

Make dragging outside the app list scroll back to its original position. Currently when dragging an app from the app list outside the bounds of the app launcher the apps in the launcher continue to re-arrange themselves even though the cursor may be nowhere near the app launcher, which looks weird. This change makes it so that the app launcher animates back to its original state while the cursor is outside the launcher, and will cause drops to outside the app launcher to return the dragged app to its original position, which is consistent with flows such as dragging apps to the taskbar on Windows / ChromeOS. BUG=261452 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=213339

Patch Set 1 #

Patch Set 2 : don't change pages on drag out #

Total comments: 6

Patch Set 3 : respond to comments #

Total comments: 2

Patch Set 4 : add drag buffer #

Total comments: 6

Patch Set 5 : respond to comments #

Patch Set 6 : rebase #

Patch Set 7 : fix compile #

Unified diffs Side-by-side diffs Delta from patch set Stats (+41 lines, -14 lines) Patch
M ui/app_list/views/apps_grid_view.h View 1 2 3 4 2 chunks +7 lines, -0 lines 0 comments Download
M ui/app_list/views/apps_grid_view.cc View 1 2 3 4 5 6 11 chunks +34 lines, -14 lines 0 comments Download

Messages

Total messages: 24 (0 generated)
koz (OOO until 15th September)
7 years, 5 months ago (2013-07-18 07:07:48 UTC) #1
xiyuan
Should we leave the page as it is when dragging out of the launcher? Say, ...
7 years, 5 months ago (2013-07-18 16:37:10 UTC) #2
koz (OOO until 15th September)
On 2013/07/18 16:37:10, xiyuan wrote: > Should we leave the page as it is when ...
7 years, 5 months ago (2013-07-18 23:55:38 UTC) #3
xiyuan
https://codereview.chromium.org/19382003/diff/4001/ui/app_list/views/apps_grid_view.cc File ui/app_list/views/apps_grid_view.cc (right): https://codereview.chromium.org/19382003/diff/4001/ui/app_list/views/apps_grid_view.cc#newcode910 ui/app_list/views/apps_grid_view.cc:910: current_page = drag_start_page_; Should we jus return here? Otherwise, ...
7 years, 5 months ago (2013-07-19 00:59:59 UTC) #4
xiyuan
https://codereview.chromium.org/19382003/diff/4001/ui/app_list/views/apps_grid_view.cc File ui/app_list/views/apps_grid_view.cc (right): https://codereview.chromium.org/19382003/diff/4001/ui/app_list/views/apps_grid_view.cc#newcode412 ui/app_list/views/apps_grid_view.cc:412: MaybeStartPageFlipTimer(last_drag_point_); I wonder if we should also update MaybeStartPageFlipTimer ...
7 years, 5 months ago (2013-07-19 01:06:33 UTC) #5
koz (OOO until 15th September)
https://codereview.chromium.org/19382003/diff/4001/ui/app_list/views/apps_grid_view.cc File ui/app_list/views/apps_grid_view.cc (right): https://codereview.chromium.org/19382003/diff/4001/ui/app_list/views/apps_grid_view.cc#newcode412 ui/app_list/views/apps_grid_view.cc:412: MaybeStartPageFlipTimer(last_drag_point_); On 2013/07/19 01:06:33, xiyuan wrote: > I wonder ...
7 years, 5 months ago (2013-07-19 04:03:57 UTC) #6
xiyuan
https://codereview.chromium.org/19382003/diff/4001/ui/app_list/views/apps_grid_view.cc File ui/app_list/views/apps_grid_view.cc (right): https://codereview.chromium.org/19382003/diff/4001/ui/app_list/views/apps_grid_view.cc#newcode910 ui/app_list/views/apps_grid_view.cc:910: current_page = drag_start_page_; On 2013/07/19 04:03:57, koz wrote: > ...
7 years, 5 months ago (2013-07-19 04:36:46 UTC) #7
koz (OOO until 15th September)
https://codereview.chromium.org/19382003/diff/4001/ui/app_list/views/apps_grid_view.cc File ui/app_list/views/apps_grid_view.cc (right): https://codereview.chromium.org/19382003/diff/4001/ui/app_list/views/apps_grid_view.cc#newcode910 ui/app_list/views/apps_grid_view.cc:910: current_page = drag_start_page_; On 2013/07/19 04:36:46, xiyuan wrote: > ...
7 years, 5 months ago (2013-07-19 08:00:32 UTC) #8
xiyuan
LGTM https://codereview.chromium.org/19382003/diff/18001/ui/app_list/views/apps_grid_view.cc File ui/app_list/views/apps_grid_view.cc (right): https://codereview.chromium.org/19382003/diff/18001/ui/app_list/views/apps_grid_view.cc#newcode1082 ui/app_list/views/apps_grid_view.cc:1082: rect.set_y(rect.y() - kDragBufferPx); nit: think we can replace ...
7 years, 5 months ago (2013-07-19 16:24:04 UTC) #9
koz (OOO until 15th September)
Thanks, Xiyuan! https://codereview.chromium.org/19382003/diff/18001/ui/app_list/views/apps_grid_view.cc File ui/app_list/views/apps_grid_view.cc (right): https://codereview.chromium.org/19382003/diff/18001/ui/app_list/views/apps_grid_view.cc#newcode1082 ui/app_list/views/apps_grid_view.cc:1082: rect.set_y(rect.y() - kDragBufferPx); On 2013/07/19 16:24:04, xiyuan ...
7 years, 5 months ago (2013-07-22 00:26:14 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/koz@chromium.org/19382003/24001
7 years, 5 months ago (2013-07-22 00:26:29 UTC) #11
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 5 months ago (2013-07-22 01:04:54 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/koz@chromium.org/19382003/45001
7 years, 5 months ago (2013-07-22 06:31:13 UTC) #13
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 5 months ago (2013-07-22 06:55:32 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/koz@chromium.org/19382003/62001
7 years, 5 months ago (2013-07-23 00:49:16 UTC) #15
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) sync_integration_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=150878
7 years, 5 months ago (2013-07-23 02:35:17 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/koz@chromium.org/19382003/62001
7 years, 5 months ago (2013-07-23 02:47:58 UTC) #17
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) sync_integration_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=150927
7 years, 5 months ago (2013-07-23 03:34:16 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/koz@chromium.org/19382003/62001
7 years, 5 months ago (2013-07-23 03:48:05 UTC) #19
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) sync_integration_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=150964
7 years, 5 months ago (2013-07-23 04:28:51 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/koz@chromium.org/19382003/62001
7 years, 5 months ago (2013-07-23 05:58:43 UTC) #21
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) sync_integration_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=151041
7 years, 5 months ago (2013-07-23 06:40:21 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/koz@chromium.org/19382003/62001
7 years, 5 months ago (2013-07-24 03:07:24 UTC) #23
commit-bot: I haz the power
7 years, 5 months ago (2013-07-24 04:45:20 UTC) #24
Message was sent while issue was closed.
Change committed as 213339

Powered by Google App Engine
This is Rietveld 408576698