| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 // |
| 5 // Utility functions for internationalized address input fields in interactive |
| 6 // autofill dialog. |
| 7 |
| 8 #ifndef CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_I18N_INPUT_H_ |
| 9 #define CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_I18N_INPUT_H_ |
| 10 |
| 11 #include "chrome/browser/ui/autofill/autofill_dialog_types.h" |
| 12 |
| 13 namespace autofill { |
| 14 namespace i18ninput { |
| 15 |
| 16 // The enum to control autofill field types in address input. |
| 17 enum AddressType { |
| 18 ADDRESS_TYPE_SHIPPING, |
| 19 ADDRESS_TYPE_BILLING, |
| 20 }; |
| 21 |
| 22 // Returns true if the internationalized address input is enabled. |
| 23 bool IsI18nAddressInputEnabled(); |
| 24 |
| 25 // Adds the internationalized input fields to |inputs|. The autofill field types |
| 26 // are specific to |address_type|. The |country_code| parameter controls the |
| 27 // fields and their names. The function uses at most 13 rows starting at |
| 28 // |row_id|. |
| 29 // |
| 30 // The inputs fields include only the address, organization name, and recipient |
| 31 // name. Phone number, email, and CC are omitted. |
| 32 void BuildI18nInputsForCountry(AddressType address_type, |
| 33 const std::string& country_code, |
| 34 DetailInputs* inputs); |
| 35 |
| 36 } // namespace i18ninput |
| 37 } // namespace autofill |
| 38 |
| 39 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_I18N_INPUT_H_ |
| OLD | NEW |