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

Side by Side Diff: chrome/browser/autofill/autofill_text_field_mac.h

Issue 2878050: AutoFill credit card settings dialog should display obfuscated number in edit field (Closed)
Patch Set: Created 10 years, 5 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 unified diff | Download patch
OLDNEW
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_
OLDNEW
« no previous file with comments | « chrome/browser/autofill/autofill_dialog_controller_mac_unittest.mm ('k') | chrome/browser/autofill/autofill_text_field_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698