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

Unified Diff: chrome/browser/tab_contents/render_view_context_menu.h

Issue 9382037: Move ContextMenuParams struct from webkit/glue to content/public/common. The reasons are: (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix mac Created 8 years, 10 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: chrome/browser/tab_contents/render_view_context_menu.h
===================================================================
--- chrome/browser/tab_contents/render_view_context_menu.h (revision 121660)
+++ chrome/browser/tab_contents/render_view_context_menu.h (working copy)
@@ -17,9 +17,9 @@
#include "chrome/browser/custom_handlers/protocol_handler_registry.h"
#include "chrome/browser/extensions/extension_menu_manager.h"
#include "chrome/browser/tab_contents/render_view_context_menu_observer.h"
+#include "content/public/common/context_menu_params.h"
#include "content/public/common/page_transition_types.h"
#include "ui/base/models/simple_menu_model.h"
-#include "webkit/glue/context_menu.h"
#include "webkit/glue/window_open_disposition.h"
class ExtensionMenuItem;
@@ -122,7 +122,7 @@
static const size_t kMaxSelectionTextLength;
RenderViewContextMenu(content::WebContents* web_contents,
- const ContextMenuParams& params);
+ const content::ContextMenuParams& params);
virtual ~RenderViewContextMenu();
@@ -166,7 +166,7 @@
// Attempts to get an ExtensionMenuItem given the id of a context menu item.
ExtensionMenuItem* GetExtensionMenuItem(int id) const;
- ContextMenuParams params_;
+ content::ContextMenuParams params_;
content::WebContents* source_web_contents_;
Profile* profile_;
@@ -186,12 +186,12 @@
static bool IsDevToolsURL(const GURL& url);
static bool IsInternalResourcesURL(const GURL& url);
static bool ExtensionContextAndPatternMatch(
- const ContextMenuParams& params,
+ const content::ContextMenuParams& params,
ExtensionMenuItem::ContextList contexts,
const URLPatternSet& target_url_patterns);
static ExtensionMenuItem::List GetRelevantExtensionItems(
const ExtensionMenuItem::List& items,
- const ContextMenuParams& params,
+ const content::ContextMenuParams& params,
Profile* profile,
bool can_cross_incognito);

Powered by Google App Engine
This is Rietveld 408576698