| 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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 - (void)setTranslateIconLit:(BOOL)on; | 126 - (void)setTranslateIconLit:(BOOL)on; |
| 127 | 127 |
| 128 // Happens when the zoom for the active tab changes, the active tab switches, or | 128 // Happens when the zoom for the active tab changes, the active tab switches, or |
| 129 // a new tab or browser window is created. |canShowBubble| indicates if it is | 129 // a new tab or browser window is created. |canShowBubble| indicates if it is |
| 130 // appropriate to show a zoom bubble for the change. | 130 // appropriate to show a zoom bubble for the change. |
| 131 - (void)zoomChangedForActiveTab:(BOOL)canShowBubble; | 131 - (void)zoomChangedForActiveTab:(BOOL)canShowBubble; |
| 132 | 132 |
| 133 // Called to update the loading state. Handles updating the go/stop | 133 // Called to update the loading state. Handles updating the go/stop |
| 134 // button state. |force| is set if the update is due to changing | 134 // button state. |force| is set if the update is due to changing |
| 135 // tabs, as opposed to the page-load finishing. See comment in | 135 // tabs, as opposed to the page-load finishing. See comment in |
| 136 // reload_button.h. | 136 // reload_button_cocoa.h. |
| 137 - (void)setIsLoading:(BOOL)isLoading force:(BOOL)force; | 137 - (void)setIsLoading:(BOOL)isLoading force:(BOOL)force; |
| 138 | 138 |
| 139 // Allow turning off the toolbar (but we may keep the location bar without a | 139 // Allow turning off the toolbar (but we may keep the location bar without a |
| 140 // surrounding toolbar). If |toolbar| is YES, the value of |hasLocationBar| is | 140 // surrounding toolbar). If |toolbar| is YES, the value of |hasLocationBar| is |
| 141 // ignored. This changes the behavior of other methods, like |-view|. | 141 // ignored. This changes the behavior of other methods, like |-view|. |
| 142 - (void)setHasToolbar:(BOOL)toolbar hasLocationBar:(BOOL)locBar; | 142 - (void)setHasToolbar:(BOOL)toolbar hasLocationBar:(BOOL)locBar; |
| 143 | 143 |
| 144 // Point on the star icon for the bookmark bubble to be - in the | 144 // Point on the star icon for the bookmark bubble to be - in the |
| 145 // associated window's coordinate system. | 145 // associated window's coordinate system. |
| 146 - (NSPoint)bookmarkBubblePoint; | 146 - (NSPoint)bookmarkBubblePoint; |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 // Returns an array of views in the order of the outlets above. | 183 // Returns an array of views in the order of the outlets above. |
| 184 - (NSArray*)toolbarViews; | 184 - (NSArray*)toolbarViews; |
| 185 - (void)showOptionalHomeButton; | 185 - (void)showOptionalHomeButton; |
| 186 - (void)installWrenchMenu; | 186 - (void)installWrenchMenu; |
| 187 - (WrenchMenuController*)wrenchMenuController; | 187 - (WrenchMenuController*)wrenchMenuController; |
| 188 // Return a hover button for the current event. | 188 // Return a hover button for the current event. |
| 189 - (NSButton*)hoverButtonForEvent:(NSEvent*)theEvent; | 189 - (NSButton*)hoverButtonForEvent:(NSEvent*)theEvent; |
| 190 @end | 190 @end |
| 191 | 191 |
| 192 #endif // CHROME_BROWSER_UI_COCOA_TOOLBAR_TOOLBAR_CONTROLLER_H_ | 192 #endif // CHROME_BROWSER_UI_COCOA_TOOLBAR_TOOLBAR_CONTROLLER_H_ |
| OLD | NEW |