Chromium Code Reviews| Index: ios/chrome/proto_today_extension/widget_view_controller.mm |
| diff --git a/ios/chrome/proto_today_extension/widget_view_controller.mm b/ios/chrome/proto_today_extension/widget_view_controller.mm |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..4e87e868db931d0fdce7c3bf113aa1ebd5d3f487 |
| --- /dev/null |
| +++ b/ios/chrome/proto_today_extension/widget_view_controller.mm |
| @@ -0,0 +1,27 @@ |
| +// 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/chrome/proto_today_extension/widget_view_controller.h" |
|
Olivier
2017/01/17 10:13:05
Add space before
lody
2017/01/17 17:31:46
Done.
|
| + |
| +#import <NotificationCenter/NotificationCenter.h> |
| + |
| +#import "ios/chrome/proto_today_extension/widget_view.h" |
| + |
| +@interface WidgetViewController () |
| +@property(nonatomic) WidgetView* widgetView; |
|
Olivier
2017/01/17 10:13:05
Is this ARC?
lody
2017/01/17 17:31:46
now it is! ;)
|
| +@end |
| + |
| +@implementation WidgetViewController |
| + |
| +@synthesize widgetView = _widgetView; |
| + |
| +#pragma mark - UIViewController |
| + |
| +- (void)viewDidLoad { |
| + [super viewDidLoad]; |
| + |
| + [self setWidgetView:[[WidgetView alloc] init]]; |
|
sdefresne
2017/01/17 10:39:07
This leaks unless you're using ARC (which you are
lody
2017/01/17 17:31:46
leak fixed.
regarding using properties syntax, is
|
| + [self.view addSubview:_widgetView]; |
| +} |
| + |
| +@end |