Index: chrome/browser/ui/cocoa/autofill/autofill_textfield.mm |
diff --git a/chrome/browser/ui/cocoa/autofill/autofill_textfield.mm b/chrome/browser/ui/cocoa/autofill/autofill_textfield.mm |
index 6be76c0bfdfa07e59ba17d994bacda6ecf7660d6..3daad77c12fc6a0c088640f882ce05e1776f2c87 100644 |
--- a/chrome/browser/ui/cocoa/autofill/autofill_textfield.mm |
+++ b/chrome/browser/ui/cocoa/autofill/autofill_textfield.mm |
@@ -27,6 +27,22 @@ const CGFloat kGap = 6.0; // gap between icon and text. |
return [AutofillTextFieldCell class]; |
} |
+- (BOOL)invalid { |
+ return [[self cell] invalid]; |
+} |
+ |
+- (void)setInvalid:(BOOL)invalid { |
+ [[self cell] setInvalid:invalid]; |
+} |
+ |
+- (NSString*)fieldValue { |
+ return [[self cell] fieldValue]; |
+} |
+ |
+- (void)setFieldValue:(NSString*)fieldValue { |
+ [[self cell] setFieldValue:fieldValue]; |
+} |
+ |
@end |
@implementation AutofillTextFieldCell |
@@ -41,6 +57,14 @@ const CGFloat kGap = 6.0; // gap between icon and text. |
icon_.reset([icon retain]); |
} |
+- (NSString*)fieldValue { |
+ return [self stringValue]; |
+} |
+ |
+- (void)setFieldValue:(NSString*)fieldValue { |
+ [self setStringValue:fieldValue]; |
+} |
+ |
- (NSRect)textFrameForFrame:(NSRect)frame { |
if (icon_) { |
NSRect textFrame, iconFrame; |