OLD | NEW |
---|---|
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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_NTP_NEW_TAB_PAGE_VIEW_CONTROLLER_H_ | 5 #ifndef IOS_CLEAN_CHROME_BROWSER_UI_NTP_NEW_TAB_PAGE_VIEW_CONTROLLER_H_ |
6 #define IOS_CLEAN_CHROME_BROWSER_UI_NTP_NEW_TAB_PAGE_VIEW_CONTROLLER_H_ | 6 #define IOS_CLEAN_CHROME_BROWSER_UI_NTP_NEW_TAB_PAGE_VIEW_CONTROLLER_H_ |
7 | 7 |
8 #import <UIKit/UIKit.h> | 8 #import <UIKit/UIKit.h> |
9 | 9 |
10 #import "ios/clean/chrome/browser/ui/commands/ntp_commands.h" | |
11 #import "ios/clean/chrome/browser/ui/ntp/new_tab_page_consumer.h" | |
12 | |
10 // View controller that displays a new tab page. | 13 // View controller that displays a new tab page. |
11 @interface NTPViewController : UIViewController | 14 @interface NTPViewController : UIViewController<NTPConsumer> |
15 @property(nonatomic, weak) id<NTPCommands> ntpCommandHandler; | |
marq (ping after 24h)
2017/04/05 12:22:48
just 'commandHandler' is fine, or (more likely) 'd
justincohen
2017/04/05 19:28:24
Done.
| |
16 | |
17 // Add a Chrome Home panel. | |
18 - (void)addHomePanelViewController:(UIViewController*)controller; | |
19 // Add a bookmarks panel on iPad or present a bookmarks panel on iPhone. | |
20 - (void)addBookmarksViewController:(UIViewController*)controller; | |
21 // Add a open tabs panel on iPad or present a bookmarks panel on iPhone. | |
22 - (void)addOpenTabsViewController:(UIViewController*)controller; | |
23 // Add an incognito panel. | |
24 - (void)addIncognitoViewController:(UIViewController*)controller; | |
12 @end | 25 @end |
13 | 26 |
14 #endif // IOS_CLEAN_CHROME_BROWSER_UI_NTP_NEW_TAB_PAGE_VIEW_CONTROLLER_H_ | 27 #endif // IOS_CLEAN_CHROME_BROWSER_UI_NTP_NEW_TAB_PAGE_VIEW_CONTROLLER_H_ |
OLD | NEW |