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

Unified Diff: chrome/browser/ui/autofill/autofill_dialog_i18n_input.h

Issue 63053003: Ask libaddressinput for address components to use in requestAutocomplete(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 6 years, 11 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 side-by-side diff with in-line comments
Download patch
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
new file mode 100644
index 0000000000000000000000000000000000000000..d54ba5bb06135b04c8b8259925cc055669b0e22f
--- /dev/null
+++ b/chrome/browser/ui/autofill/autofill_dialog_i18n_input.h
@@ -0,0 +1,27 @@
+// Copyright 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_I18N_INPUT_H_
+#define CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_I18N_INPUT_H_
+
+#include "chrome/browser/ui/autofill/autofill_dialog_common.h"
+#include "chrome/browser/ui/autofill/autofill_dialog_types.h"
+
+namespace autofill {
+namespace i18ninput {
+
+// Returns true if the internationalized address input is enabled.
+bool Enabled();
+
+// Builds internationalized address input fields for |country_code| and adds
+// them (at most 13) to |inputs|. |address_type| is which kind of address to
+// build (e.g. billing or shipping).
+void BuildAddressInputs(common::AddressType address_type,
+ const std::string& country_code,
+ DetailInputs* inputs);
+
+} // namespace i18ninput
+} // namespace autofill
+
+#endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_I18N_INPUT_H_

Powered by Google App Engine
This is Rietveld 408576698