OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
188 static bool ExtensionContextAndPatternMatch( | 188 static bool ExtensionContextAndPatternMatch( |
189 const ContextMenuParams& params, | 189 const ContextMenuParams& params, |
190 ExtensionMenuItem::ContextList contexts, | 190 ExtensionMenuItem::ContextList contexts, |
191 const URLPatternSet& target_url_patterns); | 191 const URLPatternSet& target_url_patterns); |
192 static ExtensionMenuItem::List GetRelevantExtensionItems( | 192 static ExtensionMenuItem::List GetRelevantExtensionItems( |
193 const ExtensionMenuItem::List& items, | 193 const ExtensionMenuItem::List& items, |
194 const ContextMenuParams& params, | 194 const ContextMenuParams& params, |
195 Profile* profile, | 195 Profile* profile, |
196 bool can_cross_incognito); | 196 bool can_cross_incognito); |
197 | 197 |
198 // Gets the extension (if any) associated with the TabContents that we're | |
199 // in. | |
not at google - send to devlin
2012/01/23 05:43:51
1 line
benwells
2012/01/23 06:42:23
Done.
| |
200 const Extension* GetExtension() const; | |
198 // Gets the platform app (if any) associated with the TabContents that we're | 201 // Gets the platform app (if any) associated with the TabContents that we're |
199 // in. | 202 // in. |
200 const Extension* GetPlatformApp() const; | 203 const Extension* GetPlatformApp() const; |
not at google - send to devlin
2012/01/23 05:43:51
I reckon we don't need this method at all anymore.
benwells
2012/01/23 06:42:23
Done.
| |
201 void AppendPlatformAppItems(); | 204 void AppendPlatformAppItems(); |
202 bool AppendCustomItems(); | 205 bool AppendCustomItems(); |
203 void AppendDeveloperItems(); | 206 void AppendDeveloperItems(); |
204 void AppendLinkItems(); | 207 void AppendLinkItems(); |
205 void AppendImageItems(); | 208 void AppendImageItems(); |
206 void AppendAudioItems(); | 209 void AppendAudioItems(); |
207 void AppendVideoItems(); | 210 void AppendVideoItems(); |
208 void AppendMediaItems(); | 211 void AppendMediaItems(); |
209 void AppendPluginItems(); | 212 void AppendPluginItems(); |
210 void AppendPageItems(); | 213 void AppendPageItems(); |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
283 // An observer that disables menu items when print preview is active. | 286 // An observer that disables menu items when print preview is active. |
284 scoped_ptr<PrintPreviewContextMenuObserver> print_preview_menu_observer_; | 287 scoped_ptr<PrintPreviewContextMenuObserver> print_preview_menu_observer_; |
285 | 288 |
286 // Our observers. | 289 // Our observers. |
287 mutable ObserverList<RenderViewContextMenuObserver> observers_; | 290 mutable ObserverList<RenderViewContextMenuObserver> observers_; |
288 | 291 |
289 DISALLOW_COPY_AND_ASSIGN(RenderViewContextMenu); | 292 DISALLOW_COPY_AND_ASSIGN(RenderViewContextMenu); |
290 }; | 293 }; |
291 | 294 |
292 #endif // CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_H_ | 295 #endif // CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_H_ |
OLD | NEW |