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 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
196 @end | 196 @end |
197 | 197 |
198 // A set of private methods used by tests, in the absence of "friends" in ObjC. | 198 // A set of private methods used by tests, in the absence of "friends" in ObjC. |
199 @interface ToolbarController(PrivateTestMethods) | 199 @interface ToolbarController(PrivateTestMethods) |
200 // Returns an array of views in the order of the outlets above. | 200 // Returns an array of views in the order of the outlets above. |
201 - (NSArray*)toolbarViews; | 201 - (NSArray*)toolbarViews; |
202 - (void)showOptionalHomeButton; | 202 - (void)showOptionalHomeButton; |
203 - (void)installAppMenu; | 203 - (void)installAppMenu; |
204 // Return a hover button for the current event. | 204 // Return a hover button for the current event. |
205 - (NSButton*)hoverButtonForEvent:(NSEvent*)theEvent; | 205 - (NSButton*)hoverButtonForEvent:(NSEvent*)theEvent; |
| 206 // Adjusts browser actions container view in response to toolbar frame changes. |
| 207 // Outside of tests, called in response to frame changed/new window |
| 208 // notifications. |
| 209 - (void)toolbarFrameChanged; |
206 @end | 210 @end |
207 | 211 |
208 #endif // CHROME_BROWSER_UI_COCOA_TOOLBAR_TOOLBAR_CONTROLLER_H_ | 212 #endif // CHROME_BROWSER_UI_COCOA_TOOLBAR_TOOLBAR_CONTROLLER_H_ |
OLD | NEW |