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

Side by Side Diff: components/autofill/browser/wallet/wallet_items.h

Issue 12755019: Add 2-lines summary to CC/Address for Wallet items. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: SubLabel and sub-label -> Sublabel and sublabel. Added description. Created 7 years, 9 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) 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 // instrument. 70 // instrument.
71 static scoped_ptr<MaskedInstrument> 71 static scoped_ptr<MaskedInstrument>
72 CreateMaskedInstrument(const base::DictionaryValue& dictionary); 72 CreateMaskedInstrument(const base::DictionaryValue& dictionary);
73 73
74 bool operator==(const MaskedInstrument& other) const; 74 bool operator==(const MaskedInstrument& other) const;
75 bool operator!=(const MaskedInstrument& other) const; 75 bool operator!=(const MaskedInstrument& other) const;
76 76
77 // Gets an image to display for this instrument. 77 // Gets an image to display for this instrument.
78 const gfx::Image& CardIcon() const; 78 const gfx::Image& CardIcon() const;
79 79
80 // Returns a pair of strings that summarizes this CC,
81 // suitable for display to the user.
82 string16 DisplayName() const;
83 string16 DisplayNameDetail() const;
84
80 const string16& descriptive_name() const { return descriptive_name_; } 85 const string16& descriptive_name() const { return descriptive_name_; }
81 const Type& type() const { return type_; } 86 const Type& type() const { return type_; }
82 const std::vector<string16>& supported_currencies() const { 87 const std::vector<string16>& supported_currencies() const {
83 return supported_currencies_; 88 return supported_currencies_;
84 } 89 }
85 const string16& last_four_digits() const { return last_four_digits_; } 90 const string16& last_four_digits() const { return last_four_digits_; }
86 int expiration_month() const { return expiration_month_; } 91 int expiration_month() const { return expiration_month_; }
87 int expiration_year() const { return expiration_year_; } 92 int expiration_year() const { return expiration_year_; }
88 const Address& address() const { return *address_; } 93 const Address& address() const { return *address_; }
89 const Status& status() const { return status_; } 94 const Status& status() const { return status_; }
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 // Legal documents the user must accept before using Online Wallet. 258 // Legal documents the user must accept before using Online Wallet.
254 ScopedVector<LegalDocument> legal_documents_; 259 ScopedVector<LegalDocument> legal_documents_;
255 260
256 DISALLOW_COPY_AND_ASSIGN(WalletItems); 261 DISALLOW_COPY_AND_ASSIGN(WalletItems);
257 }; 262 };
258 263
259 } // namespace wallet 264 } // namespace wallet
260 } // namespace autofill 265 } // namespace autofill
261 266
262 #endif // COMPONENTS_AUTOFILL_BROWSER_WALLET_WALLET_ITEMS_H_ 267 #endif // COMPONENTS_AUTOFILL_BROWSER_WALLET_WALLET_ITEMS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698