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

Side by Side Diff: ios/chrome/widget_extension/widget_view_controller.mm

Issue 2632333002: Add a prototype today extension behind gn flag (Closed)
Patch Set: renaming Created 3 years, 11 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
OLDNEW
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #import "ios/chrome/widget_extension/widget_view_controller.h"
6
7 #import <NotificationCenter/NotificationCenter.h>
8
9 #import "ios/chrome/widget_extension/widget_view.h"
10
11 #if !defined(__has_feature) || !__has_feature(objc_arc)
12 #error "This file requires ARC support."
13 #endif
14
15 @interface WidgetViewController ()
16 @property(nonatomic, weak) WidgetView* widgetView;
17 @end
18
19 @implementation WidgetViewController
20
21 @synthesize widgetView = _widgetView;
22
23 #pragma mark - UIViewController
24
25 - (void)viewDidLoad {
26 [super viewDidLoad];
27
28 WidgetView* widgetView = [[WidgetView alloc] init];
29 self.widgetView = widgetView;
30 [self.view addSubview:self.widgetView];
31 }
32
33 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698