OLD | NEW |
(Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef IOS_CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_OWNER_H_ |
| 6 #define IOS_CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_OWNER_H_ |
| 7 |
| 8 #import <Foundation/Foundation.h> |
| 9 |
| 10 @class ToolbarController; |
| 11 |
| 12 @protocol ToolbarOwner<NSObject> |
| 13 |
| 14 // Returns a reference to the toolbar controller so that it can be included in |
| 15 // animations. Calls should be paired with calls to |-reparentToolbarController| |
| 16 // when the relinquished toolbar controller is no longer needed by the caller. |
| 17 // Returns nil if called when the toolbar has already been relinquished. |
| 18 - (ToolbarController*)relinquishedToolbarController; |
| 19 // Reparents the toolbar into its place in the view hierarchy before it was |
| 20 // relinquished. |
| 21 - (void)reparentToolbarController; |
| 22 |
| 23 @optional |
| 24 // Returns the height of the toolbar owned by the implementing class. |
| 25 - (CGFloat)toolbarHeight; |
| 26 |
| 27 @end |
| 28 |
| 29 #endif // IOS_CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_OWNER_H_ |
OLD | NEW |