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

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

Issue 606079: [Mac] Adds grippys to the left side of the Browser Actions container to resiz... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 10 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 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 39220)
+++ chrome/browser/cocoa/extensions/browser_actions_controller.h (working copy)
@@ -49,6 +49,8 @@
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 @@
// 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;

Powered by Google App Engine
This is Rietveld 408576698