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

Side by Side Diff: chrome/browser/cocoa/extensions/extension_action_context_menu.h

Issue 2973003: [Mac] Finish up extension infobar UI implementation. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 5 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_COCOA_EXTENSIONS_EXTENSION_ACTION_CONTEXT_MENU_H_ 5 #ifndef CHROME_BROWSER_COCOA_EXTENSIONS_EXTENSION_ACTION_CONTEXT_MENU_H_
6 #define CHROME_BROWSER_COCOA_EXTENSIONS_EXTENSION_ACTION_CONTEXT_MENU_H_ 6 #define CHROME_BROWSER_COCOA_EXTENSIONS_EXTENSION_ACTION_CONTEXT_MENU_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 9
10 #include "base/scoped_ptr.h" 10 #include "base/scoped_ptr.h"
11 #include "base/scoped_nsobject.h" 11 #include "base/scoped_nsobject.h"
12 12
13 class AsyncUninstaller; 13 class AsyncUninstaller;
14 class DevmodeObserver; 14 class DevmodeObserver;
15 class Extension; 15 class Extension;
16 class ExtensionAction; 16 class ExtensionAction;
17 class NotificationRegistrar; 17 class NotificationRegistrar;
18 class Profile; 18 class Profile;
19 19
20 namespace extension_action_context_menu { 20 namespace extension_action_context_menu {
21 21
22 class DevmodeObserver; 22 class DevmodeObserver;
23 23
24 } // namespace extension_action_context_menu 24 } // namespace extension_action_context_menu
25 25
26 // A context menu used by the Browser and Page Action components that appears 26 // A context menu used by any extension UI components that require it.
27 // if a user right-clicks the view of the given extension.
28 @interface ExtensionActionContextMenu : NSMenu { 27 @interface ExtensionActionContextMenu : NSMenu {
29 @private 28 @private
30 // The extension that this menu belongs to. Weak. 29 // The extension that this menu belongs to. Weak.
31 Extension* extension_; 30 Extension* extension_;
32 31
33 // The extension action this menu belongs to. Weak. 32 // The extension action this menu belongs to. Weak.
34 ExtensionAction* action_; 33 ExtensionAction* action_;
35 34
36 // The browser profile of the window that contains this extension. Weak. 35 // The browser profile of the window that contains this extension. Weak.
37 Profile* profile_; 36 Profile* profile_;
(...skipping 15 matching lines...) Expand all
53 extensionAction:(ExtensionAction*)action; 52 extensionAction:(ExtensionAction*)action;
54 53
55 // Show or hide the inspector menu item. 54 // Show or hide the inspector menu item.
56 - (void)updateInspectorItem; 55 - (void)updateInspectorItem;
57 56
58 @end 57 @end
59 58
60 typedef ExtensionActionContextMenu ExtensionActionContextMenuMac; 59 typedef ExtensionActionContextMenu ExtensionActionContextMenuMac;
61 60
62 #endif // CHROME_BROWSER_COCOA_EXTENSIONS_EXTENSION_ACTION_CONTEXT_MENU_H_ 61 #endif // CHROME_BROWSER_COCOA_EXTENSIONS_EXTENSION_ACTION_CONTEXT_MENU_H_
OLDNEW
« no previous file with comments | « chrome/browser/browser_resources.grd ('k') | chrome/browser/cocoa/extensions/extension_action_context_menu.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698