OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_CONTENT_BROWSER_WALLET_WALLET_ITEMS_H_ | 5 #ifndef COMPONENTS_AUTOFILL_CONTENT_BROWSER_WALLET_WALLET_ITEMS_H_ |
6 #define COMPONENTS_AUTOFILL_CONTENT_BROWSER_WALLET_WALLET_ITEMS_H_ | 6 #define COMPONENTS_AUTOFILL_CONTENT_BROWSER_WALLET_WALLET_ITEMS_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 10 matching lines...) Expand all Loading... |
21 namespace base { | 21 namespace base { |
22 class DictionaryValue; | 22 class DictionaryValue; |
23 } | 23 } |
24 | 24 |
25 namespace gfx { | 25 namespace gfx { |
26 class Image; | 26 class Image; |
27 } | 27 } |
28 | 28 |
29 namespace autofill { | 29 namespace autofill { |
30 | 30 |
| 31 class AutofillType; |
| 32 |
31 FORWARD_DECLARE_TEST(WalletInstrumentWrapperTest, GetInfoCreditCardExpMonth); | 33 FORWARD_DECLARE_TEST(WalletInstrumentWrapperTest, GetInfoCreditCardExpMonth); |
32 FORWARD_DECLARE_TEST(WalletInstrumentWrapperTest, | 34 FORWARD_DECLARE_TEST(WalletInstrumentWrapperTest, |
33 GetDisplayTextEmptyWhenExpired); | 35 GetDisplayTextEmptyWhenExpired); |
34 | 36 |
35 namespace wallet { | 37 namespace wallet { |
36 | 38 |
37 class WalletItemsTest; | 39 class WalletItemsTest; |
38 | 40 |
39 // WalletItems is a collection of cards and addresses that a user picks from to | 41 // WalletItems is a collection of cards and addresses that a user picks from to |
40 // construct a full wallet. However, it also provides a transaction ID which | 42 // construct a full wallet. However, it also provides a transaction ID which |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 | 83 |
82 // Gets an image to display for this instrument. | 84 // Gets an image to display for this instrument. |
83 const gfx::Image& CardIcon() const; | 85 const gfx::Image& CardIcon() const; |
84 | 86 |
85 // Returns a pair of strings that summarizes this CC, | 87 // Returns a pair of strings that summarizes this CC, |
86 // suitable for display to the user. | 88 // suitable for display to the user. |
87 base::string16 DisplayName() const; | 89 base::string16 DisplayName() const; |
88 base::string16 DisplayNameDetail() const; | 90 base::string16 DisplayNameDetail() const; |
89 | 91 |
90 // Gets info that corresponds with |type|. | 92 // Gets info that corresponds with |type|. |
91 base::string16 GetInfo(AutofillFieldType type, | 93 base::string16 GetInfo(const AutofillType& type, |
92 const std::string& app_locale) const; | 94 const std::string& app_locale) const; |
93 | 95 |
94 // Returns the display type of the and last four digits (e.g. Visa - 4444). | 96 // Returns the display type of the and last four digits (e.g. Visa - 4444). |
95 base::string16 TypeAndLastFourDigits() const; | 97 base::string16 TypeAndLastFourDigits() const; |
96 | 98 |
97 const base::string16& descriptive_name() const { return descriptive_name_; } | 99 const base::string16& descriptive_name() const { return descriptive_name_; } |
98 const Type& type() const { return type_; } | 100 const Type& type() const { return type_; } |
99 const std::vector<base::string16>& supported_currencies() const { | 101 const std::vector<base::string16>& supported_currencies() const { |
100 return supported_currencies_; | 102 return supported_currencies_; |
101 } | 103 } |
102 const base::string16& last_four_digits() const { return last_four_digits_; } | 104 const base::string16& last_four_digits() const { return last_four_digits_; } |
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
289 // Legal documents the user must accept before using Online Wallet. | 291 // Legal documents the user must accept before using Online Wallet. |
290 ScopedVector<LegalDocument> legal_documents_; | 292 ScopedVector<LegalDocument> legal_documents_; |
291 | 293 |
292 DISALLOW_COPY_AND_ASSIGN(WalletItems); | 294 DISALLOW_COPY_AND_ASSIGN(WalletItems); |
293 }; | 295 }; |
294 | 296 |
295 } // namespace wallet | 297 } // namespace wallet |
296 } // namespace autofill | 298 } // namespace autofill |
297 | 299 |
298 #endif // COMPONENTS_AUTOFILL_CONTENT_BROWSER_WALLET_WALLET_ITEMS_H_ | 300 #endif // COMPONENTS_AUTOFILL_CONTENT_BROWSER_WALLET_WALLET_ITEMS_H_ |
OLD | NEW |