| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |