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 133cf94055843eb8eab707689b33f4fbc55b9a08..688fdd67f04b2473259d6206f0de25f979984e54 100644 |
--- a/content/browser/android/content_view_core_impl.cc |
+++ b/content/browser/android/content_view_core_impl.cc |
@@ -1058,6 +1058,15 @@ void ContentViewCoreImpl::SendGestureEvent( |
rwhv->SendGestureEvent(event); |
} |
+void ContentViewCoreImpl::SimulateClick(JNIEnv* env, |
+ const JavaParamRef<jobject>& obj) { |
+ RenderFrameHost* focused_frame = web_contents_->GetFocusedFrame(); |
+ if (!focused_frame) |
+ return; |
+ focused_frame->Send( |
+ new FrameMsg_ClickOnFocusedElement(focused_frame->GetRoutingID())); |
+} |
+ |
void ContentViewCoreImpl::ScrollBegin(JNIEnv* env, |
const JavaParamRef<jobject>& obj, |
jlong time_ms, |