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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: ios/showcase/suggestions/suggestions_coordinator.mm
diff --git a/ios/showcase/suggestions/suggestions_coordinator.mm b/ios/showcase/suggestions/suggestions_coordinator.mm
new file mode 100644
index 0000000000000000000000000000000000000000..473d1465195b4bab2c2d65081ecd671e669daeb2
--- /dev/null
+++ b/ios/showcase/suggestions/suggestions_coordinator.mm
@@ -0,0 +1,33 @@
+// Copyright 2016 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/suggestions/suggestions_coordinator.h"
+
+#import "ios/chrome/browser/ui/suggestions/suggestions_view_controller.h"
+
+#if !defined(__has_feature) || !__has_feature(objc_arc)
+#error "This file requires ARC support."
+#endif
+
+@implementation SuggestionsCoordinator
+
+@synthesize baseViewController;
+
+#pragma mark - Coordinator
+
+- (void)start {
+ SuggestionsViewController* suggestion = [[SuggestionsViewController alloc]
+ initWithStyle:CollectionViewControllerStyleDefault];
+
+ suggestion.actionsDelegate = self;
+
+ [self.baseViewController pushViewController:suggestion animated:YES];
+}
+
+#pragma mark - SuggestionsActions
+
+- (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
+}
+
+@end

Powered by Google App Engine
This is Rietveld 408576698