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 81b453ae0ef01718ae26b5df071bc8708a011178..562080d3aedb9dbe6a6a0c1dc2666b5c31a53278 100644 |
--- a/content/browser/android/content_view_core_impl.cc |
+++ b/content/browser/android/content_view_core_impl.cc |
@@ -1209,6 +1209,17 @@ void ContentViewCoreImpl::OnShowUnhandledTapUIIfNeeded(int x_dip, int y_dip) { |
static_cast<jint>(y_dip * dpi_scale())); |
} |
+void ContentViewCoreImpl::OnSelectWordAroundCaretAck(bool did_select, |
+ int start_adjust, |
+ int end_adjust) { |
+ JNIEnv* env = AttachCurrentThread(); |
+ ScopedJavaLocalRef<jobject> obj = java_ref_.get(env); |
+ if (obj.is_null()) |
+ return; |
+ Java_ContentViewCore_onSelectWordAroundCaretAck(env, obj, did_select, |
+ start_adjust, end_adjust); |
+} |
+ |
void ContentViewCoreImpl::HidePopupsAndPreserveSelection() { |
JNIEnv* env = AttachCurrentThread(); |
ScopedJavaLocalRef<jobject> obj = java_ref_.get(env); |