OLD | NEW |
(Empty) | |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef IOS_CHROME_BROWSER_UI_NTP_GOOGLE_LANDING_CONTROLLER_H_ |
| 6 #define IOS_CHROME_BROWSER_UI_NTP_GOOGLE_LANDING_CONTROLLER_H_ |
| 7 |
| 8 #import <UIKit/UIKit.h> |
| 9 |
| 10 #include <memory> |
| 11 |
| 12 #import "ios/chrome/browser/ui/ntp/new_tab_page_panel_protocol.h" |
| 13 #import "ios/chrome/browser/ui/toolbar/toolbar_owner.h" |
| 14 #import "ios/public/provider/chrome/browser/voice/logo_animation_controller.h" |
| 15 |
| 16 @protocol OmniboxFocuser; |
| 17 @class TabModel; |
| 18 @protocol UrlLoader; |
| 19 @protocol WebToolbarDelegate; |
| 20 |
| 21 namespace ios { |
| 22 class ChromeBrowserState; |
| 23 } |
| 24 |
| 25 // Google centric new tab page. |
| 26 @interface GoogleLandingController : NSObject<LogoAnimationControllerOwnerOwner, |
| 27 NewTabPagePanelProtocol, |
| 28 ToolbarOwner> |
| 29 |
| 30 // Initialization method. |
| 31 - (id)initWithLoader:(id<UrlLoader>)loader |
| 32 browserState:(ios::ChromeBrowserState*)browserState |
| 33 focuser:(id<OmniboxFocuser>)focuser |
| 34 webToolbarDelegate:(id<WebToolbarDelegate>)webToolbarDelegate |
| 35 tabModel:(TabModel*)tabModel; |
| 36 |
| 37 // Get the maximum number of sites shown. |
| 38 + (NSUInteger)maxSitesShown; |
| 39 |
| 40 @end |
| 41 |
| 42 #endif // IOS_CHROME_BROWSER_UI_NTP_GOOGLE_LANDING_CONTROLLER_H_ |
OLD | NEW |