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

Unified Diff: ui/app_list/views/apps_grid_view.h

Issue 557673002: Split app list drop target into reorder and folder drop targets. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fasdaj
Patch Set: address comments 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
« no previous file with comments | « no previous file | ui/app_list/views/apps_grid_view.cc » ('j') | ui/app_list/views/apps_grid_view.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/app_list/views/apps_grid_view.h
diff --git a/ui/app_list/views/apps_grid_view.h b/ui/app_list/views/apps_grid_view.h
index f509284b54e61b51c504acf79ee89fda1b968f8c..f10758a19a3d00b9d77d893c86129dac714b9dfe 100644
--- a/ui/app_list/views/apps_grid_view.h
+++ b/ui/app_list/views/apps_grid_view.h
@@ -390,9 +390,9 @@ class APP_LIST_EXPORT AppsGridView : public views::View,
// dropped into it.
bool CanDropIntoTarget(const Index& drop_target);
- // Returns the visual index of the nearest tile in which |drag_view_| enters
- // either its re-ordering or folder dropping circle.
- Index GetNearestTileForDragView();
+ // Calculates the visual index of the nearest tile for which |drag_view_|
+ // enters either its re-ordering or folder dropping circle.
+ void CalculateNearestTileForDragView();
// Calculates |nearest_tile| in which |vertex| of the |drag_view| is
// enclosed.
@@ -513,7 +513,14 @@ class APP_LIST_EXPORT AppsGridView : public views::View,
#endif
Pointer drag_pointer_;
- Index drop_target_;
+
+ // The most recent reorder drop target.
+ Index reorder_drop_target_;
+
+ // The most recent folder drop target.
+ Index folder_drop_target_;
+
+ // The current action that ending a drag will perform.
DropAttempt drop_attempt_;
// Timer for re-ordering the |drop_target_| and |drag_view_|.
« no previous file with comments | « no previous file | ui/app_list/views/apps_grid_view.cc » ('j') | ui/app_list/views/apps_grid_view.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698