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

Unified Diff: ios/showcase/widget/sc_content_widget_coordinator.mm

Issue 2924013005: Add a showcase entry for the content widget. (Closed)
Patch Set: Created 3 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ios/showcase/widget/sc_content_widget_coordinator.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/showcase/widget/sc_content_widget_coordinator.mm
diff --git a/ios/showcase/widget/sc_content_widget_coordinator.mm b/ios/showcase/widget/sc_content_widget_coordinator.mm
new file mode 100644
index 0000000000000000000000000000000000000000..b58a321e1d52557af8f911e80c05b4f50764510e
--- /dev/null
+++ b/ios/showcase/widget/sc_content_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_content_widget_coordinator.h"
+
+#import "ios/chrome/content_widget_extension/content_widget_view_controller.h"
+
+#if !defined(__has_feature) || !__has_feature(objc_arc)
+#error "This file requires ARC support."
+#endif
+
+@implementation SCContentWidgetCoordinator
+
+@synthesize baseViewController;
+
+- (void)start {
+ ContentWidgetViewController* contentWidget =
+ [[ContentWidgetViewController alloc] init];
+ contentWidget.title = @"Content Widget";
+ contentWidget.view.backgroundColor = [UIColor whiteColor];
+ [self.baseViewController pushViewController:contentWidget animated:YES];
+}
+
+@end
« no previous file with comments | « ios/showcase/widget/sc_content_widget_coordinator.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698