| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 CHROME_BROWSER_AUTOFILL_AUTOFILL_TEXT_FIELD_MAC_ | 5 #ifndef CHROME_BROWSER_AUTOFILL_AUTOFILL_TEXT_FIELD_MAC_ |
| 6 #define CHROME_BROWSER_AUTOFILL_AUTOFILL_TEXT_FIELD_MAC_ | 6 #define CHROME_BROWSER_AUTOFILL_AUTOFILL_TEXT_FIELD_MAC_ |
| 7 | 7 |
| 8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
| 9 | 9 |
| 10 #import "base/scoped_nsobject.h" | 10 #import "base/scoped_nsobject.h" |
| 11 | 11 |
| 12 #define AUTOFILL_CC_TAG 22 | |
| 13 | |
| 14 // Subclass of NSTextField with special abilities: | 12 // Subclass of NSTextField with special abilities: |
| 15 // - automatically scrolls containing NSScrollView to visually reveal itself | 13 // - automatically scrolls containing NSScrollView to visually reveal itself |
| 16 // on focus | 14 // on focus |
| 17 // - properly obfuscates credit card numbers | 15 // - properly obfuscates credit card numbers |
| 18 | 16 |
| 19 @interface AutoFillTextField : NSTextField { | 17 @interface AutoFillTextField : NSTextField { |
| 20 BOOL isCreditCardField_; | 18 BOOL isCreditCardField_; |
| 21 BOOL isObfuscated_; | 19 BOOL isObfuscated_; |
| 22 BOOL isBeingSelected_; | 20 BOOL isBeingSelected_; |
| 23 | 21 |
| 24 scoped_nsobject<NSString> obfuscatedValue_; | 22 scoped_nsobject<NSString> obfuscatedValue_; |
| 25 } | 23 } |
| 26 @end | 24 @end |
| 27 | 25 |
| 28 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_TEXT_FIELD_MAC_ | 26 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_TEXT_FIELD_MAC_ |
| OLD | NEW |