Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(245)

Side by Side Diff: ios/chrome/browser/ui/ntp/google_landing_controller.h

Issue 2806153004: Convert main NTP panel to UIViewController. (Closed)
Patch Set: Comment typo Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 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 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_CONTROLLER_H_ 5 #ifndef IOS_CHROME_BROWSER_UI_NTP_GOOGLE_LANDING_CONTROLLER_H_
6 #define IOS_CHROME_BROWSER_UI_NTP_GOOGLE_LANDING_CONTROLLER_H_ 6 #define IOS_CHROME_BROWSER_UI_NTP_GOOGLE_LANDING_CONTROLLER_H_
7 7
8 #import <UIKit/UIKit.h> 8 #import <UIKit/UIKit.h>
9 9
10 #include <memory> 10 #include <memory>
11 11
12 #import "ios/chrome/browser/ui/ntp/new_tab_page_panel_protocol.h" 12 #import "ios/chrome/browser/ui/ntp/new_tab_page_panel_protocol.h"
13 #import "ios/chrome/browser/ui/toolbar/toolbar_owner.h" 13 #import "ios/chrome/browser/ui/toolbar/toolbar_owner.h"
14 #import "ios/public/provider/chrome/browser/voice/logo_animation_controller.h" 14 #import "ios/public/provider/chrome/browser/voice/logo_animation_controller.h"
15 15
16 @protocol OmniboxFocuser; 16 @protocol OmniboxFocuser;
17 @class TabModel; 17 @class TabModel;
18 @protocol UrlLoader; 18 @protocol UrlLoader;
19 @protocol WebToolbarDelegate; 19 @protocol WebToolbarDelegate;
20 20
21 namespace ios { 21 namespace ios {
22 class ChromeBrowserState; 22 class ChromeBrowserState;
23 } 23 }
24 24
25 // Google centric new tab page. 25 // Google centric new tab page.
26 @interface GoogleLandingController : NSObject<LogoAnimationControllerOwnerOwner, 26 @interface GoogleLandingController
27 NewTabPagePanelProtocol, 27 : UIViewController<LogoAnimationControllerOwnerOwner,
28 ToolbarOwner> 28 NewTabPagePanelProtocol,
29 ToolbarOwner>
29 30
30 // Initialization method. 31 // Initialization method.
31 - (id)initWithLoader:(id<UrlLoader>)loader 32 - (id)initWithLoader:(id<UrlLoader>)loader
32 browserState:(ios::ChromeBrowserState*)browserState 33 browserState:(ios::ChromeBrowserState*)browserState
33 focuser:(id<OmniboxFocuser>)focuser 34 focuser:(id<OmniboxFocuser>)focuser
34 webToolbarDelegate:(id<WebToolbarDelegate>)webToolbarDelegate 35 webToolbarDelegate:(id<WebToolbarDelegate>)webToolbarDelegate
35 tabModel:(TabModel*)tabModel; 36 tabModel:(TabModel*)tabModel;
36 37
37 // Get the maximum number of sites shown. 38 // Get the maximum number of sites shown.
38 + (NSUInteger)maxSitesShown; 39 + (NSUInteger)maxSitesShown;
39 40
40 @end 41 @end
41 42
42 #endif // IOS_CHROME_BROWSER_UI_NTP_GOOGLE_LANDING_CONTROLLER_H_ 43 #endif // IOS_CHROME_BROWSER_UI_NTP_GOOGLE_LANDING_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698