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

Unified Diff: chrome/browser/cocoa/extensions/browser_actions_controller.h

Issue 402077: Adds popups to browser actions, completing the feature.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/cocoa/extensions/browser_actions_controller.h
===================================================================
--- chrome/browser/cocoa/extensions/browser_actions_controller.h (revision 32567)
+++ chrome/browser/cocoa/extensions/browser_actions_controller.h (working copy)
@@ -13,6 +13,7 @@
class Browser;
@class BrowserActionButton;
class Extension;
+@class ExtensionPopupController;
class ExtensionsServiceObserverBridge;
class Profile;
@@ -42,6 +43,9 @@
// The order of the BrowserActionButton objects within the dictionary.
scoped_nsobject<NSMutableArray> buttonOrder_;
+
+ // The controller for the popup displayed if a browser action has one. Weak.
+ ExtensionPopupController* popupController_;
}
// Initializes the controller given the current browser and container view that
@@ -56,6 +60,10 @@
// Hides the browser action's popup menu (if one is present and visible).
- (void)hidePopup;
+// Returns the controller used to display the popup being shown. If no popup is
+// currently open, then nil is returned.
+- (ExtensionPopupController*)popup;
+
// Marks the container view for redraw. Called by the extension service
// notification bridge.
- (void)browserActionVisibilityHasChanged;
« no previous file with comments | « chrome/browser/cocoa/extension_view_mac.mm ('k') | chrome/browser/cocoa/extensions/browser_actions_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698