OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 COMPONENTS_AUTOFILL_BROWSER_WALLET_WALLET_ITEMS_H_ | 5 #ifndef COMPONENTS_AUTOFILL_BROWSER_WALLET_WALLET_ITEMS_H_ |
6 #define COMPONENTS_AUTOFILL_BROWSER_WALLET_WALLET_ITEMS_H_ | 6 #define COMPONENTS_AUTOFILL_BROWSER_WALLET_WALLET_ITEMS_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 | 79 |
80 // Gets an image to display for this instrument. | 80 // Gets an image to display for this instrument. |
81 const gfx::Image& CardIcon() const; | 81 const gfx::Image& CardIcon() const; |
82 | 82 |
83 // Returns a pair of strings that summarizes this CC, | 83 // Returns a pair of strings that summarizes this CC, |
84 // suitable for display to the user. | 84 // suitable for display to the user. |
85 string16 DisplayName() const; | 85 string16 DisplayName() const; |
86 string16 DisplayNameDetail() const; | 86 string16 DisplayNameDetail() const; |
87 | 87 |
88 // Gets info that corresponds with |type|. | 88 // Gets info that corresponds with |type|. |
89 string16 GetInfo(AutofillFieldType type) const; | 89 string16 GetInfo(AutofillFieldType type, |
| 90 const std::string& app_locale) const; |
90 | 91 |
91 // Returns the display type of the and last four digits (e.g. Visa - 4444). | 92 // Returns the display type of the and last four digits (e.g. Visa - 4444). |
92 string16 TypeAndLastFourDigits() const; | 93 string16 TypeAndLastFourDigits() const; |
93 | 94 |
94 const string16& descriptive_name() const { return descriptive_name_; } | 95 const string16& descriptive_name() const { return descriptive_name_; } |
95 const Type& type() const { return type_; } | 96 const Type& type() const { return type_; } |
96 const std::vector<string16>& supported_currencies() const { | 97 const std::vector<string16>& supported_currencies() const { |
97 return supported_currencies_; | 98 return supported_currencies_; |
98 } | 99 } |
99 const string16& last_four_digits() const { return last_four_digits_; } | 100 const string16& last_four_digits() const { return last_four_digits_; } |
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
282 // Legal documents the user must accept before using Online Wallet. | 283 // Legal documents the user must accept before using Online Wallet. |
283 ScopedVector<LegalDocument> legal_documents_; | 284 ScopedVector<LegalDocument> legal_documents_; |
284 | 285 |
285 DISALLOW_COPY_AND_ASSIGN(WalletItems); | 286 DISALLOW_COPY_AND_ASSIGN(WalletItems); |
286 }; | 287 }; |
287 | 288 |
288 } // namespace wallet | 289 } // namespace wallet |
289 } // namespace autofill | 290 } // namespace autofill |
290 | 291 |
291 #endif // COMPONENTS_AUTOFILL_BROWSER_WALLET_WALLET_ITEMS_H_ | 292 #endif // COMPONENTS_AUTOFILL_BROWSER_WALLET_WALLET_ITEMS_H_ |
OLD | NEW |