Index: ios/showcase/widget/sc_search_widget_coordinator.mm |
diff --git a/ios/showcase/widget/sc_search_widget_coordinator.mm b/ios/showcase/widget/sc_search_widget_coordinator.mm |
new file mode 100644 |
index 0000000000000000000000000000000000000000..63d68a6e5a7d158e3be0dd6542c7dbc1e2303923 |
--- /dev/null |
+++ b/ios/showcase/widget/sc_search_widget_coordinator.mm |
@@ -0,0 +1,25 @@ |
+// Copyright 2017 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/widget/sc_search_widget_coordinator.h" |
+ |
+#import "ios/chrome/search_widget_extension/search_widget_view_controller.h" |
+ |
+#if !defined(__has_feature) || !__has_feature(objc_arc) |
+#error "This file requires ARC support." |
+#endif |
+ |
+@implementation SCSearchWidgetCoordinator |
+ |
+@synthesize baseViewController; |
+ |
+- (void)start { |
+ SearchWidgetViewController* searchWidget = |
+ [[SearchWidgetViewController alloc] init]; |
+ searchWidget.title = @"Search Widget"; |
+ searchWidget.view.backgroundColor = [UIColor whiteColor]; |
+ [self.baseViewController pushViewController:searchWidget animated:YES]; |
+} |
+ |
+@end |