Chromium Code Reviews| Index: chrome/browser/ui/autofill/autofill_dialog_i18n_input.h |
| diff --git a/chrome/browser/ui/autofill/autofill_dialog_i18n_input.h b/chrome/browser/ui/autofill/autofill_dialog_i18n_input.h |
| index 92e80ff74734a069ae8d28b427172c8960ff2fa1..848e3fa759fecb74f13ca37d6de665781bd41408 100644 |
| --- a/chrome/browser/ui/autofill/autofill_dialog_i18n_input.h |
| +++ b/chrome/browser/ui/autofill/autofill_dialog_i18n_input.h |
| @@ -5,8 +5,20 @@ |
| #ifndef CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_I18N_INPUT_H_ |
| #define CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_I18N_INPUT_H_ |
| +#include <string> |
| + |
| +#include "base/callback.h" |
| +#include "base/strings/string16.h" |
| #include "chrome/browser/ui/autofill/autofill_dialog_common.h" |
| #include "chrome/browser/ui/autofill/autofill_dialog_types.h" |
| +#include "components/autofill/core/browser/autofill_type.h" |
| +#include "third_party/libaddressinput/chromium/cpp/include/libaddressinput/address_field.h" |
| + |
| +namespace i18n { |
| +namespace addressinput { |
| +struct AddressData; |
| +} |
| +} |
| namespace autofill { |
| @@ -33,6 +45,15 @@ bool CardHasCompleteAndVerifiedData(const CreditCard& card); |
| // exact set of required fields depends on the region. |
| bool AddressHasCompleteAndVerifiedData(const AutofillProfile& profile); |
| +// Returns the corresponding Autofill server type for |field|. |
| +ServerFieldType TypeForField(::i18n::addressinput::AddressField field, |
| + common::AddressType address_type); |
| + |
| +// Creates an AddressData object for internationalized address display or |
| +// validation using |get_info| for field values. |
| +::i18n::addressinput::AddressData CreateAddressData( |
|
Evan Stade
2014/01/30 17:25:39
instead or returning, fill it in as an outparam im
Dan Beam
2014/01/30 17:43:50
Done.
|
| + const base::Callback<base::string16(const AutofillType&)>& get_info); |
| + |
| } // namespace i18ninput |
| } // namespace autofill |