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

Unified Diff: components/renderer_context_menu/render_view_context_menu_observer.h

Issue 493283002: Fix some comment about non-existant RVContextMenuDelegate. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/renderer_context_menu/render_view_context_menu_observer.h
diff --git a/components/renderer_context_menu/render_view_context_menu_observer.h b/components/renderer_context_menu/render_view_context_menu_observer.h
index 7fbca52dbfad6be60ddb491dab8b15cee3a6233a..d5d24e04f8c3ab7311a060e75ce68099863d9fa8 100644
--- a/components/renderer_context_menu/render_view_context_menu_observer.h
+++ b/components/renderer_context_menu/render_view_context_menu_observer.h
@@ -24,12 +24,12 @@ struct ContextMenuParams;
// </message>
//
// 3. Create a class that implements this interface. (It is a good idea to use
-// the RenderViewContextMenuDelegate interface to avoid accessing the
+// the RenderViewContextMenuProxy interface to avoid accessing the
// RenderViewContextMenu class directly.)
//
// class MyMenuObserver : public RenderViewContextMenuObserver {
// public:
-// MyMenuObserver(RenderViewContextMenuDelegate* d);
+// MyMenuObserver(RenderViewContextMenuProxy* p);
// ~MyMenuObserver();
//
// virtual void InitMenu(const content::ContextMenuParams& params) OVERRIDE;
@@ -38,11 +38,11 @@ struct ContextMenuParams;
// virtual void ExecuteCommand(int command_id) OVERRIDE;
//
// private:
-// RenderViewContextMenuDelgate* delegate_;
+// RenderViewContextMenuProxy* proxy_;
// }
//
// void MyMenuObserver::InitMenu(const content::ContextMenuParams& params) {
-// delegate_->AddMenuItem(IDC_MY_COMMAND,...);
+// proxy_->AddMenuItem(IDC_MY_COMMAND,...);
// }
//
// bool MyMenuObserver::IsCommandIdSupported(int command_id) {
@@ -82,7 +82,7 @@ class RenderViewContextMenuObserver {
virtual ~RenderViewContextMenuObserver() {}
// Called when the RenderViewContextMenu class initializes a context menu. We
- // usually call RenderViewContextMenuDelegate::AddMenuItem() to add menu items
+ // usually call RenderViewContextMenuProxy::AddMenuItem() to add menu items
// in this function.
virtual void InitMenu(const content::ContextMenuParams& params) {}
@@ -93,7 +93,7 @@ class RenderViewContextMenuObserver {
// Called when the RenderViewContextMenu class sets the initial status of the
// specified context-menu item. If we need to enable or disable a context-menu
- // item while showing, use RenderViewContextMenuDelegate::UpdateMenuItem().
+ // item while showing, use RenderViewContextMenuProxy::UpdateMenuItem().
virtual bool IsCommandIdChecked(int command_id);
virtual bool IsCommandIdEnabled(int command_id);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698