diff options
author | avi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-26 16:12:55 +0000 |
---|---|---|
committer | avi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-26 16:12:55 +0000 |
commit | ea05398d96221f8cc20939bad5fe52d4b11d3bd4 (patch) | |
tree | 6cd25c8065d5743a3f682c18c61f4d5da726d709 /chrome/browser/autofill/autofill_text_field_mac.h | |
parent | 9d6dcdf0882b57fbb0825ab880f321d7682bad4a (diff) | |
download | chromium_src-ea05398d96221f8cc20939bad5fe52d4b11d3bd4.zip chromium_src-ea05398d96221f8cc20939bad5fe52d4b11d3bd4.tar.gz chromium_src-ea05398d96221f8cc20939bad5fe52d4b11d3bd4.tar.bz2 |
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
Diffstat (limited to 'chrome/browser/autofill/autofill_text_field_mac.h')
-rw-r--r-- | chrome/browser/autofill/autofill_text_field_mac.h | 18 |
1 files changed, 14 insertions, 4 deletions
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 <Cocoa/Cocoa.h> -// 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<NSString> obfuscatedValue_; } @end |