| 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 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 static bool ExtensionContextAndPatternMatch( | 197 static bool ExtensionContextAndPatternMatch( |
| 198 const content::ContextMenuParams& params, | 198 const content::ContextMenuParams& params, |
| 199 extensions::MenuItem::ContextList contexts, | 199 extensions::MenuItem::ContextList contexts, |
| 200 const extensions::URLPatternSet& target_url_patterns); | 200 const extensions::URLPatternSet& target_url_patterns); |
| 201 static bool MenuItemMatchesParams( | 201 static bool MenuItemMatchesParams( |
| 202 const content::ContextMenuParams& params, | 202 const content::ContextMenuParams& params, |
| 203 const extensions::MenuItem* item); | 203 const extensions::MenuItem* item); |
| 204 | 204 |
| 205 // Gets the extension (if any) associated with the WebContents that we're in. | 205 // Gets the extension (if any) associated with the WebContents that we're in. |
| 206 const extensions::Extension* GetExtension() const; | 206 const extensions::Extension* GetExtension() const; |
| 207 void AppendAppModeItems(); |
| 207 void AppendPlatformAppItems(); | 208 void AppendPlatformAppItems(); |
| 208 void AppendPopupExtensionItems(); | 209 void AppendPopupExtensionItems(); |
| 209 void AppendPanelItems(); | 210 void AppendPanelItems(); |
| 210 bool AppendCustomItems(); | 211 bool AppendCustomItems(); |
| 211 void AppendDeveloperItems(); | 212 void AppendDeveloperItems(); |
| 212 void AppendLinkItems(); | 213 void AppendLinkItems(); |
| 213 void AppendImageItems(); | 214 void AppendImageItems(); |
| 214 void AppendAudioItems(); | 215 void AppendAudioItems(); |
| 215 void AppendVideoItems(); | 216 void AppendVideoItems(); |
| 216 void AppendMediaItems(); | 217 void AppendMediaItems(); |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 276 // An observer that disables menu items when print preview is active. | 277 // An observer that disables menu items when print preview is active. |
| 277 scoped_ptr<PrintPreviewContextMenuObserver> print_preview_menu_observer_; | 278 scoped_ptr<PrintPreviewContextMenuObserver> print_preview_menu_observer_; |
| 278 | 279 |
| 279 // Our observers. | 280 // Our observers. |
| 280 mutable ObserverList<RenderViewContextMenuObserver> observers_; | 281 mutable ObserverList<RenderViewContextMenuObserver> observers_; |
| 281 | 282 |
| 282 DISALLOW_COPY_AND_ASSIGN(RenderViewContextMenu); | 283 DISALLOW_COPY_AND_ASSIGN(RenderViewContextMenu); |
| 283 }; | 284 }; |
| 284 | 285 |
| 285 #endif // CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_H_ | 286 #endif // CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_H_ |
| OLD | NEW |