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

Unified Diff: components/autofill/core/browser/detail_input.cc

Issue 974323002: Componentize autofill dialog common code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add missing includes Created 5 years, 9 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
« no previous file with comments | « components/autofill/core/browser/detail_input.h ('k') | components/autofill/core/browser/dialog_section.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/autofill/core/browser/detail_input.cc
diff --git a/components/autofill/core/browser/detail_input.cc b/components/autofill/core/browser/detail_input.cc
new file mode 100644
index 0000000000000000000000000000000000000000..4d36d7502dc76ca2334282d3c2e489dcaf3800b9
--- /dev/null
+++ b/components/autofill/core/browser/detail_input.cc
@@ -0,0 +1,17 @@
+// Copyright 2015 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.
+
+#include "components/autofill/core/browser/detail_input.h"
+
+namespace autofill {
+
+// Street address is multi-line, except in countries where it shares a line
+// with other inputs (such as Coite d'Ivoire).
+bool DetailInput::IsMultiline() const {
+ return (type == ADDRESS_HOME_STREET_ADDRESS ||
+ type == ADDRESS_BILLING_STREET_ADDRESS) &&
+ length == DetailInput::LONG;
+}
+
+} // namespace autofill
« no previous file with comments | « components/autofill/core/browser/detail_input.h ('k') | components/autofill/core/browser/dialog_section.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698