| OLD | NEW |
| (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/clean/chrome/browser/ui/omnibox/location_bar_view_controller.h" |
| 6 |
| 7 #import "ios/chrome/browser/ui/omnibox/omnibox_text_field_ios.h" |
| 8 |
| 9 #if !defined(__has_feature) || !__has_feature(objc_arc) |
| 10 #error "This file requires ARC support." |
| 11 #endif |
| 12 |
| 13 @interface LocationBarViewController () |
| 14 @property(nonatomic, readwrite, strong) OmniboxTextFieldIOS* omnibox; |
| 15 @end |
| 16 |
| 17 @implementation LocationBarViewController |
| 18 |
| 19 @synthesize omnibox = _omnibox; |
| 20 |
| 21 - (instancetype)init { |
| 22 if ((self = [super init])) { |
| 23 UIColor* textColor = [UIColor blackColor]; |
| 24 UIColor* tintColor = nil; |
| 25 _omnibox = |
| 26 [[OmniboxTextFieldIOS alloc] initWithFrame:CGRectZero |
| 27 font:[UIFont systemFontOfSize:14] |
| 28 textColor:textColor |
| 29 tintColor:tintColor]; |
| 30 } |
| 31 return self; |
| 32 } |
| 33 |
| 34 - (void)viewDidLoad { |
| 35 self.omnibox.autoresizingMask = |
| 36 UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight; |
| 37 self.omnibox.frame = self.view.bounds; |
| 38 [self.view addSubview:self.omnibox]; |
| 39 } |
| 40 |
| 41 @end |
| OLD | NEW |