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

Unified Diff: android_webview/native/aw_contents.cc

Issue 11471040: [Android WebView] Convert context menu callback to long press (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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: android_webview/native/aw_contents.cc
diff --git a/android_webview/native/aw_contents.cc b/android_webview/native/aw_contents.cc
index adefe820e6281fd0f1c307eb9d1efc624e4bd77b..9b2fa05863c5402e3b53911d3c9a0c25debdf783 100644
--- a/android_webview/native/aw_contents.cc
+++ b/android_webview/native/aw_contents.cc
@@ -300,6 +300,15 @@ void AwContents::RunBeforeUnloadDialog(
env, obj.obj(), jurl.obj(), jmessage.obj(), js_result.obj());
}
+void AwContents::ConvertContextMenuCallbackToLongPress() {
+ JNIEnv* env = AttachCurrentThread();
+ ScopedJavaLocalRef<jobject> obj = java_ref_.get(env);
+ if (obj.is_null())
+ return;
+
+ Java_AwContents_onLongPress(env, obj.obj());
+}
+
void AwContents::onReceivedHttpAuthRequest(
const JavaRef<jobject>& handler,
const std::string& host,
« android_webview/native/aw_contents.h ('K') | « android_webview/native/aw_contents.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698