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

Unified Diff: ios/showcase/core/showcase_view_controller.h

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.mm ('k') | ios/showcase/core/showcase_view_controller.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/showcase/core/showcase_view_controller.h
diff --git a/ios/showcase/core/showcase_view_controller.h b/ios/showcase/core/showcase_view_controller.h
new file mode 100644
index 0000000000000000000000000000000000000000..b8b4f3941bd78770852f5940beb3dceaa5719e48
--- /dev/null
+++ b/ios/showcase/core/showcase_view_controller.h
@@ -0,0 +1,39 @@
+// 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.
+
+#ifndef IOS_SHOWCASE_CORE_SHOWCASE_VIEW_CONTROLLER_H_
+#define IOS_SHOWCASE_CORE_SHOWCASE_VIEW_CONTROLLER_H_
+
+#import <UIKit/UIKit.h>
+
+namespace showcase {
+
+// Required name for class that is intended to be tested.
+extern NSString* const kClassForDisplayKey;
+
+// Required name for class that will be instantiated.
+extern NSString* const kClassForInstantiationKey;
+
+// Optional description of the use case for the row.
+extern NSString* const kUseCaseKey;
+
+// Type for one row of model.
+typedef NSDictionary<NSString*, NSString*> ModelRow;
+
+} // namespace showcase
+
+// TableViewController that displays a searchable list of rows.
+@interface ShowcaseViewController : UITableViewController
+// Initializes the tableView with a list of rows.
+- (instancetype)initWithRows:(NSArray<showcase::ModelRow*>*)rows
+ NS_DESIGNATED_INITIALIZER;
+
+- (instancetype)init NS_UNAVAILABLE;
+- (instancetype)initWithCoder:(NSCoder*)aDecoder NS_UNAVAILABLE;
+- (instancetype)initWithNibName:(NSString*)nibNameOrNil
+ bundle:(NSBundle*)nibBundleOrNil NS_UNAVAILABLE;
+- (instancetype)initWithStyle:(UITableViewStyle)style NS_UNAVAILABLE;
+@end
+
+#endif // IOS_SHOWCASE_CORE_SHOWCASE_VIEW_CONTROLLER_H_
« no previous file with comments | « ios/showcase/core/showcase_model.mm ('k') | ios/showcase/core/showcase_view_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698