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

Unified Diff: content/browser/renderer_host/render_view_host_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/browser/renderer_host/render_view_host_delegate.h
diff --git a/content/browser/renderer_host/render_view_host_delegate.h b/content/browser/renderer_host/render_view_host_delegate.h
index f2ca8a3e1ba1944d65dc64ed4cc2454367be0a51..0dca75e601de5d99f73f78391a426aaea3987649 100644
--- a/content/browser/renderer_host/render_view_host_delegate.h
+++ b/content/browser/renderer_host/render_view_host_delegate.h
@@ -13,6 +13,7 @@
#include "base/process_util.h"
#include "base/string16.h"
#include "content/common/content_export.h"
+#include "content/public/common/context_menu_source_type.h"
#include "content/public/common/javascript_message_type.h"
#include "content/public/common/media_stream_request.h"
#include "net/base/load_states.h"
@@ -404,7 +405,8 @@ class CONTENT_EXPORT RenderViewHostDelegate {
// A context menu should be shown, to be built using the context information
// provided in the supplied params.
- virtual void ShowContextMenu(const ContextMenuParams& params) {}
+ virtual void ShowContextMenu(const ContextMenuParams& params,
+ const ContextMenuSourceType& type) {}
// The render view has requested access to media devices listed in
// |request|, and the client should grant or deny that permission by

Powered by Google App Engine
This is Rietveld 408576698