OLD | NEW |
1 // Copyright (c) 2011 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> |
11 #include <vector> | 11 #include <vector> |
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
186 static bool IsInternalResourcesURL(const GURL& url); | 186 static bool IsInternalResourcesURL(const GURL& url); |
187 static bool ExtensionContextAndPatternMatch( | 187 static bool ExtensionContextAndPatternMatch( |
188 const ContextMenuParams& params, | 188 const ContextMenuParams& params, |
189 ExtensionMenuItem::ContextList contexts, | 189 ExtensionMenuItem::ContextList contexts, |
190 const URLPatternSet& target_url_patterns); | 190 const URLPatternSet& target_url_patterns); |
191 static ExtensionMenuItem::List GetRelevantExtensionItems( | 191 static ExtensionMenuItem::List GetRelevantExtensionItems( |
192 const ExtensionMenuItem::List& items, | 192 const ExtensionMenuItem::List& items, |
193 const ContextMenuParams& params, | 193 const ContextMenuParams& params, |
194 Profile* profile, | 194 Profile* profile, |
195 bool can_cross_incognito); | 195 bool can_cross_incognito); |
| 196 |
| 197 // Gets the platform app (if any) associated with the TabContents that we're |
| 198 // in. |
| 199 const Extension* GetPlatformApp() const; |
| 200 void AppendPlatformAppItems(); |
196 bool AppendCustomItems(); | 201 bool AppendCustomItems(); |
197 void AppendDeveloperItems(); | 202 void AppendDeveloperItems(); |
198 void AppendLinkItems(); | 203 void AppendLinkItems(); |
199 void AppendImageItems(); | 204 void AppendImageItems(); |
200 void AppendAudioItems(); | 205 void AppendAudioItems(); |
201 void AppendVideoItems(); | 206 void AppendVideoItems(); |
202 void AppendMediaItems(); | 207 void AppendMediaItems(); |
203 void AppendPluginItems(); | 208 void AppendPluginItems(); |
204 void AppendPageItems(); | 209 void AppendPageItems(); |
205 void AppendFrameItems(); | 210 void AppendFrameItems(); |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
275 // An observer that disables menu items when print preview is active. | 280 // An observer that disables menu items when print preview is active. |
276 scoped_ptr<PrintPreviewContextMenuObserver> print_preview_menu_observer_; | 281 scoped_ptr<PrintPreviewContextMenuObserver> print_preview_menu_observer_; |
277 | 282 |
278 // Our observers. | 283 // Our observers. |
279 mutable ObserverList<RenderViewContextMenuObserver> observers_; | 284 mutable ObserverList<RenderViewContextMenuObserver> observers_; |
280 | 285 |
281 DISALLOW_COPY_AND_ASSIGN(RenderViewContextMenu); | 286 DISALLOW_COPY_AND_ASSIGN(RenderViewContextMenu); |
282 }; | 287 }; |
283 | 288 |
284 #endif // CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_H_ | 289 #endif // CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_H_ |
OLD | NEW |