| OLD | NEW |
| 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_RENDERER_CONTEXT_MENU_RENDER_VIEW_CONTEXT_MENU_OBSERVER_H
_ |
| 6 #define CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_OBSERVER_H_ | 6 #define CHROME_BROWSER_RENDERER_CONTEXT_MENU_RENDER_VIEW_CONTEXT_MENU_OBSERVER_H
_ |
| 7 | 7 |
| 8 namespace content { | 8 namespace content { |
| 9 struct ContextMenuParams; | 9 struct ContextMenuParams; |
| 10 } | 10 } |
| 11 | 11 |
| 12 // The interface used for implementing context-menu items. The following | 12 // The interface used for implementing context-menu items. The following |
| 13 // instruction describe how to implement a context-menu item with this | 13 // instruction describe how to implement a context-menu item with this |
| 14 // interface. | 14 // interface. |
| 15 // | 15 // |
| 16 // 1. Add command IDs for the context-menu items to 'chrome_command_ids.h'. | 16 // 1. Add command IDs for the context-menu items to 'chrome_command_ids.h'. |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 virtual bool IsCommandIdChecked(int command_id); | 97 virtual bool IsCommandIdChecked(int command_id); |
| 98 virtual bool IsCommandIdEnabled(int command_id); | 98 virtual bool IsCommandIdEnabled(int command_id); |
| 99 | 99 |
| 100 // Called when a user selects the specified context-menu item. | 100 // Called when a user selects the specified context-menu item. |
| 101 virtual void ExecuteCommand(int command_id); | 101 virtual void ExecuteCommand(int command_id); |
| 102 | 102 |
| 103 // Called when a user closes the context menu without selecting any items. | 103 // Called when a user closes the context menu without selecting any items. |
| 104 virtual void OnMenuCancel(); | 104 virtual void OnMenuCancel(); |
| 105 }; | 105 }; |
| 106 | 106 |
| 107 #endif // CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_OBSERVER_H_ | 107 #endif // CHROME_BROWSER_RENDERER_CONTEXT_MENU_RENDER_VIEW_CONTEXT_MENU_OBSERVE
R_H_ |
| OLD | NEW |