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

Unified Diff: components/autofill/core/browser/dialog_section.h

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
Index: components/autofill/core/browser/dialog_section.h
diff --git a/components/autofill/core/browser/dialog_section.h b/components/autofill/core/browser/dialog_section.h
new file mode 100644
index 0000000000000000000000000000000000000000..1ff87abb203a2d608013840dd4193dd8d5006c2a
--- /dev/null
+++ b/components/autofill/core/browser/dialog_section.h
@@ -0,0 +1,29 @@
+// 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.
+
+#ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_DIALOG_SECTION_H_
+#define COMPONENTS_AUTOFILL_CORE_BROWSER_DIALOG_SECTION_H_
+
+namespace autofill {
+
+// Sections of the dialog --- all fields that may be shown to the user fit under
+// one of these sections.
+enum DialogSection {
+ // Lower boundary value for looping over all sections.
+ SECTION_MIN,
+
+ // The Autofill-backed dialog uses separate CC and billing sections.
+ SECTION_CC = SECTION_MIN,
+ SECTION_BILLING,
+ // The wallet-backed dialog uses a combined CC and billing section.
+ SECTION_CC_BILLING,
+ SECTION_SHIPPING,
+
+ // Upper boundary value for looping over all sections.
+ SECTION_MAX = SECTION_SHIPPING,
+};
+
+} // namespace autofill
+
+#endif // COMPONENTS_AUTOFILL_CORE_BROWSER_DIALOG_SECTION_H_
« no previous file with comments | « components/autofill/core/browser/detail_input.cc ('k') | components/autofill/core/browser/server_field_types_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698