| 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
|
|
|