| 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/memory/scoped_nsobject.h" | 10 #include "base/memory/scoped_nsobject.h" |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 | 139 |
| 140 // Allow turning off the toolbar (but we may keep the location bar without a | 140 // Allow turning off the toolbar (but we may keep the location bar without a |
| 141 // surrounding toolbar). If |toolbar| is YES, the value of |hasLocationBar| is | 141 // surrounding toolbar). If |toolbar| is YES, the value of |hasLocationBar| is |
| 142 // ignored. This changes the behavior of other methods, like |-view|. | 142 // ignored. This changes the behavior of other methods, like |-view|. |
| 143 - (void)setHasToolbar:(BOOL)toolbar hasLocationBar:(BOOL)locBar; | 143 - (void)setHasToolbar:(BOOL)toolbar hasLocationBar:(BOOL)locBar; |
| 144 | 144 |
| 145 // Point on the star icon for the bookmark bubble to be - in the | 145 // Point on the star icon for the bookmark bubble to be - in the |
| 146 // associated window's coordinate system. | 146 // associated window's coordinate system. |
| 147 - (NSPoint)bookmarkBubblePoint; | 147 - (NSPoint)bookmarkBubblePoint; |
| 148 | 148 |
| 149 // Return the anchor point for the Chrome To Mobile bubble on its icon. | |
| 150 // The returned value is in the associated window's coordinate system. | |
| 151 - (NSPoint)chromeToMobileBubblePoint; | |
| 152 | |
| 153 // Returns the desired toolbar height for the given compression factor. | 149 // Returns the desired toolbar height for the given compression factor. |
| 154 - (CGFloat)desiredHeightForCompression:(CGFloat)compressByHeight; | 150 - (CGFloat)desiredHeightForCompression:(CGFloat)compressByHeight; |
| 155 | 151 |
| 156 // Set the opacity of the divider (the line at the bottom) *if* we have a | 152 // Set the opacity of the divider (the line at the bottom) *if* we have a |
| 157 // |ToolbarView| (0 means don't show it); no-op otherwise. | 153 // |ToolbarView| (0 means don't show it); no-op otherwise. |
| 158 - (void)setDividerOpacity:(CGFloat)opacity; | 154 - (void)setDividerOpacity:(CGFloat)opacity; |
| 159 | 155 |
| 160 // Create and add the Browser Action buttons to the toolbar view. | 156 // Create and add the Browser Action buttons to the toolbar view. |
| 161 - (void)createBrowserActionButtons; | 157 - (void)createBrowserActionButtons; |
| 162 | 158 |
| (...skipping 23 matching lines...) Expand all Loading... |
| 186 // Returns an array of views in the order of the outlets above. | 182 // Returns an array of views in the order of the outlets above. |
| 187 - (NSArray*)toolbarViews; | 183 - (NSArray*)toolbarViews; |
| 188 - (void)showOptionalHomeButton; | 184 - (void)showOptionalHomeButton; |
| 189 - (void)installWrenchMenu; | 185 - (void)installWrenchMenu; |
| 190 - (WrenchMenuController*)wrenchMenuController; | 186 - (WrenchMenuController*)wrenchMenuController; |
| 191 // Return a hover button for the current event. | 187 // Return a hover button for the current event. |
| 192 - (NSButton*)hoverButtonForEvent:(NSEvent*)theEvent; | 188 - (NSButton*)hoverButtonForEvent:(NSEvent*)theEvent; |
| 193 @end | 189 @end |
| 194 | 190 |
| 195 #endif // CHROME_BROWSER_UI_COCOA_TOOLBAR_TOOLBAR_CONTROLLER_H_ | 191 #endif // CHROME_BROWSER_UI_COCOA_TOOLBAR_TOOLBAR_CONTROLLER_H_ |
| OLD | NEW |