OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 CHROME_BROWSER_AUTOFILL_ADDRESS_FIELD_H_ | 5 #ifndef CHROME_BROWSER_AUTOFILL_ADDRESS_FIELD_H_ |
6 #define CHROME_BROWSER_AUTOFILL_ADDRESS_FIELD_H_ | 6 #define CHROME_BROWSER_AUTOFILL_ADDRESS_FIELD_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 26 matching lines...) Expand all Loading... |
37 bool is_ecml, AddressField* address_field); | 37 bool is_ecml, AddressField* address_field); |
38 static bool ParseAddressLines( | 38 static bool ParseAddressLines( |
39 std::vector<AutoFillField*>::const_iterator* iter, | 39 std::vector<AutoFillField*>::const_iterator* iter, |
40 bool is_ecml, AddressField* address_field); | 40 bool is_ecml, AddressField* address_field); |
41 static bool ParseCountry(std::vector<AutoFillField*>::const_iterator* iter, | 41 static bool ParseCountry(std::vector<AutoFillField*>::const_iterator* iter, |
42 bool is_ecml, AddressField* address_field); | 42 bool is_ecml, AddressField* address_field); |
43 static bool ParseZipCode(std::vector<AutoFillField*>::const_iterator* iter, | 43 static bool ParseZipCode(std::vector<AutoFillField*>::const_iterator* iter, |
44 bool is_ecml, AddressField* address_field); | 44 bool is_ecml, AddressField* address_field); |
45 static bool ParseCity(std::vector<AutoFillField*>::const_iterator* iter, | 45 static bool ParseCity(std::vector<AutoFillField*>::const_iterator* iter, |
46 bool is_ecml, AddressField* address_field); | 46 bool is_ecml, AddressField* address_field); |
47 bool ParseState(std::vector<AutoFillField*>::const_iterator* iter, | 47 static bool ParseState(std::vector<AutoFillField*>::const_iterator* iter, |
48 bool is_ecml, AddressField* address_field); | 48 bool is_ecml, AddressField* address_field); |
49 | 49 |
50 // Looks for an address type in the given text, which the caller must | 50 // Looks for an address type in the given text, which the caller must |
51 // convert to lowercase. | 51 // convert to lowercase. |
52 static AddressType AddressTypeFromText(const string16& text); | 52 static AddressType AddressTypeFromText(const string16& text); |
53 | 53 |
54 AutoFillField* company_; // optional | 54 AutoFillField* company_; // optional |
55 AutoFillField* address1_; | 55 AutoFillField* address1_; |
56 AutoFillField* address2_; // optional | 56 AutoFillField* address2_; // optional |
57 AutoFillField* city_; | 57 AutoFillField* city_; |
58 AutoFillField* state_; // optional | 58 AutoFillField* state_; // optional |
59 AutoFillField* zip_; | 59 AutoFillField* zip_; |
60 AutoFillField* zip4_; // optional ZIP+4; we don't fill this yet | 60 AutoFillField* zip4_; // optional ZIP+4; we don't fill this yet |
61 AutoFillField* country_; // optional | 61 AutoFillField* country_; // optional |
62 | 62 |
63 AddressType type_; | 63 AddressType type_; |
64 bool is_ecml_; | 64 bool is_ecml_; |
65 | 65 |
66 DISALLOW_COPY_AND_ASSIGN(AddressField); | 66 DISALLOW_COPY_AND_ASSIGN(AddressField); |
67 }; | 67 }; |
68 | 68 |
69 #endif // CHROME_BROWSER_AUTOFILL_ADDRESS_FIELD_H_ | 69 #endif // CHROME_BROWSER_AUTOFILL_ADDRESS_FIELD_H_ |
OLD | NEW |