OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 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_CHROME_BROWSER_UI_NTP_NEW_TAB_PAGE_TOOLBAR_CONTROLLER_H_ | 5 #ifndef IOS_CHROME_BROWSER_UI_NTP_NEW_TAB_PAGE_TOOLBAR_CONTROLLER_H_ |
6 #define IOS_CHROME_BROWSER_UI_NTP_NEW_TAB_PAGE_TOOLBAR_CONTROLLER_H_ | 6 #define IOS_CHROME_BROWSER_UI_NTP_NEW_TAB_PAGE_TOOLBAR_CONTROLLER_H_ |
7 | 7 |
8 #import "ios/chrome/browser/ui/toolbar/toolbar_controller.h" | 8 #import "ios/chrome/browser/ui/toolbar/toolbar_controller.h" |
9 | 9 |
| 10 @protocol BrowserCommands; |
10 @protocol GoogleLandingDataSource; | 11 @protocol GoogleLandingDataSource; |
| 12 @protocol OmniboxFocuser; |
11 @protocol UrlLoader; | 13 @protocol UrlLoader; |
12 @protocol OmniboxFocuser; | |
13 @protocol WebToolbarDelegate; | 14 @protocol WebToolbarDelegate; |
14 | 15 |
15 // New tab page specific toolbar. The background view is hidden and the | 16 // New tab page specific toolbar. The background view is hidden and the |
16 // navigation buttons are also hidden if there is no forward history. Does not | 17 // navigation buttons are also hidden if there is no forward history. Does not |
17 // contain an omnibox but tapping in the center will focus the main toolbar's | 18 // contain an omnibox but tapping in the center will focus the main toolbar's |
18 // omnibox. | 19 // omnibox. |
19 @interface NewTabPageToolbarController : ToolbarController | 20 @interface NewTabPageToolbarController : ToolbarController |
20 | 21 |
21 // Designated initializer. The underlying ToolbarController is initialized with | 22 // Designated initializer. The underlying ToolbarController is initialized with |
22 // ToolbarControllerStyleLightMode. | 23 // ToolbarControllerStyleLightMode. |
23 - (instancetype)init; | 24 - (instancetype)init; |
24 | 25 |
25 @property(nonatomic, weak) id<UrlLoader, OmniboxFocuser, WebToolbarDelegate> | 26 @property(nonatomic, weak) |
26 dispatcher; | 27 id<BrowserCommands, OmniboxFocuser, UrlLoader, WebToolbarDelegate> |
| 28 dispatcher; |
27 | 29 |
28 // |YES| if the toolbar can show the forward arrow. | 30 // |YES| if the toolbar can show the forward arrow. |
29 - (void)setCanGoForward:(BOOL)canGoForward; | 31 - (void)setCanGoForward:(BOOL)canGoForward; |
30 | 32 |
31 // |YES| if the toolbar can show the back arrow. | 33 // |YES| if the toolbar can show the back arrow. |
32 - (void)setCanGoBack:(BOOL)canGoBack; | 34 - (void)setCanGoBack:(BOOL)canGoBack; |
33 | 35 |
34 @end | 36 @end |
35 | 37 |
36 #endif // IOS_CHROME_BROWSER_UI_NTP_NEW_TAB_PAGE_TOOLBAR_CONTROLLER_H_ | 38 #endif // IOS_CHROME_BROWSER_UI_NTP_NEW_TAB_PAGE_TOOLBAR_CONTROLLER_H_ |
OLD | NEW |