summaryrefslogtreecommitdiffstats
path: root/ui/views/controls/textfield/native_textfield_views.cc
diff options
context:
space:
mode:
authorzyaozhujun@chromium.org <zyaozhujun@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-06-20 04:03:09 +0000
committerzyaozhujun@chromium.org <zyaozhujun@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-06-20 04:03:09 +0000
commit4654dc96afcd444bac4c42d808aef3fab3fa0a6f (patch)
tree0d0c9239eba87d5c606567bb61be8388609cc26c /ui/views/controls/textfield/native_textfield_views.cc
parent0421e068fa8cd2c4bb875adf89a98b77e631dfbc (diff)
downloadchromium_src-4654dc96afcd444bac4c42d808aef3fab3fa0a6f.zip
chromium_src-4654dc96afcd444bac4c42d808aef3fab3fa0a6f.tar.gz
chromium_src-4654dc96afcd444bac4c42d808aef3fab3fa0a6f.tar.bz2
Make drag drop work on textfield for long press gesture.
BUG=248291 Review URL: https://chromiumcodereview.appspot.com/17220003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@207317 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/views/controls/textfield/native_textfield_views.cc')
-rw-r--r--ui/views/controls/textfield/native_textfield_views.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/ui/views/controls/textfield/native_textfield_views.cc b/ui/views/controls/textfield/native_textfield_views.cc
index 0e80755..68feb64 100644
--- a/ui/views/controls/textfield/native_textfield_views.cc
+++ b/ui/views/controls/textfield/native_textfield_views.cc
@@ -221,6 +221,7 @@ void NativeTextfieldViews::OnGestureEvent(ui::GestureEvent* event) {
if (touch_selection_controller_.get())
event->SetHandled();
} else if (switches::IsTouchDragDropEnabled()) {
+ initiating_drag_ = true;
touch_selection_controller_.reset();
} else {
if (!touch_selection_controller_.get())