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

Side by Side Diff: ios/showcase/core/showcase_model.mm

Issue 2764063002: Add TabContainer to Showcase (Closed)
Patch Set: Other heuristic for back button Created 3 years, 9 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 unified diff | Download patch
« no previous file with comments | « ios/showcase/BUILD.gn ('k') | ios/showcase/suggestions/sc_suggestions_egtest.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 : @"SettingsViewController",
21 showcase::kClassForInstantiationKey : @"SCSettingsCoordinator",
22 showcase::kUseCaseKey : @"Main settings screen",
23 },
24 @{
25 showcase::kClassForDisplayKey : @"ContentSuggestionsViewController", 20 showcase::kClassForDisplayKey : @"ContentSuggestionsViewController",
26 showcase::kClassForInstantiationKey : @"SCSuggestionsCoordinator", 21 showcase::kClassForInstantiationKey : @"SCSuggestionsCoordinator",
27 showcase::kUseCaseKey : @"New Suggestions UI", 22 showcase::kUseCaseKey : @"New Suggestions UI",
28 }, 23 },
29 @{ 24 @{
30 showcase::kClassForDisplayKey : @"MenuViewController", 25 showcase::kClassForDisplayKey : @"MenuViewController",
31 showcase::kClassForInstantiationKey : @"MenuViewController", 26 showcase::kClassForInstantiationKey : @"MenuViewController",
32 showcase::kUseCaseKey : @"Tools menu", 27 showcase::kUseCaseKey : @"Tools menu",
33 }, 28 },
34 @{ 29 @{
35 showcase::kClassForDisplayKey : @"UITableViewCell", 30 showcase::kClassForDisplayKey : @"SettingsViewController",
36 showcase::kClassForInstantiationKey : @"UIKitTableViewCellViewController", 31 showcase::kClassForInstantiationKey : @"SCSettingsCoordinator",
37 showcase::kUseCaseKey : @"UIKit Table Cells", 32 showcase::kUseCaseKey : @"Main settings screen",
38 }, 33 },
39 @{ 34 @{
40 showcase::kClassForDisplayKey : @"TabGridViewController", 35 showcase::kClassForDisplayKey : @"TabGridViewController",
41 showcase::kClassForInstantiationKey : @"SCTabGridCoordinator", 36 showcase::kClassForInstantiationKey : @"SCTabGridCoordinator",
42 showcase::kUseCaseKey : @"Tab grid", 37 showcase::kUseCaseKey : @"Tab grid",
43 }, 38 },
44 @{ 39 @{
45 showcase::kClassForDisplayKey : @"TabStripContainerViewController", 40 showcase::kClassForDisplayKey : @"TabStripContainerViewController",
46 showcase::kClassForInstantiationKey : @"SCTabStripCoordinator", 41 showcase::kClassForInstantiationKey : @"SCTabStripCoordinator",
47 showcase::kUseCaseKey : @"Tab strip container", 42 showcase::kUseCaseKey : @"Tab strip container",
48 }, 43 },
49 @{ 44 @{
45 showcase::kClassForDisplayKey : @"TopToolbarTabViewController",
46 showcase::kClassForInstantiationKey : @"SCTopToolbarTabCoordinator",
47 showcase::kUseCaseKey : @"Top toolbar tab",
48 },
49 @{
50 showcase::kClassForDisplayKey : @"BottomToolbarTabViewController",
51 showcase::kClassForInstantiationKey : @"SCBottomToolbarTabCoordinator",
52 showcase::kUseCaseKey : @"Bottom toolbar tab",
53 },
54 @{
50 showcase::kClassForDisplayKey : @"ToolbarViewController", 55 showcase::kClassForDisplayKey : @"ToolbarViewController",
51 showcase::kClassForInstantiationKey : @"SCToolbarCoordinator", 56 showcase::kClassForInstantiationKey : @"SCToolbarCoordinator",
52 showcase::kUseCaseKey : @"Toolbar", 57 showcase::kUseCaseKey : @"Toolbar",
53 }, 58 },
59 @{
60 showcase::kClassForDisplayKey : @"UITableViewCell",
61 showcase::kClassForInstantiationKey : @"UIKitTableViewCellViewController",
62 showcase::kUseCaseKey : @"UIKit Table Cells",
63 },
54 ]; 64 ];
55 } 65 }
56 66
57 @end 67 @end
OLDNEW
« no previous file with comments | « ios/showcase/BUILD.gn ('k') | ios/showcase/suggestions/sc_suggestions_egtest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698