| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 // Initialize the toolbar and register for command updates. The profile is | 102 // Initialize the toolbar and register for command updates. The profile is |
| 103 // needed for initializing the location bar. The browser is needed for | 103 // needed for initializing the location bar. The browser is needed for |
| 104 // initializing the back/forward menus. | 104 // initializing the back/forward menus. |
| 105 - (id)initWithModel:(ToolbarModel*)model | 105 - (id)initWithModel:(ToolbarModel*)model |
| 106 commands:(CommandUpdater*)commands | 106 commands:(CommandUpdater*)commands |
| 107 profile:(Profile*)profile | 107 profile:(Profile*)profile |
| 108 browser:(Browser*)browser | 108 browser:(Browser*)browser |
| 109 resizeDelegate:(id<ViewResizer>)resizeDelegate; | 109 resizeDelegate:(id<ViewResizer>)resizeDelegate; |
| 110 | 110 |
| 111 // Get the C++ bridge object representing the location bar for this tab. | 111 // Get the C++ bridge object representing the location bar for this tab. |
| 112 - (LocationBar*)locationBarBridge; | 112 - (LocationBarViewMac*)locationBarBridge; |
| 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 // Make the location bar the first responder, if possible. | 120 // Make the location bar the first responder, if possible. |
| 121 - (void)focusLocationBar:(BOOL)selectAll; | 121 - (void)focusLocationBar:(BOOL)selectAll; |
| 122 | 122 |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 176 @interface ToolbarController(PrivateTestMethods) | 176 @interface ToolbarController(PrivateTestMethods) |
| 177 // Returns an array of views in the order of the outlets above. | 177 // Returns an array of views in the order of the outlets above. |
| 178 - (NSArray*)toolbarViews; | 178 - (NSArray*)toolbarViews; |
| 179 - (void)showOptionalHomeButton; | 179 - (void)showOptionalHomeButton; |
| 180 - (void)installWrenchMenu; | 180 - (void)installWrenchMenu; |
| 181 // Return a hover button for the current event. | 181 // Return a hover button for the current event. |
| 182 - (NSButton*)hoverButtonForEvent:(NSEvent*)theEvent; | 182 - (NSButton*)hoverButtonForEvent:(NSEvent*)theEvent; |
| 183 @end | 183 @end |
| 184 | 184 |
| 185 #endif // CHROME_BROWSER_COCOA_TOOLBAR_CONTROLLER_H_ | 185 #endif // CHROME_BROWSER_COCOA_TOOLBAR_CONTROLLER_H_ |
| OLD | NEW |