summaryrefslogtreecommitdiffstats
path: root/android_webview
diff options
context:
space:
mode:
authorkristianm@chromium.org <kristianm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-09-07 04:09:31 +0000
committerkristianm@chromium.org <kristianm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-09-07 04:09:31 +0000
commit595eec216b1fd3b79435ec3866a9d54c01e3e9c3 (patch)
treeb4c633a79f32db8832e4ccd07f77b12b5d0f165a /android_webview
parent6d3c38a16a2f8842dff116935a8ba3810d4c9646 (diff)
downloadchromium_src-595eec216b1fd3b79435ec3866a9d54c01e3e9c3.zip
chromium_src-595eec216b1fd3b79435ec3866a9d54c01e3e9c3.tar.gz
chromium_src-595eec216b1fd3b79435ec3866a9d54c01e3e9c3.tar.bz2
Stop sending long press events twice
Removing one of the events. BUG=285999 Review URL: https://chromiumcodereview.appspot.com/23449027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@221881 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'android_webview')
-rw-r--r--android_webview/java/src/org/chromium/android_webview/AwContents.java5
-rw-r--r--android_webview/native/aw_contents.cc9
-rw-r--r--android_webview/native/aw_contents.h2
-rw-r--r--android_webview/native/aw_web_contents_view_delegate.cc12
4 files changed, 0 insertions, 28 deletions
diff --git a/android_webview/java/src/org/chromium/android_webview/AwContents.java b/android_webview/java/src/org/chromium/android_webview/AwContents.java
index 5be2743..d54a6101 100644
--- a/android_webview/java/src/org/chromium/android_webview/AwContents.java
+++ b/android_webview/java/src/org/chromium/android_webview/AwContents.java
@@ -1764,11 +1764,6 @@ public class AwContents {
}
@CalledByNative
- private boolean performLongClick() {
- return mContainerView.performLongClick();
- }
-
- @CalledByNative
private int[] getLocationOnScreen() {
int[] result = new int[2];
mContainerView.getLocationOnScreen(result);
diff --git a/android_webview/native/aw_contents.cc b/android_webview/native/aw_contents.cc
index a00c1fe..e920cf8 100644
--- a/android_webview/native/aw_contents.cc
+++ b/android_webview/native/aw_contents.cc
@@ -332,15 +332,6 @@ void AwContents::GenerateMHTML(JNIEnv* env, jobject obj,
base::Bind(&GenerateMHTMLCallback, base::Owned(j_callback), target_path));
}
-void AwContents::PerformLongClick() {
- JNIEnv* env = AttachCurrentThread();
- ScopedJavaLocalRef<jobject> obj = java_ref_.get(env);
- if (obj.is_null())
- return;
-
- Java_AwContents_performLongClick(env, obj.obj());
-}
-
bool AwContents::OnReceivedHttpAuthRequest(const JavaRef<jobject>& handler,
const std::string& host,
const std::string& realm) {
diff --git a/android_webview/native/aw_contents.h b/android_webview/native/aw_contents.h
index bdfb6aa..1c73de9 100644
--- a/android_webview/native/aw_contents.h
+++ b/android_webview/native/aw_contents.h
@@ -64,8 +64,6 @@ class AwContents : public FindHelper::Listener,
return render_view_host_ext_.get();
}
- void PerformLongClick();
-
// |handler| is an instance of
// org.chromium.android_webview.AwHttpAuthHandler.
bool OnReceivedHttpAuthRequest(const base::android::JavaRef<jobject>& handler,
diff --git a/android_webview/native/aw_web_contents_view_delegate.cc b/android_webview/native/aw_web_contents_view_delegate.cc
index daaca0d..e50b721 100644
--- a/android_webview/native/aw_web_contents_view_delegate.cc
+++ b/android_webview/native/aw_web_contents_view_delegate.cc
@@ -4,7 +4,6 @@
#include "android_webview/native/aw_web_contents_view_delegate.h"
-#include "android_webview/native/aw_contents.h"
#include "content/public/browser/android/content_view_core.h"
#include "content/public/browser/web_contents.h"
#include "content/public/browser/web_contents_view.h"
@@ -47,19 +46,8 @@ void AwWebContentsViewDelegate::ShowContextMenu(
if (content_view_core) {
content_view_core->ShowPastePopup(params.selection_start.x(),
params.selection_start.y());
- return;
}
}
-
- AwContents* aw_contents = AwContents::FromWebContents(web_contents_);
- if (!aw_contents)
- return;
-
- // Context menu callback in Chromium is triggered by WebKit on an
- // unhandled GestureLongPress event. Convert the context menu callback
- // back into a long click event for Android WebView since the view
- // system may choose to handle the gesture.
- aw_contents->PerformLongClick();
}
} // namespace android_webview