| 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 <memory> | 10 #include <memory> |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 | 113 |
| 114 // Called by the Window delegate so we can provide a custom field editor if | 114 // Called by the Window delegate so we can provide a custom field editor if |
| 115 // needed. | 115 // needed. |
| 116 // Note that this may be called for objects unrelated to the toolbar. | 116 // Note that this may be called for objects unrelated to the toolbar. |
| 117 // returns nil if we don't want to override the custom field editor for |obj|. | 117 // returns nil if we don't want to override the custom field editor for |obj|. |
| 118 - (id)customFieldEditorForObject:(id)obj; | 118 - (id)customFieldEditorForObject:(id)obj; |
| 119 | 119 |
| 120 // Called by the |locationBar_| when it has been added to its window. | 120 // Called by the |locationBar_| when it has been added to its window. |
| 121 - (void)locationBarWasAddedToWindow; | 121 - (void)locationBarWasAddedToWindow; |
| 122 | 122 |
| 123 // Return YES if the location bar is the first responder. | |
| 124 - (BOOL)locationBarHasFocus; | |
| 125 | |
| 126 // Make the location bar the first responder, if possible. | 123 // Make the location bar the first responder, if possible. |
| 127 - (void)focusLocationBar:(BOOL)selectAll; | 124 - (void)focusLocationBar:(BOOL)selectAll; |
| 128 | 125 |
| 129 // Called by CommandObserverBridge when there is a state change for the given | 126 // Called by CommandObserverBridge when there is a state change for the given |
| 130 // command. | 127 // command. |
| 131 - (void)enabledStateChangedForCommand:(int)command enabled:(bool)enabled; | 128 - (void)enabledStateChangedForCommand:(int)command enabled:(bool)enabled; |
| 132 | 129 |
| 133 // Forces the toolbar (and transitively the location bar) to update its current | 130 // Forces the toolbar (and transitively the location bar) to update its current |
| 134 // state. If |tab| is non-NULL, we're switching (back?) to this tab and should | 131 // state. If |tab| is non-NULL, we're switching (back?) to this tab and should |
| 135 // restore any previous location bar state (such as user editing) as well. | 132 // restore any previous location bar state (such as user editing) as well. |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 205 - (void)installAppMenu; | 202 - (void)installAppMenu; |
| 206 // Return a hover button for the current event. | 203 // Return a hover button for the current event. |
| 207 - (NSButton*)hoverButtonForEvent:(NSEvent*)theEvent; | 204 - (NSButton*)hoverButtonForEvent:(NSEvent*)theEvent; |
| 208 // Adjusts browser actions container view in response to toolbar frame changes. | 205 // Adjusts browser actions container view in response to toolbar frame changes. |
| 209 // Outside of tests, called in response to frame changed/new window | 206 // Outside of tests, called in response to frame changed/new window |
| 210 // notifications. | 207 // notifications. |
| 211 - (void)toolbarFrameChanged; | 208 - (void)toolbarFrameChanged; |
| 212 @end | 209 @end |
| 213 | 210 |
| 214 #endif // CHROME_BROWSER_UI_COCOA_TOOLBAR_TOOLBAR_CONTROLLER_H_ | 211 #endif // CHROME_BROWSER_UI_COCOA_TOOLBAR_TOOLBAR_CONTROLLER_H_ |
| OLD | NEW |