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" |
11 #include "base/strings/string16.h" | 11 #include "base/strings/string16.h" |
12 #include "chrome/browser/ui/autofill/autofill_dialog_common.h" | 12 #include "chrome/browser/ui/autofill/autofill_dialog_common.h" |
13 #include "chrome/browser/ui/autofill/autofill_dialog_types.h" | 13 #include "chrome/browser/ui/autofill/autofill_dialog_types.h" |
14 #include "components/autofill/core/browser/autofill_type.h" | 14 #include "components/autofill/core/browser/autofill_type.h" |
15 #include "third_party/libaddressinput/src/cpp/include/libaddressinput/address_fi
eld.h" | 15 #include "third_party/libaddressinput/chromium/cpp/include/libaddressinput/addre
ss_field.h" |
| 16 |
| 17 namespace i18n { |
| 18 namespace addressinput { |
| 19 struct AddressData; |
| 20 } |
| 21 } |
16 | 22 |
17 namespace autofill { | 23 namespace autofill { |
18 | 24 |
19 class AutofillProfile; | 25 class AutofillProfile; |
20 class CreditCard; | 26 class CreditCard; |
21 | 27 |
22 namespace i18ninput { | 28 namespace i18ninput { |
23 | 29 |
24 // Builds internationalized address input fields for |address_type| (e.g. | 30 // Builds internationalized address input fields for |address_type| (e.g. |
25 // billing or shipping) in |country_code| (e.g. "US" or "CH"). | 31 // billing or shipping) in |country_code| (e.g. "US" or "CH"). |
(...skipping 26 matching lines...) Expand all Loading... |
52 // Sets |field| to the corresponding address field for the Autofill | 58 // Sets |field| to the corresponding address field for the Autofill |
53 // |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 |
54 // address field. The |field| parameter can be NULL. | 60 // address field. The |field| parameter can be NULL. |
55 bool FieldForType(ServerFieldType server_type, | 61 bool FieldForType(ServerFieldType server_type, |
56 ::i18n::addressinput::AddressField* field); | 62 ::i18n::addressinput::AddressField* field); |
57 | 63 |
58 } // namespace i18ninput | 64 } // namespace i18ninput |
59 } // namespace autofill | 65 } // namespace autofill |
60 | 66 |
61 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_I18N_INPUT_H_ | 67 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_I18N_INPUT_H_ |
OLD | NEW |