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

Unified Diff: chrome/browser/ui/cocoa/autofill/autofill_textfield.mm

Issue 18112007: [rAC] added popup highlighting (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: New shiny rendering and other review fixes. Created 7 years, 6 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 | « chrome/browser/ui/cocoa/autofill/autofill_textfield.h ('k') | chrome/chrome_browser_ui.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « chrome/browser/ui/cocoa/autofill/autofill_textfield.h ('k') | chrome/chrome_browser_ui.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698