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

Unified Diff: content/browser/web_contents/web_contents_view_mac.mm

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_view_mac.mm
diff --git a/content/browser/web_contents/web_contents_view_mac.mm b/content/browser/web_contents/web_contents_view_mac.mm
index 7c2a0e9bb8a620ae1a3301a2c07da94011e378d7..9240d9271dd014eb96114222f48e7cdb6070d40a 100644
--- a/content/browser/web_contents/web_contents_view_mac.mm
+++ b/content/browser/web_contents/web_contents_view_mac.mm
@@ -281,7 +281,8 @@ void WebContentsViewMac::TakeFocus(bool reverse) {
}
void WebContentsViewMac::ShowContextMenu(
- const content::ContextMenuParams& params) {
+ const content::ContextMenuParams& params,
+ const content::ContextMenuSourceType& type) {
// Allow delegates to handle the context menu operation first.
if (web_contents_->GetDelegate() &&
web_contents_->GetDelegate()->HandleContextMenu(params)) {
@@ -289,7 +290,7 @@ void WebContentsViewMac::ShowContextMenu(
}
if (delegate())
- delegate()->ShowContextMenu(params);
+ delegate()->ShowContextMenu(params, type);
else
DLOG(ERROR) << "Cannot show context menus without a delegate.";
}

Powered by Google App Engine
This is Rietveld 408576698