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

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

Issue 172783003: rAc: don't show countries with partially supported address fields for now. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: compile Created 6 years, 10 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
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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 // Returns the corresponding Autofill server type for |field|. 55 // Returns the corresponding Autofill server type for |field|.
56 ServerFieldType TypeForField(::i18n::addressinput::AddressField field, 56 ServerFieldType TypeForField(::i18n::addressinput::AddressField field,
57 common::AddressType address_type); 57 common::AddressType address_type);
58 58
59 // Creates an AddressData object for internationalized address display or 59 // Creates an AddressData object for internationalized address display or
60 // validation using |get_info| for field values. 60 // validation using |get_info| for field values.
61 void CreateAddressData( 61 void CreateAddressData(
62 const base::Callback<base::string16(const AutofillType&)>& get_info, 62 const base::Callback<base::string16(const AutofillType&)>& get_info,
63 ::i18n::addressinput::AddressData* address_data); 63 ::i18n::addressinput::AddressData* address_data);
64 64
65 // Whether or not |country_code| has a fully supported address format.
66 // TODO(dbeam): remove this when filling dependent locality is supported.
67 // http://crbug.com/340929
68 bool CountryIsFullySupported(const std::string& country_code);
69
65 } // namespace i18ninput 70 } // namespace i18ninput
66 } // namespace autofill 71 } // namespace autofill
67 72
68 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_I18N_INPUT_H_ 73 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_I18N_INPUT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698