OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_UI_AUTOFILL_AUTOFILL_DIALOG_I18N_INPUT_H_ | 5 #ifndef CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_I18N_INPUT_H_ |
6 #define CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_I18N_INPUT_H_ | 6 #define CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_I18N_INPUT_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 // Returns the corresponding Autofill server type for |field|. | 55 // Returns the corresponding Autofill server type for |field|. |
56 ServerFieldType TypeForField(::i18n::addressinput::AddressField field, | 56 ServerFieldType TypeForField(::i18n::addressinput::AddressField field, |
57 common::AddressType address_type); | 57 common::AddressType address_type); |
58 | 58 |
59 // Creates an AddressData object for internationalized address display or | 59 // Creates an AddressData object for internationalized address display or |
60 // validation using |get_info| for field values. | 60 // validation using |get_info| for field values. |
61 void CreateAddressData( | 61 void CreateAddressData( |
62 const base::Callback<base::string16(const AutofillType&)>& get_info, | 62 const base::Callback<base::string16(const AutofillType&)>& get_info, |
63 ::i18n::addressinput::AddressData* address_data); | 63 ::i18n::addressinput::AddressData* address_data); |
64 | 64 |
| 65 // Whether or not |country_code| has a fully supported address format. |
| 66 // TODO(dbeam): remove this when filling dependent locality is supported. |
| 67 // http://crbug.com/340929 |
| 68 bool CountryIsFullySupported(const std::string& country_code); |
| 69 |
65 } // namespace i18ninput | 70 } // namespace i18ninput |
66 } // namespace autofill | 71 } // namespace autofill |
67 | 72 |
68 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_I18N_INPUT_H_ | 73 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_I18N_INPUT_H_ |
OLD | NEW |