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 4b6a7b16b27be88a8b7fbb25baa82ef6ea940c3a..b25a40532b5adb55518aac892c0f2ca2e276fcf9 100644 |
--- a/content/browser/android/content_view_core_impl.cc |
+++ b/content/browser/android/content_view_core_impl.cc |
@@ -1646,14 +1646,16 @@ bool ContentViewCoreImpl::WillHandleDeferAfterResponseStarted() { |
} |
void ContentViewCoreImpl::OnSmartClipDataExtracted( |
+ const gfx::Rect& clip_rect, |
const base::string16& result) { |
JNIEnv* env = AttachCurrentThread(); |
ScopedJavaLocalRef<jobject> obj = java_ref_.get(env); |
if (obj.is_null()) |
return; |
+ ScopedJavaLocalRef<jobject> clip_rect_object(CreateJavaRect(env, clip_rect)); |
ScopedJavaLocalRef<jstring> jresult = ConvertUTF16ToJavaString(env, result); |
Java_ContentViewCore_onSmartClipDataExtracted( |
- env, obj.obj(), jresult.obj()); |
+ env, obj.obj(), jresult.obj(), clip_rect_object.obj()); |
} |
void ContentViewCoreImpl::WebContentsDestroyed() { |