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

Side by Side Diff: chrome/browser/ui/views/payments/payment_request_dialog_view_ids.h

Issue 2744633002: [Web Payments] Add the shipping method section to the payment sheet (Closed)
Patch Set: Rename shipping method to shipping option. Created 3 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 unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/ui/views/payments/payment_sheet_view_controller.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_REQUEST_DIALOG_VIEW_IDS_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_REQUEST_DIALOG_VIEW_IDS_H_
6 #define CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_REQUEST_DIALOG_VIEW_IDS_H_ 6 #define CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_REQUEST_DIALOG_VIEW_IDS_H_
7 7
8 #include "components/autofill/core/browser/field_types.h" 8 #include "components/autofill/core/browser/field_types.h"
9 9
10 // This defines an enumeration of IDs that can uniquely identify a view within 10 // This defines an enumeration of IDs that can uniquely identify a view within
11 // the scope of the Payment Request Dialog. 11 // the scope of the Payment Request Dialog.
12 12
13 namespace payments { 13 namespace payments {
14 14
15 enum class DialogViewID : int { 15 enum class DialogViewID : int {
16 VIEW_ID_NONE = autofill::MAX_VALID_FIELD_TYPE, 16 VIEW_ID_NONE = autofill::MAX_VALID_FIELD_TYPE,
17 17
18 // The following are views::Button (clickable). 18 // The following are views::Button (clickable).
19 PAYMENT_SHEET_CONTACT_INFO_SECTION, 19 PAYMENT_SHEET_CONTACT_INFO_SECTION,
20 PAYMENT_SHEET_PAYMENT_METHOD_SECTION, 20 PAYMENT_SHEET_PAYMENT_METHOD_SECTION,
21 PAYMENT_SHEET_SHIPPING_SECTION, 21 PAYMENT_SHEET_SHIPPING_SECTION,
22 PAYMENT_SHEET_SUMMARY_SECTION, 22 PAYMENT_SHEET_SUMMARY_SECTION,
23 PAYMENT_SHEET_SHIPPING_OPTION_SECTION,
23 PAYMENT_METHOD_ADD_CARD_BUTTON, 24 PAYMENT_METHOD_ADD_CARD_BUTTON,
24 EDITOR_SAVE_BUTTON, 25 EDITOR_SAVE_BUTTON,
25 PAY_BUTTON, 26 PAY_BUTTON,
26 27
27 // The following are StyledLabel objects. 28 // The following are StyledLabel objects.
28 ORDER_SUMMARY_TOTAL_AMOUNT_LABEL, 29 ORDER_SUMMARY_TOTAL_AMOUNT_LABEL,
29 ORDER_SUMMARY_LINE_ITEM_1, 30 ORDER_SUMMARY_LINE_ITEM_1,
30 ORDER_SUMMARY_LINE_ITEM_2, 31 ORDER_SUMMARY_LINE_ITEM_2,
31 ORDER_SUMMARY_LINE_ITEM_3, 32 ORDER_SUMMARY_LINE_ITEM_3,
32 33
33 // The following are views contained within the Payment Method Sheet. 34 // The following are views contained within the Payment Method Sheet.
34 PAYMENT_METHOD_SHEET_LIST_VIEW, 35 PAYMENT_METHOD_SHEET_LIST_VIEW,
35 36
36 // Used in selectable rows. Each row in a view reuses this ID, but the ID is 37 // Used in selectable rows. Each row in a view reuses this ID, but the ID is
37 // unique at the scope of the parent row. 38 // unique at the scope of the parent row.
38 CHECKMARK_VIEW, 39 CHECKMARK_VIEW,
39 40
40 // The following are views contained within the Contact Info Sheet. 41 // The following are views contained within the Contact Info Sheet.
41 CONTACT_INFO_ITEM_CHECKMARK_VIEW, 42 CONTACT_INFO_ITEM_CHECKMARK_VIEW,
42 43
43 // Used to label the error labels with an offset, which gets added to 44 // Used to label the error labels with an offset, which gets added to
44 // the Autofill type value they represent (for tests). 45 // the Autofill type value they represent (for tests).
45 ERROR_LABEL_OFFSET, 46 ERROR_LABEL_OFFSET,
46 }; 47 };
47 48
48 } // namespace payments 49 } // namespace payments
49 50
50 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_REQUEST_DIALOG_VIEW_IDS_H_ 51 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_REQUEST_DIALOG_VIEW_IDS_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/views/payments/payment_sheet_view_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698