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

Unified Diff: chrome/browser/ui/views/payments/payment_request_dialog_view_ids.h

Issue 2715533002: [Payments] Add error messages to credit card editor. (Closed)
Patch Set: clean Created 3 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/payments/payment_request_dialog_view_ids.h
diff --git a/chrome/browser/ui/views/payments/payment_request_dialog_view_ids.h b/chrome/browser/ui/views/payments/payment_request_dialog_view_ids.h
index a7f0843dd3ee277253b9d38d7d49af0cc4edd674..e3de7b511cdebfc547166d63d7af431e58886fd3 100644
--- a/chrome/browser/ui/views/payments/payment_request_dialog_view_ids.h
+++ b/chrome/browser/ui/views/payments/payment_request_dialog_view_ids.h
@@ -5,13 +5,15 @@
#ifndef CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_REQUEST_DIALOG_VIEW_IDS_H_
#define CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_REQUEST_DIALOG_VIEW_IDS_H_
+#include "components/autofill/core/browser/field_types.h"
+
// This defines an enumeration of IDs that can uniquely identify a view within
// the scope of the Payment Request Dialog.
namespace payments {
enum class DialogViewID : int {
- VIEW_ID_NONE,
+ VIEW_ID_NONE = autofill::MAX_VALID_FIELD_TYPE,
// The following are views::Button (clickable).
PAYMENT_SHEET_CONTACT_INFO_SECTION,
@@ -26,6 +28,10 @@ enum class DialogViewID : int {
ORDER_SUMMARY_LINE_ITEM_1,
ORDER_SUMMARY_LINE_ITEM_2,
ORDER_SUMMARY_LINE_ITEM_3,
+
+ // Used to label the error labels with an offset, which gets added to
+ // the Autofill type value they represent (for tests).
+ ERROR_LABEL_OFFSET,
};
} // namespace payments

Powered by Google App Engine
This is Rietveld 408576698