Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(179)

Side by Side Diff: chrome/browser/tab_contents/render_view_context_menu.h

Issue 10375021: Move Extension into extensions namespace (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Take 6 Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 15 matching lines...) Expand all
26 class PrintPreviewContextMenuObserver; 26 class PrintPreviewContextMenuObserver;
27 class Profile; 27 class Profile;
28 class SpellingMenuObserver; 28 class SpellingMenuObserver;
29 class SpellCheckerSubMenuObserver; 29 class SpellCheckerSubMenuObserver;
30 30
31 namespace content { 31 namespace content {
32 class RenderViewHost; 32 class RenderViewHost;
33 class WebContents; 33 class WebContents;
34 } 34 }
35 35
36 namespace extensions {
37 class Extension;
38 }
39
36 namespace gfx { 40 namespace gfx {
37 class Point; 41 class Point;
38 } 42 }
39 43
40 namespace WebKit { 44 namespace WebKit {
41 struct WebMediaPlayerAction; 45 struct WebMediaPlayerAction;
42 struct WebPluginAction; 46 struct WebPluginAction;
43 } 47 }
44 48
45 // An interface that controls a RenderViewContextMenu instance from observers. 49 // An interface that controls a RenderViewContextMenu instance from observers.
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 const content::ContextMenuParams& params, 201 const content::ContextMenuParams& params,
198 ExtensionMenuItem::ContextList contexts, 202 ExtensionMenuItem::ContextList contexts,
199 const URLPatternSet& target_url_patterns); 203 const URLPatternSet& target_url_patterns);
200 static ExtensionMenuItem::List GetRelevantExtensionItems( 204 static ExtensionMenuItem::List GetRelevantExtensionItems(
201 const ExtensionMenuItem::List& items, 205 const ExtensionMenuItem::List& items,
202 const content::ContextMenuParams& params, 206 const content::ContextMenuParams& params,
203 Profile* profile, 207 Profile* profile,
204 bool can_cross_incognito); 208 bool can_cross_incognito);
205 209
206 // Gets the extension (if any) associated with the WebContents that we're in. 210 // Gets the extension (if any) associated with the WebContents that we're in.
207 const Extension* GetExtension() const; 211 const extensions::Extension* GetExtension() const;
208 void AppendPlatformAppItems(); 212 void AppendPlatformAppItems();
209 void AppendPopupExtensionItems(); 213 void AppendPopupExtensionItems();
210 bool AppendCustomItems(); 214 bool AppendCustomItems();
211 void AppendDeveloperItems(); 215 void AppendDeveloperItems();
212 void AppendLinkItems(); 216 void AppendLinkItems();
213 void AppendImageItems(); 217 void AppendImageItems();
214 void AppendAudioItems(); 218 void AppendAudioItems();
215 void AppendVideoItems(); 219 void AppendVideoItems();
216 void AppendMediaItems(); 220 void AppendMediaItems();
217 void AppendPluginItems(); 221 void AppendPluginItems();
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 // An observer that disables menu items when print preview is active. 296 // An observer that disables menu items when print preview is active.
293 scoped_ptr<PrintPreviewContextMenuObserver> print_preview_menu_observer_; 297 scoped_ptr<PrintPreviewContextMenuObserver> print_preview_menu_observer_;
294 298
295 // Our observers. 299 // Our observers.
296 mutable ObserverList<RenderViewContextMenuObserver> observers_; 300 mutable ObserverList<RenderViewContextMenuObserver> observers_;
297 301
298 DISALLOW_COPY_AND_ASSIGN(RenderViewContextMenu); 302 DISALLOW_COPY_AND_ASSIGN(RenderViewContextMenu);
299 }; 303 };
300 304
301 #endif // CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_H_ 305 #endif // CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync/test/integration/themes_helper.cc ('k') | chrome/browser/tab_contents/render_view_context_menu.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698