| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_COCOA_TOOLBAR_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_COCOA_TOOLBAR_CONTROLLER_H_ |
| 6 #define CHROME_BROWSER_COCOA_TOOLBAR_CONTROLLER_H_ | 6 #define CHROME_BROWSER_COCOA_TOOLBAR_CONTROLLER_H_ |
| 7 | 7 |
| 8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
| 9 | 9 |
| 10 #include "base/scoped_ptr.h" | 10 #include "base/scoped_ptr.h" |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 | 127 |
| 128 // Allow turning off the toolbar (but we keep the location bar | 128 // Allow turning off the toolbar (but we keep the location bar |
| 129 // around). This changes the behavior of other methods, like | 129 // around). This changes the behavior of other methods, like |
| 130 // [self view]. | 130 // [self view]. |
| 131 - (void)setHasToolbar:(BOOL)toolbar; | 131 - (void)setHasToolbar:(BOOL)toolbar; |
| 132 | 132 |
| 133 // The bookmark bubble (when you click the star) needs to know where to go. | 133 // The bookmark bubble (when you click the star) needs to know where to go. |
| 134 // Somewhere near the star button seems like a good start. | 134 // Somewhere near the star button seems like a good start. |
| 135 - (NSRect)starButtonInWindowCoordinates; | 135 - (NSRect)starButtonInWindowCoordinates; |
| 136 | 136 |
| 137 // Chop off the bottom of the toolbar by |compressByHeight|; needed when the | 137 // Returns the desired toolbar height for the given compression factor. |
| 138 // bookmark bar is attached. | 138 - (CGFloat)desiredHeightForCompression:(CGFloat)compressByHeight; |
| 139 - (void)setHeightCompression:(CGFloat)compressByHeight; | |
| 140 | 139 |
| 141 // Set the opacity of the divider (the line at the bottom) *if* we have a | 140 // Set the opacity of the divider (the line at the bottom) *if* we have a |
| 142 // |ToolbarView| (0 means don't show it); no-op otherwise. | 141 // |ToolbarView| (0 means don't show it); no-op otherwise. |
| 143 - (void)setDividerOpacity:(CGFloat)opacity; | 142 - (void)setDividerOpacity:(CGFloat)opacity; |
| 144 | 143 |
| 145 @end | 144 @end |
| 146 | 145 |
| 147 // A set of private methods used by tests, in the absence of "friends" in ObjC. | 146 // A set of private methods used by tests, in the absence of "friends" in ObjC. |
| 148 @interface ToolbarController(PrivateTestMethods) | 147 @interface ToolbarController(PrivateTestMethods) |
| 149 // Returns an array of views in the order of the outlets above. | 148 // Returns an array of views in the order of the outlets above. |
| 150 - (NSArray*)toolbarViews; | 149 - (NSArray*)toolbarViews; |
| 151 - (void)showOptionalHomeButton; | 150 - (void)showOptionalHomeButton; |
| 152 - (void)showOptionalPageWrenchButtons; | 151 - (void)showOptionalPageWrenchButtons; |
| 153 - (gfx::Rect)locationStackBounds; | 152 - (gfx::Rect)locationStackBounds; |
| 154 // Return a hover button for the current event. | 153 // Return a hover button for the current event. |
| 155 - (NSButton*)hoverButtonForEvent:(NSEvent*)theEvent; | 154 - (NSButton*)hoverButtonForEvent:(NSEvent*)theEvent; |
| 156 @end | 155 @end |
| 157 | 156 |
| 158 #endif // CHROME_BROWSER_COCOA_TOOLBAR_CONTROLLER_H_ | 157 #endif // CHROME_BROWSER_COCOA_TOOLBAR_CONTROLLER_H_ |
| OLD | NEW |