summaryrefslogtreecommitdiffstats
path: root/chrome/browser/cocoa/extensions/browser_actions_controller.h
diff options
context:
space:
mode:
authorandybons@chromium.org <andybons@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-17 17:33:01 +0000
committerandybons@chromium.org <andybons@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-17 17:33:01 +0000
commit22fb571d9b62f44279d46a96202f25f9c0d842db (patch)
treecd58eeefc996ecfa7e863ff3fe029973b0050322 /chrome/browser/cocoa/extensions/browser_actions_controller.h
parent93f72151bbdfca2228aa97143992d5f0551e7e4f (diff)
downloadchromium_src-22fb571d9b62f44279d46a96202f25f9c0d842db.zip
chromium_src-22fb571d9b62f44279d46a96202f25f9c0d842db.tar.gz
chromium_src-22fb571d9b62f44279d46a96202f25f9c0d842db.tar.bz2
[Mac] Adds grippys to the left side of the Browser Actions container to resize the container (they do not work yet), refactors a bunch of code out of toolbar_controller.mm and adds a slight gradient'ed divider between the container and the page/wrench menus buttons.
http://imgur.com/OqKGF.png TEST=none BUG=26990 Review URL: http://codereview.chromium.org/606079 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39231 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/cocoa/extensions/browser_actions_controller.h')
-rw-r--r--chrome/browser/cocoa/extensions/browser_actions_controller.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/chrome/browser/cocoa/extensions/browser_actions_controller.h b/chrome/browser/cocoa/extensions/browser_actions_controller.h
index c15138b..969464b 100644
--- a/chrome/browser/cocoa/extensions/browser_actions_controller.h
+++ b/chrome/browser/cocoa/extensions/browser_actions_controller.h
@@ -49,6 +49,8 @@ extern NSString* const kBrowserActionsChangedNotification;
scoped_nsobject<NSMutableArray> buttonOrder_;
}
+@property(readonly, nonatomic) BrowserActionsContainerView* containerView;
+
// Initializes the controller given the current browser and container view that
// will hold the browser action buttons.
- (id)initWithBrowser:(Browser*)browser
@@ -58,16 +60,20 @@ extern NSString* const kBrowserActionsChangedNotification;
// extensions service to the toolbar.
- (void)createButtons;
+// Returns the ideal (not current) width to fit all visible extensions and other
+// UI elements in the container nicely.
+- (CGFloat)idealContainerWidth;
+
// Update the display of all buttons.
- (void)update;
// Returns the current number of browser action buttons within the container,
// whether or not they are displayed.
-- (int)buttonCount;
+- (NSUInteger)buttonCount;
// Returns the current number of browser action buttons displayed in the
// container.
-- (int)visibleButtonCount;
+- (NSUInteger)visibleButtonCount;
// Executes the action designated by the extension.
- (void)browserActionClicked:(BrowserActionButton*)sender;