diff options
author | feldstein@chromium.org <feldstein@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-01 18:29:29 +0000 |
---|---|---|
committer | feldstein@chromium.org <feldstein@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-01 18:29:29 +0000 |
commit | 2c7f63df1c2077445509cf05295558713593e84d (patch) | |
tree | 3c63d8cd6b7d3a5a5abfae768c470414523dec04 /chrome/browser/cocoa/extensions/extension_action_context_menu.h | |
parent | c665eb327f8f3486c454a95782ffdad4e79fde2c (diff) | |
download | chromium_src-2c7f63df1c2077445509cf05295558713593e84d.zip chromium_src-2c7f63df1c2077445509cf05295558713593e84d.tar.gz chromium_src-2c7f63df1c2077445509cf05295558713593e84d.tar.bz2 |
Enable inspection of extension popups
When developer mode is enabled from the extensions page, you can right click on
browser actions or page actions to inspect the popup. It will stay open until
you close the Inspector (or open another popup, or close the main window, etc).
BUG=24477
TEST=Inspect the popup
Review URL: http://codereview.chromium.org/1606001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43363 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/cocoa/extensions/extension_action_context_menu.h')
-rw-r--r-- | chrome/browser/cocoa/extensions/extension_action_context_menu.h | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/chrome/browser/cocoa/extensions/extension_action_context_menu.h b/chrome/browser/cocoa/extensions/extension_action_context_menu.h index 2d3f698..13fede3 100644 --- a/chrome/browser/cocoa/extensions/extension_action_context_menu.h +++ b/chrome/browser/cocoa/extensions/extension_action_context_menu.h @@ -6,11 +6,14 @@ #define CHROME_BROWSER_COCOA_EXTENSIONS_EXTENSION_ACTION_CONTEXT_MENU_H_ #include "base/scoped_ptr.h" +#include "base/scoped_nsobject.h" #import <Cocoa/Cocoa.h> class AsyncUninstaller; +class DevmodeObserver; class Extension; +class ExtensionAction; class Profile; // A context menu used by the Browser and Page Action components that appears @@ -20,17 +23,29 @@ class Profile; // The extension that this menu belongs to. Weak. Extension* extension_; + // The extension action this menu belongs to. Weak. + ExtensionAction* action_; + // The browser profile of the window that contains this extension. Weak. Profile* profile_; + // The inspector menu item. Need to keep this around to add and remove it. + scoped_nsobject<NSMenuItem> inspectorItem_; + + scoped_ptr<DevmodeObserver> observer_; + // Used to load the extension icon asynchronously on the I/O thread then show // the uninstall confirmation dialog. scoped_ptr<AsyncUninstaller> uninstaller_; } // Initializes and returns a context menu for the given extension and profile. -- (id)initWithExtension:(Extension*)extension profile:(Profile*)profile; +- (id)initWithExtension:(Extension*)extension + profile:(Profile*)profile + extensionAction:(ExtensionAction*)action; +// Show or hide the inspector menu item. +- (void)updateInspectorItem; @end typedef ExtensionActionContextMenu ExtensionActionContextMenuMac; |