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_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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 ui::SimpleMenuModel menu_model_; | 69 ui::SimpleMenuModel menu_model_; |
70 | 70 |
71 // True if we are showing for an external tab contents. The default is false. | 71 // True if we are showing for an external tab contents. The default is false. |
72 bool external_; | 72 bool external_; |
73 | 73 |
74 | 74 |
75 // Maps the id from a context menu item to the ExtensionMenuItem's internal | 75 // Maps the id from a context menu item to the ExtensionMenuItem's internal |
76 // id. | 76 // id. |
77 std::map<int, ExtensionMenuItem::Id> extension_item_map_; | 77 std::map<int, ExtensionMenuItem::Id> extension_item_map_; |
78 | 78 |
| 79 // Maps a command id to an Introducer service's (registrant origin, id). |
| 80 std::map< int, std::pair<std::string,std::string> > introducer_commands_; |
| 81 |
79 private: | 82 private: |
80 static bool IsDevToolsURL(const GURL& url); | 83 static bool IsDevToolsURL(const GURL& url); |
81 static bool IsInternalResourcesURL(const GURL& url); | 84 static bool IsInternalResourcesURL(const GURL& url); |
82 bool AppendCustomItems(); | 85 bool AppendCustomItems(); |
83 void AppendDeveloperItems(); | 86 void AppendDeveloperItems(); |
84 void AppendLinkItems(); | 87 void AppendLinkItems(); |
85 void AppendImageItems(); | 88 void AppendImageItems(); |
86 void AppendAudioItems(); | 89 void AppendAudioItems(); |
87 void AppendVideoItems(); | 90 void AppendVideoItems(); |
88 void AppendMediaItems(); | 91 void AppendMediaItems(); |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 GURL selection_navigation_url_; | 143 GURL selection_navigation_url_; |
141 | 144 |
142 ui::SimpleMenuModel spellcheck_submenu_model_; | 145 ui::SimpleMenuModel spellcheck_submenu_model_; |
143 ui::SimpleMenuModel bidi_submenu_model_; | 146 ui::SimpleMenuModel bidi_submenu_model_; |
144 ScopedVector<ui::SimpleMenuModel> extension_menu_models_; | 147 ScopedVector<ui::SimpleMenuModel> extension_menu_models_; |
145 | 148 |
146 DISALLOW_COPY_AND_ASSIGN(RenderViewContextMenu); | 149 DISALLOW_COPY_AND_ASSIGN(RenderViewContextMenu); |
147 }; | 150 }; |
148 | 151 |
149 #endif // CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_H_ | 152 #endif // CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_H_ |
OLD | NEW |