Chromium Code Reviews| 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 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 193 @end | 193 @end |
| 194 | 194 |
| 195 // A set of private methods used by tests, in the absence of "friends" in ObjC. | 195 // A set of private methods used by tests, in the absence of "friends" in ObjC. |
| 196 @interface ToolbarController(PrivateTestMethods) | 196 @interface ToolbarController(PrivateTestMethods) |
| 197 // Returns an array of views in the order of the outlets above. | 197 // Returns an array of views in the order of the outlets above. |
| 198 - (NSArray*)toolbarViews; | 198 - (NSArray*)toolbarViews; |
| 199 - (void)showOptionalHomeButton; | 199 - (void)showOptionalHomeButton; |
| 200 - (void)installAppMenu; | 200 - (void)installAppMenu; |
| 201 // Return a hover button for the current event. | 201 // Return a hover button for the current event. |
| 202 - (NSButton*)hoverButtonForEvent:(NSEvent*)theEvent; | 202 - (NSButton*)hoverButtonForEvent:(NSEvent*)theEvent; |
| 203 // Adjusts browser actions container view in response | |
| 204 // to toolbar frame changes. Outside of tests, called | |
| 205 // in response to frame changed/new window notifications. | |
|
tapted
2017/01/04 22:57:50
nit: wrap at 80 chars? (`git cl format` might eve
lgrey
2017/01/05 20:50:33
Done.
| |
| 206 - (void)toolbarFrameChanged; | |
| 203 @end | 207 @end |
| 204 | 208 |
| 205 #endif // CHROME_BROWSER_UI_COCOA_TOOLBAR_TOOLBAR_CONTROLLER_H_ | 209 #endif // CHROME_BROWSER_UI_COCOA_TOOLBAR_TOOLBAR_CONTROLLER_H_ |
| OLD | NEW |