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

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: tests Created 7 years 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..7098d3ef5ded30f3dc74473458fbad2c8eea92f4
--- /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();
+
+// Adds internationalized address input fields to |inputs|. The autofill field
+// types are specific to |address_type|. The |country_code| parameter controls
+// the fields and their names. The function adds at most 13 items to |inputs|.
+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