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/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 | |
OLD | NEW |