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

Unified Diff: content/shell/shell_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/shell/shell_web_contents_view_delegate.h
diff --git a/content/shell/shell_web_contents_view_delegate.h b/content/shell/shell_web_contents_view_delegate.h
index 9849aabb2e6ef220428f5612c2f1672bda3887bc..e25ca8eafddb4f56b439377144773b9b351448db 100644
--- a/content/shell/shell_web_contents_view_delegate.h
+++ b/content/shell/shell_web_contents_view_delegate.h
@@ -8,6 +8,7 @@
#include "content/public/browser/web_contents.h"
#include "content/public/browser/web_contents_view_delegate.h"
#include "content/public/common/context_menu_params.h"
+#include "content/public/common/context_menu_source_type.h"
#if defined(TOOLKIT_GTK)
#include "ui/base/gtk/gtk_signal.h"
@@ -22,8 +23,8 @@ class ShellWebContentsViewDelegate : public WebContentsViewDelegate {
virtual ~ShellWebContentsViewDelegate();
// Overridden from WebContentsViewDelegate:
- virtual void ShowContextMenu(
- const ContextMenuParams& params) OVERRIDE;
+ virtual void ShowContextMenu(const ContextMenuParams& params,
+ const ContextMenuSourceType& type) OVERRIDE;
virtual WebDragDestDelegate* GetDragDestDelegate() OVERRIDE;
#if defined(TOOLKIT_GTK)

Powered by Google App Engine
This is Rietveld 408576698