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

Side by Side Diff: chrome/browser/tab_contents/render_view_context_menu_observer.h

Issue 8363042: Refactor the "spell-checker options" submenu. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_OBSERVER_H_ 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_OBSERVER_H_
6 #define CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_OBSERVER_H_ 6 #define CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_OBSERVER_H_
7 #pragma once 7 #pragma once
8 8
9 struct ContextMenuParams; 9 struct ContextMenuParams;
10 10
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 virtual void InitMenu(const ContextMenuParams& params); 86 virtual void InitMenu(const ContextMenuParams& params);
87 87
88 // Called when the RenderViewContextMenu class asks whether an observer 88 // Called when the RenderViewContextMenu class asks whether an observer
89 // listens for the specified command ID. If this function returns true, the 89 // listens for the specified command ID. If this function returns true, the
90 // RenderViewContextMenu class calls IsCommandIdEnabled() or ExecuteCommand(). 90 // RenderViewContextMenu class calls IsCommandIdEnabled() or ExecuteCommand().
91 virtual bool IsCommandIdSupported(int command_id); 91 virtual bool IsCommandIdSupported(int command_id);
92 92
93 // Called when the RenderViewContextMenu class sets the initial status of the 93 // Called when the RenderViewContextMenu class sets the initial status of the
94 // specified context-menu item. If we need to enable or disable a context-menu 94 // specified context-menu item. If we need to enable or disable a context-menu
95 // item while showing, use RenderViewContextMenuDelegate::UpdateMenuItem(). 95 // item while showing, use RenderViewContextMenuDelegate::UpdateMenuItem().
96 virtual bool IsCommandIdChecked(int command_id);
96 virtual bool IsCommandIdEnabled(int command_id); 97 virtual bool IsCommandIdEnabled(int command_id);
97 98
98 // Called when a user selects the specified context-menu item. 99 // Called when a user selects the specified context-menu item.
99 virtual void ExecuteCommand(int command_id); 100 virtual void ExecuteCommand(int command_id);
100 }; 101 };
101 102
102 #endif // CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_OBSERVER_H_ 103 #endif // CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698