OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CHROME_BROWSER_AUTOFILL_AUTOFILL_TEXT_FIELD_MAC_ | |
6 #define CHROME_BROWSER_AUTOFILL_AUTOFILL_TEXT_FIELD_MAC_ | |
7 #pragma once | |
8 | |
9 #import <Cocoa/Cocoa.h> | |
10 | |
11 #import "base/scoped_nsobject.h" | |
12 | |
13 // Subclass of NSTextField with special abilities: | |
14 // - automatically scrolls containing NSScrollView to visually reveal itself | |
15 // on focus | |
16 // - properly obfuscates credit card numbers | |
17 | |
18 @interface AutoFillTextField : NSTextField { | |
19 BOOL isCreditCardField_; | |
20 BOOL isObfuscated_; | |
21 BOOL isBeingSelected_; | |
22 | |
23 scoped_nsobject<NSString> obfuscatedValue_; | |
24 } | |
25 @end | |
26 | |
27 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_TEXT_FIELD_MAC_ | |
OLD | NEW |