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

Unified Diff: views/view.cc

Issue 467017: Downward drag after mouse-down is now causing bookmark bar folders to open, r... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years 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 | « views/view.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/view.cc
===================================================================
--- views/view.cc (revision 33794)
+++ views/view.cc (working copy)
@@ -487,7 +487,13 @@
const bool possible_drag = drag_info->possible_drag;
if (possible_drag && ExceededDragThreshold(drag_info->start_x - e.x(),
drag_info->start_y - e.y())) {
- DoDrag(e, drag_info->start_x, drag_info->start_y);
+ if (!drag_controller_ ||
+ drag_controller_->CanStartDrag(this,
+ drag_info->start_x,
+ drag_info->start_y,
+ e.x(),
+ e.y()))
+ DoDrag(e, drag_info->start_x, drag_info->start_y);
} else {
if (OnMouseDragged(e))
return true;
« no previous file with comments | « views/view.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698