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

Unified Diff: ios/chrome/browser/autofill/form_input_accessory_view.mm

Issue 1305433003: Make Autofill work again on iPads running iOS 9. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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
Index: ios/chrome/browser/autofill/form_input_accessory_view.mm
diff --git a/ios/chrome/browser/autofill/form_input_accessory_view.mm b/ios/chrome/browser/autofill/form_input_accessory_view.mm
index a794ab43e4d2b5ab64b61d4012cc65aff8c783be..815c355e90abce92fa1f4baeda3db0f0f5b84abc 100644
--- a/ios/chrome/browser/autofill/form_input_accessory_view.mm
+++ b/ios/chrome/browser/autofill/form_input_accessory_view.mm
@@ -118,6 +118,20 @@ CGFloat GetNavigationViewWidth() {
return self;
}
+- (instancetype)initWithFrame:(CGRect)frame customView:(UIView*)customView {
+ self = [super initWithFrame:frame];
+ if (self) {
+ _customView.reset([customView retain]);
justincohen 2015/08/19 20:34:19 Why do we retain this at all
Justin Donnelly 2015/08/20 16:38:01 Don't know. My quick guess would be that something
+ customView.frame =
+ CGRectMake(0, 0, CGRectGetWidth(frame), CGRectGetHeight(frame));
+ [self addSubview:customView];
+
+ [[self class] addBackgroundImageInView:self
+ withImageName:@"autofill_keyboard_background"];
+ }
+ return self;
+}
+
#pragma mark -
#pragma mark UIInputViewAudioFeedback

Powered by Google App Engine
This is Rietveld 408576698