Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1613)

Unified Diff: content/browser/web_contents/web_contents_android.cc

Issue 2721813002: Make SelectionPopupController.ShowPastePopup only be triggered by Blink (Closed)
Patch Set: Rebase Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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,

Powered by Google App Engine
This is Rietveld 408576698