Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1036)

Side by Side Diff: chrome/browser/ui/autofill/autofill_dialog_i18n_input.h

Issue 25620002: [rac] Use i18n address inputs with --enable-autofill-address-i18n flag (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Avoid initializer list Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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 // Returns the best guess for the current country.
26 std::string GuessCountry();
27
28 // Adds the internationalized input fields to |inputs|. The autofill field types
29 // are specific to |address_type|. The |country_region| parameter controls the
30 // fields and their names. The function uses at most 13 rows starting at
31 // |row_index|.
32 //
33 // The inputs fields include only the address, organization name, and recipient
34 // name. Phone number, email, and CC are omitted.
35 void BuildI18nInputs(AddressType address_type,
36 const std::string& country_region,
37 int row_index,
38 DetailInputs* inputs);
39
40 } // namespace i18ninput
41 } // namespace autofill
42
43 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_I18N_INPUT_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/autofill/autofill_dialog_common.cc ('k') | chrome/browser/ui/autofill/autofill_dialog_i18n_input.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698