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

Side by Side Diff: ios/clean/chrome/browser/ui/ntp/ntp_home_coordinator.mm

Issue 2785893003: [ios clean] Add placeholder for NTP bookmarks, chrome home and open tabs. (Closed)
Patch Set: Rebase 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #import "ios/clean/chrome/browser/ui/ntp/ntp_home_coordinator.h"
6
7 #import "ios/chrome/browser/ui/ntp/google_landing_controller.h"
8 #import "ios/clean/chrome/browser/ui/ntp/ntp_home_mediator.h"
9 #import "ios/shared/chrome/browser/coordinator_context/coordinator_context.h"
10 #import "ios/shared/chrome/browser/ui/browser_list/browser.h"
11 #import "ios/shared/chrome/browser/ui/coordinators/browser_coordinator+internal. h"
12
13 #if !defined(__has_feature) || !__has_feature(objc_arc)
14 #error "This file requires ARC support."
15 #endif
16
17 @interface NTPHomeCoordinator ()
18 @property(nonatomic, strong) NTPHomeMediator* mediator;
19 @property(nonatomic, strong) UIViewController* viewController;
20 @property(nonatomic, strong) GoogleLandingController* wrapperController;
21 @end
22
23 @implementation NTPHomeCoordinator
24 @synthesize mediator = _mediator;
25 @synthesize viewController = _viewController;
26 @synthesize wrapperController = _wrapperController;
27
28 - (void)start {
29 // PLACEHOLDER: Re-using old view controllers for now.
30 self.mediator = [[NTPHomeMediator alloc] init];
31 self.mediator.dispatcher = static_cast<id>(self.browser->dispatcher());
32 self.wrapperController = [[GoogleLandingController alloc]
33 initWithLoader:self.mediator
34 browserState:self.browser->browser_state()
35 focuser:self.mediator
36 webToolbarDelegate:nil
37 tabModel:nil];
38 self.viewController = [[UIViewController alloc] init];
39 self.viewController.view = [self.wrapperController view];
40 [super start];
41 }
42
43 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698