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

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

Issue 2656823006: [Payments] PR: Basic test for the order summary section. (Closed)
Patch Set: Rebase Created 3 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/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
new file mode 100644
index 0000000000000000000000000000000000000000..68fff4f98e8e5c1886000c1aca5c809a3a43eccf
--- /dev/null
+++ b/chrome/browser/ui/views/payments/payment_request_dialog_view_ids.h
@@ -0,0 +1,31 @@
+// Copyright 2017 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_VIEWS_PAYMENTS_PAYMENT_REQUEST_DIALOG_VIEW_IDS_H_
+#define CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_REQUEST_DIALOG_VIEW_IDS_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,
+
+ // The following are views::Button (clickable).
+ PAYMENT_SHEET_CONTACT_INFO_SECTION,
+ PAYMENT_SHEET_PAYMENT_METHOD_SECTION,
+ PAYMENT_SHEET_SHIPPING_SECTION,
+ PAYMENT_SHEET_SUMMARY_SECTION,
+
+ // The following are StyledLabel objects.
+ ORDER_SUMMARY_TOTAL_AMOUNT_LABEL,
+ ORDER_SUMMARY_LINE_ITEM_1,
+ ORDER_SUMMARY_LINE_ITEM_2,
+ ORDER_SUMMARY_LINE_ITEM_3,
+};
+
+} // namespace payments
+
+#endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_REQUEST_DIALOG_VIEW_IDS_H_

Powered by Google App Engine
This is Rietveld 408576698