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

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

Issue 6033010: Support autocompletion for HTMl5 tags:"email", "month" and "tel". (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Fix format errors and other naming issues. Created 9 years, 11 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 | Annotate | Revision Log
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_CREDIT_CARD_H_ 5 #ifndef CHROME_BROWSER_AUTOFILL_CREDIT_CARD_H_
6 #define CHROME_BROWSER_AUTOFILL_CREDIT_CARD_H_ 6 #define CHROME_BROWSER_AUTOFILL_CREDIT_CARD_H_
7 #pragma once 7 #pragma once
8 8
9 #include <vector> 9 #include <vector>
10 10
(...skipping 16 matching lines...) Expand all
27 FieldTypeSet* possible_types) const; 27 FieldTypeSet* possible_types) const;
28 virtual void GetAvailableFieldTypes(FieldTypeSet* available_types) const; 28 virtual void GetAvailableFieldTypes(FieldTypeSet* available_types) const;
29 virtual void FindInfoMatches(const AutoFillType& type, 29 virtual void FindInfoMatches(const AutoFillType& type,
30 const string16& info, 30 const string16& info,
31 std::vector<string16>* matched_text) const; 31 std::vector<string16>* matched_text) const;
32 virtual string16 GetFieldText(const AutoFillType& type) const; 32 virtual string16 GetFieldText(const AutoFillType& type) const;
33 virtual string16 GetPreviewText(const AutoFillType& type) const; 33 virtual string16 GetPreviewText(const AutoFillType& type) const;
34 virtual void SetInfo(const AutoFillType& type, const string16& value); 34 virtual void SetInfo(const AutoFillType& type, const string16& value);
35 virtual const string16 Label() const; 35 virtual const string16 Label() const;
36 36
37 // Special method to set value for HTML5 month input type.
38 void SetInfoForMonthInputType(const string16& value);
39
37 // The number altered for display, for example: ******1234 40 // The number altered for display, for example: ******1234
38 string16 ObfuscatedNumber() const; 41 string16 ObfuscatedNumber() const;
39 // Credit card preview summary, for example: ******1234, Exp: 01/2020 42 // Credit card preview summary, for example: ******1234, Exp: 01/2020
40 string16 PreviewSummary() const; 43 string16 PreviewSummary() const;
41 // The last four digits of the credit card number. 44 // The last four digits of the credit card number.
42 string16 LastFourDigits() const; 45 string16 LastFourDigits() const;
43 46
44 const string16& type() const { return type_; } 47 const string16& type() const { return type_; }
45 48
46 // The guid is the primary identifier for |CreditCard| objects. 49 // The guid is the primary identifier for |CreditCard| objects.
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 extern const char* const kAmericanExpressCard; 159 extern const char* const kAmericanExpressCard;
157 extern const char* const kDinersCard; 160 extern const char* const kDinersCard;
158 extern const char* const kDiscoverCard; 161 extern const char* const kDiscoverCard;
159 extern const char* const kGenericCard; 162 extern const char* const kGenericCard;
160 extern const char* const kJCBCard; 163 extern const char* const kJCBCard;
161 extern const char* const kMasterCard; 164 extern const char* const kMasterCard;
162 extern const char* const kSoloCard; 165 extern const char* const kSoloCard;
163 extern const char* const kVisaCard; 166 extern const char* const kVisaCard;
164 167
165 #endif // CHROME_BROWSER_AUTOFILL_CREDIT_CARD_H_ 168 #endif // CHROME_BROWSER_AUTOFILL_CREDIT_CARD_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698