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

Unified Diff: ios/chrome/widget_extension/widget_view_controller.mm

Issue 2643723006: Add a fake cursor (blinking UIView) to the widget extension. (Closed)
Patch Set: nit 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ios/chrome/widget_extension/widget_view.mm ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/widget_extension/widget_view_controller.mm
diff --git a/ios/chrome/widget_extension/widget_view_controller.mm b/ios/chrome/widget_extension/widget_view_controller.mm
index dfe050a6a5c0766cc0e7d3564151b35788ff1729..735d49e34ec6f410364d6d22b104c6f805712cd9 100644
--- a/ios/chrome/widget_extension/widget_view_controller.mm
+++ b/ios/chrome/widget_extension/widget_view_controller.mm
@@ -30,6 +30,18 @@
WidgetView* widgetView = [[WidgetView alloc] init];
self.widgetView = widgetView;
[self.view addSubview:self.widgetView];
+
+ [self.widgetView setTranslatesAutoresizingMaskIntoConstraints:NO];
+ [NSLayoutConstraint activateConstraints:@[
+ [self.widgetView.leadingAnchor
+ constraintEqualToAnchor:[self.view leadingAnchor]],
+ [self.widgetView.trailingAnchor
+ constraintEqualToAnchor:[self.view trailingAnchor]],
+ [self.widgetView.heightAnchor
+ constraintEqualToAnchor:[self.view heightAnchor]],
+ [self.widgetView.widthAnchor
+ constraintEqualToAnchor:[self.view widthAnchor]]
+ ]];
}
@end
« no previous file with comments | « ios/chrome/widget_extension/widget_view.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698