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

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: 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_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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 scoped_ptr<base::DictionaryValue> ToDictionaryWithID() const; 76 scoped_ptr<base::DictionaryValue> ToDictionaryWithID() const;
77 77
78 // Newly created addresses will not have an associated |object_id_| and are 78 // Newly created addresses will not have an associated |object_id_| and are
79 // sent to the server in a slightly different format. 79 // sent to the server in a slightly different format.
80 scoped_ptr<base::DictionaryValue> ToDictionaryWithoutID() const; 80 scoped_ptr<base::DictionaryValue> ToDictionaryWithoutID() const;
81 81
82 // Returns a string that summarizes this address, suitable for display to 82 // Returns a string that summarizes this address, suitable for display to
83 // the user. 83 // the user.
84 string16 DisplayName() const; 84 string16 DisplayName() const;
85 85
86 // Returns a string that could be used as a sub-label, suitable for display
87 // to the user together with DisplayName().
88 string16 DisplayNameDetail() const;
89
86 // Returns data appropriate for |type|. 90 // Returns data appropriate for |type|.
87 string16 GetInfo(AutofillFieldType type) const; 91 string16 GetInfo(AutofillFieldType type) const;
88 92
89 const std::string& country_name_code() const { return country_name_code_; } 93 const std::string& country_name_code() const { return country_name_code_; }
90 const string16& recipient_name() const { return recipient_name_; } 94 const string16& recipient_name() const { return recipient_name_; }
91 const string16& address_line_1() const { return address_line_1_; } 95 const string16& address_line_1() const { return address_line_1_; }
92 const string16& address_line_2() const { return address_line_2_; } 96 const string16& address_line_2() const { return address_line_2_; }
93 const string16& locality_name() const { return locality_name_; } 97 const string16& locality_name() const { return locality_name_; }
94 const string16& administrative_area_name() const { 98 const string16& administrative_area_name() const {
95 return administrative_area_name_; 99 return administrative_area_name_;
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 std::string object_id_; 171 std::string object_id_;
168 172
169 // This class is intentionally copyable. 173 // This class is intentionally copyable.
170 DISALLOW_ASSIGN(Address); 174 DISALLOW_ASSIGN(Address);
171 }; 175 };
172 176
173 } // namespace wallet 177 } // namespace wallet
174 } // namespace autofill 178 } // namespace autofill
175 179
176 #endif // COMPONENTS_AUTOFILL_BROWSER_WALLET_WALLET_ADDRESS_H_ 180 #endif // COMPONENTS_AUTOFILL_BROWSER_WALLET_WALLET_ADDRESS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698