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

Unified Diff: chrome/browser/ui/views/tabs/tab_drag_controller.h

Issue 10824200: Handful of tweaks for tab dragging with touch: (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix windows Created 8 years, 4 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 | chrome/browser/ui/views/tabs/tab_drag_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/tabs/tab_drag_controller.h
diff --git a/chrome/browser/ui/views/tabs/tab_drag_controller.h b/chrome/browser/ui/views/tabs/tab_drag_controller.h
index 029ef33e54db79bb752e79aa44e5728957fd903b..dd9f68dc2789890ea6ecff5df6290b9bb7c44b8b 100644
--- a/chrome/browser/ui/views/tabs/tab_drag_controller.h
+++ b/chrome/browser/ui/views/tabs/tab_drag_controller.h
@@ -68,6 +68,10 @@ class TabDragController : public content::WebContentsDelegate,
REORDER
};
+ // Amount above or below the tabstrip the user has to drag before detaching.
+ static const int kTouchVerticalDetachMagnetism;
+ static const int kVerticalDetachMagnetism;
+
TabDragController();
virtual ~TabDragController();
@@ -291,9 +295,9 @@ class TabDragController : public content::WebContentsDelegate,
// or isn't compatible.
TabStrip* GetTabStripForWindow(gfx::NativeWindow window);
- // Returns the compatible TabStrip that is under the specified point (screen
+ // Returns the compatible TabStrip to drag to at the specified point (screen
// coordinates), or NULL if there is none.
- TabStrip* GetTabStripForPoint(const gfx::Point& point_in_screen);
+ TabStrip* GetTargetTabStripForPoint(const gfx::Point& point_in_screen);
// Returns true if |tabstrip| contains the specified point in screen
// coordinates.
« no previous file with comments | « no previous file | chrome/browser/ui/views/tabs/tab_drag_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698