OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 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/showcase/suggestions/sc_suggestions_coordinator.h" |
| 6 |
| 7 #import "ios/chrome/browser/ui/suggestions/suggestions_commands.h" |
| 8 #import "ios/chrome/browser/ui/suggestions/suggestions_view_controller.h" |
| 9 |
| 10 #if !defined(__has_feature) || !__has_feature(objc_arc) |
| 11 #error "This file requires ARC support." |
| 12 #endif |
| 13 |
| 14 @interface SCSuggestionsCoordinator ()<SuggestionsCommands> |
| 15 |
| 16 @end |
| 17 |
| 18 @implementation SCSuggestionsCoordinator |
| 19 |
| 20 @synthesize baseViewController; |
| 21 |
| 22 #pragma mark - Coordinator |
| 23 |
| 24 - (void)start { |
| 25 SuggestionsViewController* suggestion = [[SuggestionsViewController alloc] |
| 26 initWithStyle:CollectionViewControllerStyleDefault]; |
| 27 |
| 28 suggestion.suggestionCommandHandler = self; |
| 29 |
| 30 [self.baseViewController pushViewController:suggestion animated:YES]; |
| 31 } |
| 32 |
| 33 #pragma mark - SuggestionsCommands |
| 34 |
| 35 - (void)addEmptyItem { |
| 36 } |
| 37 |
| 38 @end |
OLD | NEW |