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

Unified Diff: android_webview/native/aw_web_contents_view_delegate.cc

Issue 23449027: Stop sending long press events twice (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: And more Created 7 years, 3 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
« no previous file with comments | « android_webview/native/aw_contents.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/native/aw_web_contents_view_delegate.cc
diff --git a/android_webview/native/aw_web_contents_view_delegate.cc b/android_webview/native/aw_web_contents_view_delegate.cc
index daaca0d2348508e3b191918cc5b687a4ef8621d8..22baeb3ea175892b97caf93d62cfd33b70440daf 100644
--- a/android_webview/native/aw_web_contents_view_delegate.cc
+++ b/android_webview/native/aw_web_contents_view_delegate.cc
@@ -47,19 +47,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
« no previous file with comments | « android_webview/native/aw_contents.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698