| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_UI_COCOA_TOOLBAR_TOOLBAR_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_TOOLBAR_TOOLBAR_CONTROLLER_H_ |
| 6 #define CHROME_BROWSER_UI_COCOA_TOOLBAR_TOOLBAR_CONTROLLER_H_ | 6 #define CHROME_BROWSER_UI_COCOA_TOOLBAR_TOOLBAR_CONTROLLER_H_ |
| 7 | 7 |
| 8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
| 9 | 9 |
| 10 #include "base/mac/scoped_nsobject.h" | 10 #include "base/mac/scoped_nsobject.h" |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 // Returns the desired toolbar height for the given compression factor. | 160 // Returns the desired toolbar height for the given compression factor. |
| 161 - (CGFloat)desiredHeightForCompression:(CGFloat)compressByHeight; | 161 - (CGFloat)desiredHeightForCompression:(CGFloat)compressByHeight; |
| 162 | 162 |
| 163 // Set the opacity of the divider (the line at the bottom) *if* we have a | 163 // Set the opacity of the divider (the line at the bottom) *if* we have a |
| 164 // |ToolbarView| (0 means don't show it); no-op otherwise. | 164 // |ToolbarView| (0 means don't show it); no-op otherwise. |
| 165 - (void)setDividerOpacity:(CGFloat)opacity; | 165 - (void)setDividerOpacity:(CGFloat)opacity; |
| 166 | 166 |
| 167 // Create and add the Browser Action buttons to the toolbar view. | 167 // Create and add the Browser Action buttons to the toolbar view. |
| 168 - (void)createBrowserActionButtons; | 168 - (void)createBrowserActionButtons; |
| 169 | 169 |
| 170 // Update whether the toolbar is visible or not, with an optional animation. |
| 171 - (void)updateVisibility:(BOOL)visible withAnimation:(BOOL)animate; |
| 172 |
| 170 // Return the BrowserActionsController for this toolbar. | 173 // Return the BrowserActionsController for this toolbar. |
| 171 - (BrowserActionsController*)browserActionsController; | 174 - (BrowserActionsController*)browserActionsController; |
| 172 | 175 |
| 173 // Returns the wrench button. | 176 // Returns the wrench button. |
| 174 - (NSButton*)wrenchButton; | 177 - (NSButton*)wrenchButton; |
| 175 | 178 |
| 176 // Returns the wrench menu controller. | 179 // Returns the wrench menu controller. |
| 177 - (WrenchMenuController*)wrenchMenuController; | 180 - (WrenchMenuController*)wrenchMenuController; |
| 178 | 181 |
| 179 @end | 182 @end |
| (...skipping 13 matching lines...) Expand all Loading... |
| 193 @interface ToolbarController(PrivateTestMethods) | 196 @interface ToolbarController(PrivateTestMethods) |
| 194 // Returns an array of views in the order of the outlets above. | 197 // Returns an array of views in the order of the outlets above. |
| 195 - (NSArray*)toolbarViews; | 198 - (NSArray*)toolbarViews; |
| 196 - (void)showOptionalHomeButton; | 199 - (void)showOptionalHomeButton; |
| 197 - (void)installWrenchMenu; | 200 - (void)installWrenchMenu; |
| 198 // Return a hover button for the current event. | 201 // Return a hover button for the current event. |
| 199 - (NSButton*)hoverButtonForEvent:(NSEvent*)theEvent; | 202 - (NSButton*)hoverButtonForEvent:(NSEvent*)theEvent; |
| 200 @end | 203 @end |
| 201 | 204 |
| 202 #endif // CHROME_BROWSER_UI_COCOA_TOOLBAR_TOOLBAR_CONTROLLER_H_ | 205 #endif // CHROME_BROWSER_UI_COCOA_TOOLBAR_TOOLBAR_CONTROLLER_H_ |
| OLD | NEW |