| 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 // Returns the corresponding Autofill server type for |field|. | 54 // Returns the corresponding Autofill server type for |field|. |
| 55 ServerFieldType TypeForField(::i18n::addressinput::AddressField field, | 55 ServerFieldType TypeForField(::i18n::addressinput::AddressField field, |
| 56 common::AddressType address_type); | 56 common::AddressType address_type); |
| 57 | 57 |
| 58 // Sets |field| to the corresponding address field for the Autofill | 58 // Sets |field| to the corresponding address field for the Autofill |
| 59 // |server_type|. Returns |true| if |server_type| can be represented as an | 59 // |server_type|. Returns |true| if |server_type| can be represented as an |
| 60 // address field. The |field| parameter can be NULL. | 60 // address field. The |field| parameter can be NULL. |
| 61 bool FieldForType(ServerFieldType server_type, | 61 bool FieldForType(ServerFieldType server_type, |
| 62 ::i18n::addressinput::AddressField* field); | 62 ::i18n::addressinput::AddressField* field); |
| 63 | 63 |
| 64 // Whether or not |country_code| has a fully supported address format. | |
| 65 // TODO(dbeam): remove this when filling dependent locality is supported. | |
| 66 // http://crbug.com/340929 | |
| 67 bool CountryIsFullySupported(const std::string& country_code); | |
| 68 | |
| 69 } // namespace i18ninput | 64 } // namespace i18ninput |
| 70 } // namespace autofill | 65 } // namespace autofill |
| 71 | 66 |
| 72 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_I18N_INPUT_H_ | 67 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_I18N_INPUT_H_ |
| OLD | NEW |