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

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

Issue 19382003: Make dragging outside the app list scroll back to its original position. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix compile Created 7 years, 5 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') | no next file with comments »
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 ed570e2dac15e9daa7c7fb93b20ee3e1d80517e8..9c201641f15d6b7e198aba6ada63937f80087028 100644
--- a/ui/app_list/views/apps_grid_view.h
+++ b/ui/app_list/views/apps_grid_view.h
@@ -222,6 +222,10 @@ class APP_LIST_EXPORT AppsGridView : public views::View,
// Cancels any context menus showing for app items on the current page.
void CancelContextMenusOnCurrentPage();
+ // Returnes true if |point| lies within the bounds of this grid view plus a
+ // buffer area surrounding it.
+ bool IsPointWithinDragBuffer(const gfx::Point& point) const;
+
// Overridden from views::ButtonListener:
virtual void ButtonPressed(views::Button* sender,
const ui::Event& event) OVERRIDE;
@@ -273,6 +277,9 @@ class APP_LIST_EXPORT AppsGridView : public views::View,
// The location of |drag_view_| when the drag started.
gfx::Point drag_view_start_;
+ // Page the drag started on.
+ int drag_start_page_;
+
#if defined(OS_WIN) && !defined(USE_AURA)
// Created when a drag is started (ie: drag exceeds the drag threshold), but
// not Run() until supplied with a shortcut path.
« no previous file with comments | « no previous file | ui/app_list/views/apps_grid_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698