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

Side by Side Diff: chrome/browser/ui/cocoa/extensions/extension_action_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_UI_COCOA_EXTENSIONS_EXTENSION_ACTION_CONTEXT_MENU_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_EXTENSIONS_EXTENSION_ACTION_CONTEXT_MENU_H_
6 #define CHROME_BROWSER_UI_COCOA_EXTENSIONS_EXTENSION_ACTION_CONTEXT_MENU_H_ 6 #define CHROME_BROWSER_UI_COCOA_EXTENSIONS_EXTENSION_ACTION_CONTEXT_MENU_H_
7 #pragma once 7 #pragma once
8 8
9 #import <Cocoa/Cocoa.h> 9 #import <Cocoa/Cocoa.h>
10 10
11 #include "base/memory/scoped_nsobject.h" 11 #include "base/memory/scoped_nsobject.h"
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 13
14 class AsyncUninstaller; 14 class AsyncUninstaller;
15 class Extension;
16 class ExtensionAction; 15 class ExtensionAction;
17 class Profile; 16 class Profile;
18 17
18 namespace extensions {
19 class Extension;
20 }
21
19 namespace extension_action_context_menu { 22 namespace extension_action_context_menu {
20 23
21 } // namespace extension_action_context_menu 24 } // namespace extension_action_context_menu
22 25
23 // A context menu used by any extension UI components that require it. 26 // A context menu used by any extension UI components that require it.
24 @interface ExtensionActionContextMenu : NSMenu { 27 @interface ExtensionActionContextMenu : NSMenu {
25 @private 28 @private
26 // The extension that this menu belongs to. Weak. 29 // The extension that this menu belongs to. Weak.
27 const Extension* extension_; 30 const extensions::Extension* extension_;
28 31
29 // The extension action this menu belongs to. Weak. 32 // The extension action this menu belongs to. Weak.
30 ExtensionAction* action_; 33 ExtensionAction* action_;
31 34
32 // The browser profile of the window that contains this extension. Weak. 35 // The browser profile of the window that contains this extension. Weak.
33 Profile* profile_; 36 Profile* profile_;
34 37
35 // Used to load the extension icon asynchronously on the I/O thread then show 38 // Used to load the extension icon asynchronously on the I/O thread then show
36 // the uninstall confirmation dialog. 39 // the uninstall confirmation dialog.
37 scoped_ptr<AsyncUninstaller> uninstaller_; 40 scoped_ptr<AsyncUninstaller> uninstaller_;
38 } 41 }
39 42
40 // Initializes and returns a context menu for the given extension and profile. 43 // Initializes and returns a context menu for the given extension and profile.
41 - (id)initWithExtension:(const Extension*)extension 44 - (id)initWithExtension:(const extensions::Extension*)extension
42 profile:(Profile*)profile 45 profile:(Profile*)profile
43 extensionAction:(ExtensionAction*)action; 46 extensionAction:(ExtensionAction*)action;
44 47
45 @end 48 @end
46 49
47 typedef ExtensionActionContextMenu ExtensionActionContextMenuMac; 50 typedef ExtensionActionContextMenu ExtensionActionContextMenuMac;
48 51
49 #endif // CHROME_BROWSER_UI_COCOA_EXTENSIONS_EXTENSION_ACTION_CONTEXT_MENU_H_ 52 #endif // CHROME_BROWSER_UI_COCOA_EXTENSIONS_EXTENSION_ACTION_CONTEXT_MENU_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698