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

Side by Side Diff: components/autofill/browser/wallet/wallet_address.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: 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_ADDRESS_H_ 5 #ifndef COMPONENTS_AUTOFILL_BROWSER_WALLET_WALLET_ADDRESS_H_
6 #define COMPONENTS_AUTOFILL_BROWSER_WALLET_WALLET_ADDRESS_H_ 6 #define COMPONENTS_AUTOFILL_BROWSER_WALLET_WALLET_ADDRESS_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 scoped_ptr<base::DictionaryValue> ToDictionaryWithID() const; 68 scoped_ptr<base::DictionaryValue> ToDictionaryWithID() const;
69 69
70 // Newly created addresses will not have an associated |object_id_| and are 70 // Newly created addresses will not have an associated |object_id_| and are
71 // sent to the server in a slightly different format. 71 // sent to the server in a slightly different format.
72 scoped_ptr<base::DictionaryValue> ToDictionaryWithoutID() const; 72 scoped_ptr<base::DictionaryValue> ToDictionaryWithoutID() const;
73 73
74 // Returns a string that summarizes this address, suitable for display to 74 // Returns a string that summarizes this address, suitable for display to
75 // the user. 75 // the user.
76 string16 DisplayName() const; 76 string16 DisplayName() const;
77 77
78 // Returns a pair of strings that summarizes this address,
79 // suitable for display to the user in two lines.
80 string16 DisplaySummaryLine1() const;
81 string16 DisplaySummaryLine2() const;
82
78 // Returns data appropriate for |type|. 83 // Returns data appropriate for |type|.
79 string16 GetInfo(AutofillFieldType type) const; 84 string16 GetInfo(AutofillFieldType type) const;
80 85
81 const std::string& country_name_code() const { return country_name_code_; } 86 const std::string& country_name_code() const { return country_name_code_; }
82 const string16& recipient_name() const { return recipient_name_; } 87 const string16& recipient_name() const { return recipient_name_; }
83 const string16& address_line_1() const { return address_line_1_; } 88 const string16& address_line_1() const { return address_line_1_; }
84 const string16& address_line_2() const { return address_line_2_; } 89 const string16& address_line_2() const { return address_line_2_; }
85 const string16& locality_name() const { return locality_name_; } 90 const string16& locality_name() const { return locality_name_; }
86 const string16& administrative_area_name() const { 91 const string16& administrative_area_name() const {
87 return administrative_area_name_; 92 return administrative_area_name_;
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 // Externalized Online Wallet id for this address. 163 // Externalized Online Wallet id for this address.
159 std::string object_id_; 164 std::string object_id_;
160 165
161 DISALLOW_ASSIGN(Address); 166 DISALLOW_ASSIGN(Address);
162 }; 167 };
163 168
164 } // namespace wallet 169 } // namespace wallet
165 } // namespace autofill 170 } // namespace autofill
166 171
167 #endif // COMPONENTS_AUTOFILL_BROWSER_WALLET_WALLET_ADDRESS_H_ 172 #endif // COMPONENTS_AUTOFILL_BROWSER_WALLET_WALLET_ADDRESS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698