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_CHROME_BROWSER_UI_NTP_GOOGLE_LANDING_MEDIATOR_H_ | 5 #ifndef IOS_CHROME_BROWSER_UI_NTP_GOOGLE_LANDING_MEDIATOR_H_ |
6 #define IOS_CHROME_BROWSER_UI_NTP_GOOGLE_LANDING_MEDIATOR_H_ | 6 #define IOS_CHROME_BROWSER_UI_NTP_GOOGLE_LANDING_MEDIATOR_H_ |
7 | 7 |
8 #import <Foundation/Foundation.h> | 8 #import <Foundation/Foundation.h> |
9 | 9 |
10 #import "ios/chrome/browser/ui/ntp/google_landing_data_source.h" | 10 #import "ios/chrome/browser/ui/ntp/google_landing_data_source.h" |
11 #import "ios/chrome/browser/ui/toolbar/web_toolbar_controller.h" | |
11 | 12 |
12 @protocol GoogleLandingConsumer; | 13 @protocol GoogleLandingConsumer; |
13 @protocol OmniboxFocuser; | 14 @protocol OmniboxFocuser; |
14 @protocol UrlLoader; | 15 @protocol UrlLoader; |
15 class WebStateList; | 16 class WebStateList; |
16 | 17 |
17 namespace ios { | 18 namespace ios { |
18 class ChromeBrowserState; | 19 class ChromeBrowserState; |
19 } | 20 } |
20 | 21 |
21 // A mediator object that provides various data sources for google landing. | 22 // A mediator object that provides various data sources for google landing. |
22 @interface GoogleLandingMediator : NSObject<GoogleLandingDataSource> | 23 @interface GoogleLandingMediator : NSObject<GoogleLandingDataSource> |
23 | 24 |
24 - (instancetype)initWithConsumer:(id<GoogleLandingConsumer>)consumer | 25 - (instancetype)initWithConsumer:(id<GoogleLandingConsumer>)consumer |
25 browserState:(ios::ChromeBrowserState*)browserState | 26 browserState:(ios::ChromeBrowserState*)browserState |
26 loader:(id<UrlLoader>)loader | |
27 focuser:(id<OmniboxFocuser>)focuser | |
28 webToolbarDelegate:(id<WebToolbarDelegate>)webToolbarDelegate | |
29 webStateList:(WebStateList*)webStateList | 27 webStateList:(WebStateList*)webStateList |
30 NS_DESIGNATED_INITIALIZER; | 28 NS_DESIGNATED_INITIALIZER; |
31 - (instancetype)init NS_UNAVAILABLE; | 29 - (instancetype)init NS_UNAVAILABLE; |
32 | 30 |
33 // Get the maximum number of sites shown. | 31 // Get the maximum number of sites shown. |
34 + (NSUInteger)maxSitesShown; | 32 + (NSUInteger)maxSitesShown; |
35 | 33 |
34 @property(nonatomic, assign) id dispatcher; | |
marq (ping after 24h)
2017/04/20 13:17:14
Actual type instead of id here, since you're calli
justincohen
2017/04/20 21:28:31
Done.
| |
35 | |
36 @end | 36 @end |
37 | 37 |
38 #endif // IOS_CHROME_BROWSER_UI_NTP_GOOGLE_LANDING_MEDIATOR_H_ | 38 #endif // IOS_CHROME_BROWSER_UI_NTP_GOOGLE_LANDING_MEDIATOR_H_ |
OLD | NEW |