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