From ea05398d96221f8cc20939bad5fe52d4b11d3bd4 Mon Sep 17 00:00:00 2001 From: "avi@chromium.org" Date: Fri, 26 Mar 2010 16:12:55 +0000 Subject: Adds obscuring to credit card numbers when displayed. xib change: added tag to fields that are used for credit card numbers. BUG=http://crbug.com/38259 TEST=as in bug Review URL: http://codereview.chromium.org/1219009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@42768 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/autofill/autofill_text_field_mac.h | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) (limited to 'chrome/browser/autofill/autofill_text_field_mac.h') diff --git a/chrome/browser/autofill/autofill_text_field_mac.h b/chrome/browser/autofill/autofill_text_field_mac.h index 559b0a8..a774aca 100644 --- a/chrome/browser/autofill/autofill_text_field_mac.h +++ b/chrome/browser/autofill/autofill_text_field_mac.h @@ -7,11 +7,21 @@ #import -// Subclass of NSTextField that automatically scrolls containing NSScrollView -// to visually reveal the text field. When the user tabs between text fields -// embedded in a scrolling view they'd like the "first responder" to be visible. -// This class helps achieve that. +#import "base/scoped_nsobject.h" + +#define AUTOFILL_CC_TAG 22 + +// Subclass of NSTextField with special abilities: +// - automatically scrolls containing NSScrollView to visually reveal itself +// on focus +// - properly obfuscates credit card numbers + @interface AutoFillTextField : NSTextField { + BOOL isCreditCardField_; + BOOL isObfuscated_; + BOOL isBeingSelected_; + + scoped_nsobject obfuscatedValue_; } @end -- cgit v1.1