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

Unified Diff: chrome/browser/tab_contents/render_view_context_menu_observer.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_observer.h
===================================================================
--- chrome/browser/tab_contents/render_view_context_menu_observer.h (revision 121660)
+++ chrome/browser/tab_contents/render_view_context_menu_observer.h (working copy)
@@ -6,7 +6,9 @@
#define CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_OBSERVER_H_
#pragma once
+namespace content {
struct ContextMenuParams;
+}
// The interface used for implementing context-menu items. The following
// instruction describe how to implement a context-menu item with this
@@ -31,7 +33,7 @@
// MyMenuObserver(RenderViewContextMenuDelegate* d);
// ~MyMenuObserver();
//
-// virtual void InitMenu(const ContextMenuParams& params) OVERRIDE;
+// virtual void InitMenu(const content::ContextMenuParams& params) OVERRIDE;
// virtual bool IsCommandIdSupported(int command_id) OVERRIDE;
// virtual bool IsCommandIdEnabled(int command_id) OVERRIDE;
// virtual void ExecuteCommand(int command_id) OVERRIDE;
@@ -40,7 +42,7 @@
// RenderViewContextMenuDelgate* delegate_;
// }
//
-// void MyMenuObserver::InitMenu(const ContextMenuParams& params) {
+// void MyMenuObserver::InitMenu(const content::ContextMenuParams& params) {
// delegate_->AddMenuItem(IDC_MY_COMMAND,...);
// }
//
@@ -83,7 +85,7 @@
// Called when the RenderViewContextMenu class initializes a context menu. We
// usually call RenderViewContextMenuDelegate::AddMenuItem() to add menu items
// in this function.
- virtual void InitMenu(const ContextMenuParams& params);
+ virtual void InitMenu(const content::ContextMenuParams& params);
// Called when the RenderViewContextMenu class asks whether an observer
// listens for the specified command ID. If this function returns true, the

Powered by Google App Engine
This is Rietveld 408576698