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

Unified Diff: content/public/browser/web_contents_view_delegate.h

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/public/browser/web_contents_view_delegate.h
diff --git a/content/public/browser/web_contents_view_delegate.h b/content/public/browser/web_contents_view_delegate.h
index 0e61017b6b97d221c31ad3c4e9b04e955d17ad3b..5a283d3344f18ac375784a5db41e2cef5e1e96a8 100644
--- a/content/public/browser/web_contents_view_delegate.h
+++ b/content/public/browser/web_contents_view_delegate.h
@@ -12,6 +12,7 @@
#endif
#include "content/common/content_export.h"
+#include "content/public/common/context_menu_source_type.h"
#include "ui/gfx/native_widget_types.h"
#if defined(OS_MACOSX)
@@ -42,7 +43,9 @@ class CONTENT_EXPORT WebContentsViewDelegate {
virtual WebDragDestDelegate* GetDragDestDelegate() = 0;
// Shows a context menu.
- virtual void ShowContextMenu(const content::ContextMenuParams& params) = 0;
+ virtual void ShowContextMenu(
+ const content::ContextMenuParams& params,
+ const content::ContextMenuSourceType& type) = 0;
jam 2012/09/07 17:07:35 nit: we don't pass enums by const reference, just
#if defined(OS_WIN) || defined(USE_AURA)
// These methods allow the embedder to intercept WebContentsViewWin's

Powered by Google App Engine
This is Rietveld 408576698