| 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 platform app (if any) associated with the TabContents that we're | 198 // Gets the extension (if any) associated with the TabContents that we're in. |
| 199 // in. | 199 const Extension* GetExtension() const; |
| 200 const Extension* GetPlatformApp() const; | 200 void AppendPlatformAppItems(const Extension* platform_app); |
| 201 void AppendPlatformAppItems(); | |
| 202 bool AppendCustomItems(); | 201 bool AppendCustomItems(); |
| 203 void AppendDeveloperItems(); | 202 void AppendDeveloperItems(); |
| 204 void AppendLinkItems(); | 203 void AppendLinkItems(); |
| 205 void AppendImageItems(); | 204 void AppendImageItems(); |
| 206 void AppendAudioItems(); | 205 void AppendAudioItems(); |
| 207 void AppendVideoItems(); | 206 void AppendVideoItems(); |
| 208 void AppendMediaItems(); | 207 void AppendMediaItems(); |
| 209 void AppendPluginItems(); | 208 void AppendPluginItems(); |
| 210 void AppendPageItems(); | 209 void AppendPageItems(); |
| 211 void AppendFrameItems(); | 210 void AppendFrameItems(); |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 283 // An observer that disables menu items when print preview is active. | 282 // An observer that disables menu items when print preview is active. |
| 284 scoped_ptr<PrintPreviewContextMenuObserver> print_preview_menu_observer_; | 283 scoped_ptr<PrintPreviewContextMenuObserver> print_preview_menu_observer_; |
| 285 | 284 |
| 286 // Our observers. | 285 // Our observers. |
| 287 mutable ObserverList<RenderViewContextMenuObserver> observers_; | 286 mutable ObserverList<RenderViewContextMenuObserver> observers_; |
| 288 | 287 |
| 289 DISALLOW_COPY_AND_ASSIGN(RenderViewContextMenu); | 288 DISALLOW_COPY_AND_ASSIGN(RenderViewContextMenu); |
| 290 }; | 289 }; |
| 291 | 290 |
| 292 #endif // CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_H_ | 291 #endif // CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_H_ |
| OLD | NEW |