| 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 bool CountryIsFullySupported(const std::string& country_code); |
| 67 |
| 65 } // namespace i18ninput | 68 } // namespace i18ninput |
| 66 } // namespace autofill | 69 } // namespace autofill |
| 67 | 70 |
| 68 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_I18N_INPUT_H_ | 71 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_I18N_INPUT_H_ |
| OLD | NEW |