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

Unified Diff: ui/app_list/views/apps_grid_view_unittest.cc

Issue 553753003: Rework app list item drag zones. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fasdaj
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« ui/app_list/views/apps_grid_view.cc ('K') | « ui/app_list/views/apps_grid_view.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/app_list/views/apps_grid_view_unittest.cc
diff --git a/ui/app_list/views/apps_grid_view_unittest.cc b/ui/app_list/views/apps_grid_view_unittest.cc
index c6fd60b50d2e303a10d854db12167a69d69d1738..a1a8a880e030e71ca041336ff26940bfd1301981 100644
--- a/ui/app_list/views/apps_grid_view_unittest.cc
+++ b/ui/app_list/views/apps_grid_view_unittest.cc
@@ -427,9 +427,7 @@ TEST_F(AppsGridViewTest, MouseDragItemReorder) {
gfx::Point from = GetItemTileRectAt(0, 1).CenterPoint();
int reorder_offset = (GetItemTileRectAt(0, 1).CenterPoint() -
- GetItemTileRectAt(0, 0).CenterPoint()).Length() -
- kReorderDroppingCircleRadius - kGridIconDimension / 2 +
- 5;
+ GetItemTileRectAt(0, 0).origin()).Length();
gfx::Point to = gfx::Point(from.x() - reorder_offset, from.y());
// Dragging item_1 closing to item_0 should leads to re-ordering these two
« ui/app_list/views/apps_grid_view.cc ('K') | « ui/app_list/views/apps_grid_view.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698