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

Unified Diff: ios/showcase/core/showcase_model.mm

Issue 2592593003: Upstream ios/showcase source code. (Closed)
Patch Set: Created 4 years 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
« no previous file with comments | « ios/showcase/core/showcase_model.h ('k') | ios/showcase/core/showcase_view_controller.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/showcase/core/showcase_model.mm
diff --git a/ios/showcase/core/showcase_model.mm b/ios/showcase/core/showcase_model.mm
new file mode 100644
index 0000000000000000000000000000000000000000..158a897fa5ed4bb44e620cb3d68f66b5735f7043
--- /dev/null
+++ b/ios/showcase/core/showcase_model.mm
@@ -0,0 +1,42 @@
+// 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/core/showcase_model.h"
+
+#if !defined(__has_feature) || !__has_feature(objc_arc)
+#error "This file requires ARC support."
+#endif
+
+@implementation ShowcaseModel
+
+// Insert additional rows in this array. All rows will be sorted upon
+// import into Showcase.
+// |kShowcaseClassForDisplayKey| and |kShowcaseClassForInstantiationKey| are
+// required. |kShowcaseUseCaseKey| is optional.
++ (NSArray<showcase::ModelRow*>*)model {
+ return @[
+ @{
+ showcase::kClassForDisplayKey : @"SettingsViewController",
+ showcase::kClassForInstantiationKey : @"SettingsCoordinator",
+ showcase::kUseCaseKey : @"Main settings screen",
+ },
+ @{
+ showcase::kClassForDisplayKey : @"MenuViewController",
+ showcase::kClassForInstantiationKey : @"MenuViewController",
+ showcase::kUseCaseKey : @"Tools menu",
+ },
+ @{
+ showcase::kClassForDisplayKey : @"UITableViewCell",
+ showcase::kClassForInstantiationKey : @"UIKitTableViewCellViewController",
+ showcase::kUseCaseKey : @"UIKit Table Cells",
+ },
+ @{
+ showcase::kClassForDisplayKey : @"TabGridViewController",
+ showcase::kClassForInstantiationKey : @"SCTabGridCoordinator",
+ showcase::kUseCaseKey : @"Tab grid",
+ },
+ ];
+}
+
+@end
« no previous file with comments | « ios/showcase/core/showcase_model.h ('k') | ios/showcase/core/showcase_view_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698