OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #import "ios/showcase/core/showcase_model.h" | 5 #import "ios/showcase/core/showcase_model.h" |
6 | 6 |
7 #if !defined(__has_feature) || !__has_feature(objc_arc) | 7 #if !defined(__has_feature) || !__has_feature(objc_arc) |
8 #error "This file requires ARC support." | 8 #error "This file requires ARC support." |
9 #endif | 9 #endif |
10 | 10 |
11 @implementation ShowcaseModel | 11 @implementation ShowcaseModel |
12 | 12 |
13 // Insert additional rows in this array. All rows will be sorted upon | 13 // Insert additional rows in this array. All rows will be sorted upon |
14 // import into Showcase. | 14 // import into Showcase. |
15 // |kShowcaseClassForDisplayKey| and |kShowcaseClassForInstantiationKey| are | 15 // |kShowcaseClassForDisplayKey| and |kShowcaseClassForInstantiationKey| are |
16 // required. |kShowcaseUseCaseKey| is optional. | 16 // required. |kShowcaseUseCaseKey| is optional. |
17 + (NSArray<showcase::ModelRow*>*)model { | 17 + (NSArray<showcase::ModelRow*>*)model { |
18 return @[ | 18 return @[ |
19 @{ | 19 @{ |
20 showcase::kClassForDisplayKey : @"ContentSuggestionsViewController", | 20 showcase::kClassForDisplayKey : @"ContentSuggestionsViewController", |
21 showcase::kClassForInstantiationKey : @"SCContentSuggestionsCoordinator", | 21 showcase::kClassForInstantiationKey : @"SCContentSuggestionsCoordinator", |
22 showcase::kUseCaseKey : @"Content Suggestions UI", | 22 showcase::kUseCaseKey : @"Content Suggestions UI", |
23 }, | 23 }, |
24 @{ | 24 @{ |
25 showcase::kClassForDisplayKey : @"MenuViewController", | 25 showcase::kClassForDisplayKey : @"MenuViewController", |
26 showcase::kClassForInstantiationKey : @"MenuViewController", | 26 showcase::kClassForInstantiationKey : @"MenuViewController", |
27 showcase::kUseCaseKey : @"Tools menu", | 27 showcase::kUseCaseKey : @"Tools menu", |
28 }, | 28 }, |
29 @{ | 29 @{ |
| 30 showcase::kClassForDisplayKey : @"NTPViewController", |
| 31 showcase::kClassForInstantiationKey : @"SCNTPCoordinator", |
| 32 showcase::kUseCaseKey : @"NTP", |
| 33 }, |
| 34 @{ |
30 showcase::kClassForDisplayKey : @"PaymentRequestEditViewController", | 35 showcase::kClassForDisplayKey : @"PaymentRequestEditViewController", |
31 showcase::kClassForInstantiationKey : @"SCPaymentsEditorCoordinator", | 36 showcase::kClassForInstantiationKey : @"SCPaymentsEditorCoordinator", |
32 showcase::kUseCaseKey : @"Generic payment request editor", | 37 showcase::kUseCaseKey : @"Generic payment request editor", |
33 }, | 38 }, |
34 @{ | 39 @{ |
35 showcase::kClassForDisplayKey : @"PaymentRequestPickerViewController", | 40 showcase::kClassForDisplayKey : @"PaymentRequestPickerViewController", |
36 showcase::kClassForInstantiationKey : @"SCPaymentsPickerCoordinator", | 41 showcase::kClassForInstantiationKey : @"SCPaymentsPickerCoordinator", |
37 showcase::kUseCaseKey : @"Payment request picker view", | 42 showcase::kUseCaseKey : @"Payment request picker view", |
38 }, | 43 }, |
39 @{ | 44 @{ |
(...skipping 23 matching lines...) Expand all Loading... |
63 }, | 68 }, |
64 @{ | 69 @{ |
65 showcase::kClassForDisplayKey : @"UITableViewCell", | 70 showcase::kClassForDisplayKey : @"UITableViewCell", |
66 showcase::kClassForInstantiationKey : @"UIKitTableViewCellViewController", | 71 showcase::kClassForInstantiationKey : @"UIKitTableViewCellViewController", |
67 showcase::kUseCaseKey : @"UIKit Table Cells", | 72 showcase::kUseCaseKey : @"UIKit Table Cells", |
68 }, | 73 }, |
69 ]; | 74 ]; |
70 } | 75 } |
71 | 76 |
72 @end | 77 @end |
OLD | NEW |