Index: content/browser/android/content_view_core_impl.cc |
diff --git a/content/browser/android/content_view_core_impl.cc b/content/browser/android/content_view_core_impl.cc |
index 30cdd6c86761bc4f485f4d7c5836436321c7e64b..84c55814b078d514811b1c3d1b5a922f8b32c2ef 100644 |
--- a/content/browser/android/content_view_core_impl.cc |
+++ b/content/browser/android/content_view_core_impl.cc |
@@ -62,6 +62,8 @@ |
#include "ui/gfx/size_conversions.h" |
#include "ui/gfx/size_f.h" |
+#include <android/log.h> |
+ |
using base::android::AttachCurrentThread; |
using base::android::ConvertJavaStringToUTF16; |
using base::android::ConvertJavaStringToUTF8; |
@@ -591,9 +593,12 @@ void ContentViewCoreImpl::OnGestureEventAck(const blink::WebGestureEvent& event, |
Java_ContentViewCore_onPinchEndEventAck(env, j_obj.obj()); |
break; |
case WebInputEvent::GestureTap: |
- if (ack_result != INPUT_EVENT_ACK_STATE_CONSUMED) { |
+ /* if (ack_result != INPUT_EVENT_ACK_STATE_CONSUMED)*/ { |
Java_ContentViewCore_onTapEventNotConsumed( |
env, j_obj.obj(), event.x * dpi_scale(), event.y * dpi_scale()); |
+ RenderViewHostImpl* rvhi = static_cast<RenderViewHostImpl*>( |
+ web_contents_->GetRenderViewHost()); |
+ rvhi->SelectForSearch(); |
} |
break; |
case WebInputEvent::GestureDoubleTap: |