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 #ifndef IOS_CLEAN_CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_VIEW_CONTROLLER_H_ | 5 #ifndef IOS_CLEAN_CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_VIEW_CONTROLLER_H_ |
6 #define IOS_CLEAN_CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_VIEW_CONTROLLER_H_ | 6 #define IOS_CLEAN_CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_VIEW_CONTROLLER_H_ |
7 | 7 |
8 #import <UIKit/UIKit.h> | 8 #import <UIKit/UIKit.h> |
9 | 9 |
10 #import "ios/clean/chrome/browser/ui/animators/zoom_transition_delegate.h" | |
11 #import "ios/clean/chrome/browser/ui/toolbar/toolbar_consumer.h" | 10 #import "ios/clean/chrome/browser/ui/toolbar/toolbar_consumer.h" |
| 11 #import "ios/clean/chrome/browser/ui/transitions/animators/zoom_transition_deleg
ate.h" |
12 | 12 |
13 @protocol NavigationCommands; | 13 @protocol NavigationCommands; |
14 @protocol TabGridCommands; | 14 @protocol TabGridCommands; |
15 @protocol TabStripCommands; | 15 @protocol TabStripCommands; |
16 @protocol ToolsMenuCommands; | 16 @protocol ToolsMenuCommands; |
17 | 17 |
18 // View controller for a toolbar, which will show a horizontal row of | 18 // View controller for a toolbar, which will show a horizontal row of |
19 // controls and/or labels. | 19 // controls and/or labels. |
20 // This view controller will fill its container; it is up to the containing | 20 // This view controller will fill its container; it is up to the containing |
21 // view controller or presentation controller to configure an appropriate | 21 // view controller or presentation controller to configure an appropriate |
22 // height for it. | 22 // height for it. |
23 @interface ToolbarViewController | 23 @interface ToolbarViewController |
24 : UIViewController<ZoomTransitionDelegate, ToolbarConsumer> | 24 : UIViewController<ZoomTransitionDelegate, ToolbarConsumer> |
25 | 25 |
26 - (instancetype)initWithDispatcher:(id<NavigationCommands, | 26 - (instancetype)initWithDispatcher:(id<NavigationCommands, |
27 TabGridCommands, | 27 TabGridCommands, |
28 TabStripCommands, | 28 TabStripCommands, |
29 ToolsMenuCommands>)dispatcher; | 29 ToolsMenuCommands>)dispatcher; |
30 | 30 |
31 // The dispatcher for this view controller | 31 // The dispatcher for this view controller |
32 @property(nonatomic, weak) | 32 @property(nonatomic, weak) |
33 id<NavigationCommands, TabGridCommands, TabStripCommands, ToolsMenuCommands> | 33 id<NavigationCommands, TabGridCommands, TabStripCommands, ToolsMenuCommands> |
34 dispatcher; | 34 dispatcher; |
35 | 35 |
36 @property(nonatomic, strong) UIViewController* locationBarViewController; | 36 @property(nonatomic, strong) UIViewController* locationBarViewController; |
37 | 37 |
38 @end | 38 @end |
39 | 39 |
40 #endif // IOS_CLEAN_CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_VIEW_CONTROLLER_H_ | 40 #endif // IOS_CLEAN_CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_VIEW_CONTROLLER_H_ |
OLD | NEW |