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

Side by Side Diff: ios/showcase/suggestions/sc_suggestions_coordinator.mm

Issue 2619353004: Creates the Suggestions UI (Closed)
Patch Set: Address comments Created 3 years, 11 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 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
OLDNEW
« ios/showcase/core/showcase_model.mm ('K') | « ios/showcase/suggestions/sc_suggestions_coordinator.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698