OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 // ====== New Architecture ===== | 5 // ====== New Architecture ===== |
6 // = This code is only used in the new iOS Chrome architecture. = | 6 // = This code is only used in the new iOS Chrome architecture. = |
7 // ============================================================================ | 7 // ============================================================================ |
8 | 8 |
9 #ifndef IOS_CLEAN_CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_VIEW_CONTROLLER_H_ | 9 #ifndef IOS_CLEAN_CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_VIEW_CONTROLLER_H_ |
10 #define IOS_CLEAN_CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_VIEW_CONTROLLER_H_ | 10 #define IOS_CLEAN_CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_VIEW_CONTROLLER_H_ |
11 | 11 |
12 #import <UIKit/UIKit.h> | 12 #import <UIKit/UIKit.h> |
13 | 13 |
14 #import "ios/clean/chrome/browser/ui/animators/zoom_transition_delegate.h" | 14 #import "ios/clean/chrome/browser/ui/animators/zoom_transition_delegate.h" |
| 15 #import "ios/clean/chrome/browser/ui/toolbar/toolbar_consumer.h" |
15 | 16 |
16 @protocol ToolbarCommands; | 17 @protocol ToolbarCommands; |
17 | 18 |
18 // View controller for a toolbar, which will show a horizontal row of | 19 // View controller for a toolbar, which will show a horizontal row of |
19 // controls and/or labels. | 20 // controls and/or labels. |
20 // This view controller will fill its container; it is up to the containing | 21 // This view controller will fill its container; it is up to the containing |
21 // view controller or presentation controller to configure an appropriate | 22 // view controller or presentation controller to configure an appropriate |
22 // height for it. | 23 // height for it. |
23 @interface ToolbarViewController : UIViewController<ZoomTransitionDelegate> | 24 @interface ToolbarViewController |
| 25 : UIViewController<ZoomTransitionDelegate, ToolbarConsumer> |
24 | 26 |
25 // The action delegate for this view controller. | 27 // The action delegate for this view controller. |
26 @property(nonatomic, weak) id<ToolbarCommands> toolbarCommandHandler; | 28 @property(nonatomic, weak) id<ToolbarCommands> toolbarCommandHandler; |
27 | |
28 // Sets the text for a label appearing in the center of the toolbar. | |
29 - (void)setCurrentPageText:(NSString*)text; | |
30 | |
31 @end | 29 @end |
32 | 30 |
33 #endif // IOS_CLEAN_CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_VIEW_CONTROLLER_H_ | 31 #endif // IOS_CLEAN_CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_VIEW_CONTROLLER_H_ |
OLD | NEW |