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

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

Issue 178193005: Move render_view_context_menu.* related files out of tab_contents. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: context_menu->renderer_context_menu for disambiguation Created 6 years, 9 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 unified diff | Download patch
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_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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698