| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef IOS_CHROME_BROWSER_UI_OMNIBOX_OMNIBOX_TEXT_FIELD_IOS_H_ | 5 #ifndef IOS_CHROME_BROWSER_UI_OMNIBOX_OMNIBOX_TEXT_FIELD_IOS_H_ |
| 6 #define IOS_CHROME_BROWSER_UI_OMNIBOX_OMNIBOX_TEXT_FIELD_IOS_H_ | 6 #define IOS_CHROME_BROWSER_UI_OMNIBOX_OMNIBOX_TEXT_FIELD_IOS_H_ |
| 7 | 7 |
| 8 #import <UIKit/UIKit.h> | 8 #import <UIKit/UIKit.h> |
| 9 | 9 |
| 10 #include "base/mac/scoped_nsobject.h" | 10 #include "base/mac/scoped_nsobject.h" |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 | 135 |
| 136 // Fade in/out the text and auxillary views depending on |style|. | 136 // Fade in/out the text and auxillary views depending on |style|. |
| 137 - (void)animateFadeWithStyle:(OmniboxTextFieldFadeStyle)style; | 137 - (void)animateFadeWithStyle:(OmniboxTextFieldFadeStyle)style; |
| 138 // Reverses animations added by |-animateFadeWithStyle:|. | 138 // Reverses animations added by |-animateFadeWithStyle:|. |
| 139 - (void)reverseFadeAnimations; | 139 - (void)reverseFadeAnimations; |
| 140 // Called when animations added by |-animateFadeWithStyle:| can be removed. | 140 // Called when animations added by |-animateFadeWithStyle:| can be removed. |
| 141 - (void)cleanUpFadeAnimations; | 141 - (void)cleanUpFadeAnimations; |
| 142 | 142 |
| 143 // Redeclare the delegate property to be the more specific | 143 // Redeclare the delegate property to be the more specific |
| 144 // OmniboxTextFieldDelegate. | 144 // OmniboxTextFieldDelegate. |
| 145 @property(nonatomic, assign) id<OmniboxTextFieldDelegate> delegate; | 145 @property(nonatomic, weak) id<OmniboxTextFieldDelegate> delegate; |
| 146 | 146 |
| 147 @property(nonatomic, retain) NSString* preEditText; | 147 @property(nonatomic, strong) NSString* preEditText; |
| 148 @property(nonatomic) BOOL clearingPreEditText; | 148 @property(nonatomic) BOOL clearingPreEditText; |
| 149 @property(nonatomic, retain) UIColor* selectedTextBackgroundColor; | 149 @property(nonatomic, strong) UIColor* selectedTextBackgroundColor; |
| 150 @property(nonatomic, retain) UIColor* placeholderTextColor; | 150 @property(nonatomic, strong) UIColor* placeholderTextColor; |
| 151 @property(nonatomic, assign) BOOL incognito; | 151 @property(nonatomic, assign) BOOL incognito; |
| 152 | 152 |
| 153 @end | 153 @end |
| 154 | 154 |
| 155 // A category for defining new methods that access private ivars. | 155 // A category for defining new methods that access private ivars. |
| 156 @interface OmniboxTextFieldIOS (TestingUtilities) | 156 @interface OmniboxTextFieldIOS (TestingUtilities) |
| 157 - (UILabel*)preEditStaticLabel; | 157 - (UILabel*)preEditStaticLabel; |
| 158 @end | 158 @end |
| 159 | 159 |
| 160 #endif // IOS_CHROME_BROWSER_UI_OMNIBOX_OMNIBOX_TEXT_FIELD_IOS_H_ | 160 #endif // IOS_CHROME_BROWSER_UI_OMNIBOX_OMNIBOX_TEXT_FIELD_IOS_H_ |
| OLD | NEW |