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

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: Removed header include 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..e50b7215bf9d1029abcc2ca3eb050acaed4ba064 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
« 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