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_ADDRESS_H_ | 5 #ifndef COMPONENTS_AUTOFILL_CONTENT_BROWSER_WALLET_WALLET_ADDRESS_H_ |
6 #define COMPONENTS_AUTOFILL_CONTENT_BROWSER_WALLET_WALLET_ADDRESS_H_ | 6 #define COMPONENTS_AUTOFILL_CONTENT_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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 scoped_ptr<base::DictionaryValue> ToDictionaryWithoutID() const; | 83 scoped_ptr<base::DictionaryValue> ToDictionaryWithoutID() const; |
84 | 84 |
85 // Returns a string that summarizes this address, suitable for display to | 85 // Returns a string that summarizes this address, suitable for display to |
86 // the user. | 86 // the user. |
87 base::string16 DisplayName() const; | 87 base::string16 DisplayName() const; |
88 | 88 |
89 // Returns a string that could be used as a sub-label, suitable for display | 89 // Returns a string that could be used as a sub-label, suitable for display |
90 // to the user together with DisplayName(). | 90 // to the user together with DisplayName(). |
91 base::string16 DisplayNameDetail() const; | 91 base::string16 DisplayNameDetail() const; |
92 | 92 |
| 93 // Returns the phone number as a string that is suitable for display to the |
| 94 // user. |
| 95 base::string16 DisplayPhoneNumber() const; |
| 96 |
93 // Returns data appropriate for |type|. | 97 // Returns data appropriate for |type|. |
94 base::string16 GetInfo(const AutofillType& type, | 98 base::string16 GetInfo(const AutofillType& type, |
95 const std::string& app_locale) const; | 99 const std::string& app_locale) const; |
96 | 100 |
97 const std::string& country_name_code() const { return country_name_code_; } | 101 const std::string& country_name_code() const { return country_name_code_; } |
98 const base::string16& recipient_name() const { return recipient_name_; } | 102 const base::string16& recipient_name() const { return recipient_name_; } |
99 const base::string16& address_line_1() const { return address_line_1_; } | 103 const base::string16& address_line_1() const { return address_line_1_; } |
100 const base::string16& address_line_2() const { return address_line_2_; } | 104 const base::string16& address_line_2() const { return address_line_2_; } |
101 const base::string16& locality_name() const { return locality_name_; } | 105 const base::string16& locality_name() const { return locality_name_; } |
102 const base::string16& administrative_area_name() const { | 106 const base::string16& administrative_area_name() const { |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
192 bool is_complete_address_; | 196 bool is_complete_address_; |
193 | 197 |
194 // This class is intentionally copyable. | 198 // This class is intentionally copyable. |
195 DISALLOW_ASSIGN(Address); | 199 DISALLOW_ASSIGN(Address); |
196 }; | 200 }; |
197 | 201 |
198 } // namespace wallet | 202 } // namespace wallet |
199 } // namespace autofill | 203 } // namespace autofill |
200 | 204 |
201 #endif // COMPONENTS_AUTOFILL_CONTENT_BROWSER_WALLET_WALLET_ADDRESS_H_ | 205 #endif // COMPONENTS_AUTOFILL_CONTENT_BROWSER_WALLET_WALLET_ADDRESS_H_ |
OLD | NEW |