Index: ios/showcase/ntp/sc_ntp_coordinator.mm |
diff --git a/ios/showcase/ntp/sc_ntp_coordinator.mm b/ios/showcase/ntp/sc_ntp_coordinator.mm |
new file mode 100644 |
index 0000000000000000000000000000000000000000..b6d8ad5b5041618019f906d72730fd8a75e15c50 |
--- /dev/null |
+++ b/ios/showcase/ntp/sc_ntp_coordinator.mm |
@@ -0,0 +1,22 @@ |
+// Copyright 2017 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#import "ios/showcase/ntp/sc_ntp_coordinator.h" |
+ |
+#import "ios/clean/chrome/browser/ui/ntp/new_tab_page_view_controller.h" |
+ |
+#if !defined(__has_feature) || !__has_feature(objc_arc) |
+#error "This file requires ARC support." |
+#endif |
+ |
+@implementation SCNTPCoordinator |
+ |
+@synthesize baseViewController; |
+ |
+- (void)start { |
+ UIViewController* ntp = [[NTPViewController alloc] init]; |
lpromero
2017/02/24 10:19:00
This is where you setup ntp with whatever you want
|
+ [self.baseViewController pushViewController:ntp animated:YES]; |
+} |
+ |
+@end |