Index: content/browser/web_contents/web_contents_android.cc |
diff --git a/content/browser/web_contents/web_contents_android.cc b/content/browser/web_contents/web_contents_android.cc |
index c9f073ce8cc72e323f20306defd28dc2a1ecaba9..4b8efbd17deea954cfb49ef374cd327a714d9dbb 100644 |
--- a/content/browser/web_contents/web_contents_android.cc |
+++ b/content/browser/web_contents/web_contents_android.cc |
@@ -41,6 +41,7 @@ |
#include "ui/android/overscroll_refresh_handler.h" |
#include "ui/android/window_android.h" |
#include "ui/gfx/android/java_bitmap.h" |
+#include "ui/gfx/geometry/point.h" |
#include "ui/gfx/geometry/rect.h" |
using base::android::AttachCurrentThread; |
@@ -708,6 +709,16 @@ void WebContentsAndroid::DismissTextHandles( |
view->DismissTextHandles(); |
} |
+void WebContentsAndroid::ShowContextMenuAtPoint( |
+ JNIEnv* env, |
+ const base::android::JavaParamRef<jobject>& obj, |
+ int x, |
+ int y) { |
+ RenderWidgetHostViewAndroid* view = GetRenderWidgetHostViewAndroid(); |
+ if (view) |
+ view->ShowContextMenuAtPoint(gfx::Point(x, y)); |
+} |
+ |
void WebContentsAndroid::SetHasPersistentVideo( |
JNIEnv* env, |
const base::android::JavaParamRef<jobject>& obj, |