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

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

Issue 10917102: Context menus should appear above the touch point if invoked by long press. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: patch Created 8 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
Index: content/browser/web_contents/web_contents_impl.cc
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc
index f568f5a8ffeeaf320308ee0627b6cb381a8a0a30..094dcaa62438020ef98e9be643213335de391073 100644
--- a/content/browser/web_contents/web_contents_impl.cc
+++ b/content/browser/web_contents/web_contents_impl.cc
@@ -1425,12 +1425,13 @@ RenderWidgetHostView* WebContentsImpl::GetCreatedWidget(int route_id) {
}
void WebContentsImpl::ShowContextMenu(
- const content::ContextMenuParams& params) {
+ const content::ContextMenuParams& params,
+ const content::ContextMenuSourceType& type) {
// Allow WebContentsDelegates to handle the context menu operation first.
if (delegate_ && delegate_->HandleContextMenu(params))
return;
- render_view_host_delegate_view_->ShowContextMenu(params);
+ render_view_host_delegate_view_->ShowContextMenu(params, type);
}
void WebContentsImpl::RequestMediaAccessPermission(

Powered by Google App Engine
This is Rietveld 408576698