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

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

Issue 2619353004: Creates the Suggestions UI (Closed)
Patch Set: Add OWNERS 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/suggestions_coordinator.h"
6
7 #import "ios/chrome/browser/ui/suggestions/suggestions_view_controller.h"
8
9 #if !defined(__has_feature) || !__has_feature(objc_arc)
10 #error "This file requires ARC support."
11 #endif
12
13 @implementation SuggestionsCoordinator
14
15 @synthesize baseViewController;
16
17 #pragma mark - Coordinator
18
19 - (void)start {
20 SuggestionsViewController* suggestion = [[SuggestionsViewController alloc]
21 initWithStyle:CollectionViewControllerStyleDefault];
22
23 suggestion.actionsDelegate = self;
24
25 [self.baseViewController pushViewController:suggestion animated:YES];
26 }
27
28 #pragma mark - SuggestionsActions
29
30 - (void)addItem {
marq (ping after 24h) 2017/01/10 13:46:25 You can use showcase/core/protocol_alerter to catc
gambard 2017/01/10 14:50:35 This will be used by the coordinator in the next C
31 }
32
33 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698