OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_H_ | 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_H_ |
6 #define CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_H_ | 6 #define CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 void AppendBidiSubMenu(); | 96 void AppendBidiSubMenu(); |
97 | 97 |
98 // This is a helper function to append items for one particular extension. | 98 // This is a helper function to append items for one particular extension. |
99 // The |index| parameter is used for assigning id's, and is incremented for | 99 // The |index| parameter is used for assigning id's, and is incremented for |
100 // each item actually added. | 100 // each item actually added. |
101 void AppendExtensionItems(const std::string& extension_id, int* index); | 101 void AppendExtensionItems(const std::string& extension_id, int* index); |
102 | 102 |
103 // Used for recursively adding submenus of extension items. | 103 // Used for recursively adding submenus of extension items. |
104 void RecursivelyAppendExtensionItems( | 104 void RecursivelyAppendExtensionItems( |
105 const std::vector<ExtensionMenuItem*>& items, | 105 const std::vector<ExtensionMenuItem*>& items, |
| 106 bool can_cross_incognito, |
106 menus::SimpleMenuModel* menu_model, | 107 menus::SimpleMenuModel* menu_model, |
107 int *index); | 108 int *index); |
108 // This will set the icon on the most recently-added item in the menu_model_. | 109 // This will set the icon on the most recently-added item in the menu_model_. |
109 void SetExtensionIcon(const std::string& extension_id); | 110 void SetExtensionIcon(const std::string& extension_id); |
110 | 111 |
111 // Opens the specified URL string in a new tab. If |in_current_window| is | 112 // Opens the specified URL string in a new tab. If |in_current_window| is |
112 // false, a new window is created to hold the new tab. | 113 // false, a new window is created to hold the new tab. |
113 void OpenURL(const GURL& url, | 114 void OpenURL(const GURL& url, |
114 WindowOpenDisposition disposition, | 115 WindowOpenDisposition disposition, |
115 PageTransition::Type transition); | 116 PageTransition::Type transition); |
(...skipping 21 matching lines...) Expand all Loading... |
137 GURL selection_navigation_url_; | 138 GURL selection_navigation_url_; |
138 | 139 |
139 menus::SimpleMenuModel spellcheck_submenu_model_; | 140 menus::SimpleMenuModel spellcheck_submenu_model_; |
140 menus::SimpleMenuModel bidi_submenu_model_; | 141 menus::SimpleMenuModel bidi_submenu_model_; |
141 ScopedVector<menus::SimpleMenuModel> extension_menu_models_; | 142 ScopedVector<menus::SimpleMenuModel> extension_menu_models_; |
142 | 143 |
143 DISALLOW_COPY_AND_ASSIGN(RenderViewContextMenu); | 144 DISALLOW_COPY_AND_ASSIGN(RenderViewContextMenu); |
144 }; | 145 }; |
145 | 146 |
146 #endif // CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_H_ | 147 #endif // CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_H_ |
OLD | NEW |