OLD | NEW |
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 |
(...skipping 19 matching lines...) Expand all Loading... |
30 BACK_BUTTON, | 30 BACK_BUTTON, |
31 CVC_PROMPT_CONFIRM_BUTTON, | 31 CVC_PROMPT_CONFIRM_BUTTON, |
32 | 32 |
33 // The following are buttons that are displayed inline in the Payment Sheet | 33 // The following are buttons that are displayed inline in the Payment Sheet |
34 // sections when no option is selected or available. | 34 // sections when no option is selected or available. |
35 PAYMENT_SHEET_CONTACT_INFO_SECTION_BUTTON, | 35 PAYMENT_SHEET_CONTACT_INFO_SECTION_BUTTON, |
36 PAYMENT_SHEET_PAYMENT_METHOD_SECTION_BUTTON, | 36 PAYMENT_SHEET_PAYMENT_METHOD_SECTION_BUTTON, |
37 PAYMENT_SHEET_SHIPPING_ADDRESS_SECTION_BUTTON, | 37 PAYMENT_SHEET_SHIPPING_ADDRESS_SECTION_BUTTON, |
38 PAYMENT_SHEET_SHIPPING_OPTION_SECTION_BUTTON, | 38 PAYMENT_SHEET_SHIPPING_OPTION_SECTION_BUTTON, |
39 | 39 |
40 // The following are Label objects. | 40 // The following are StyledLabel objects. |
41 ORDER_SUMMARY_TOTAL_AMOUNT_LABEL, | 41 ORDER_SUMMARY_TOTAL_AMOUNT_LABEL, |
42 ORDER_SUMMARY_LINE_ITEM_1, | 42 ORDER_SUMMARY_LINE_ITEM_1, |
43 ORDER_SUMMARY_LINE_ITEM_2, | 43 ORDER_SUMMARY_LINE_ITEM_2, |
44 ORDER_SUMMARY_LINE_ITEM_3, | 44 ORDER_SUMMARY_LINE_ITEM_3, |
| 45 // The following are Label objects. |
45 SHIPPING_OPTION_DESCRIPTION, | 46 SHIPPING_OPTION_DESCRIPTION, |
46 SHIPPING_OPTION_AMOUNT, | 47 SHIPPING_OPTION_AMOUNT, |
| 48 SHIPPING_ADDRESS_OPTION_ERROR, |
47 | 49 |
48 // Used in profile labels to annotate each line of the grouping. | 50 // Used in profile labels to annotate each line of the grouping. |
49 PROFILE_LABEL_LINE_1, | 51 PROFILE_LABEL_LINE_1, |
50 PROFILE_LABEL_LINE_2, | 52 PROFILE_LABEL_LINE_2, |
51 PROFILE_LABEL_LINE_3, | 53 PROFILE_LABEL_LINE_3, |
52 PROFILE_LABEL_ERROR, | 54 PROFILE_LABEL_ERROR, |
53 | 55 |
54 // The following are views contained within the Payment Method Sheet. | 56 // The following are views contained within the Payment Method Sheet. |
55 CONTACT_INFO_SHEET_LIST_VIEW, | 57 CONTACT_INFO_SHEET_LIST_VIEW, |
56 PAYMENT_METHOD_SHEET_LIST_VIEW, | 58 PAYMENT_METHOD_SHEET_LIST_VIEW, |
57 SHIPPING_ADDRESS_SHEET_LIST_VIEW, | 59 SHIPPING_ADDRESS_SHEET_LIST_VIEW, |
58 | 60 |
59 // Used in selectable rows. Each row in a view reuses this ID, but the ID is | 61 // Used in selectable rows. Each row in a view reuses this ID, but the ID is |
60 // unique at the scope of the parent row. | 62 // unique at the scope of the parent row. |
61 CHECKMARK_VIEW, | 63 CHECKMARK_VIEW, |
62 | 64 |
63 // Used to label the error labels with an offset, which gets added to | 65 // Used to label the error labels with an offset, which gets added to |
64 // the Autofill type value they represent (for tests). | 66 // the Autofill type value they represent (for tests). |
65 ERROR_LABEL_OFFSET, | 67 ERROR_LABEL_OFFSET, |
66 | 68 |
67 // The CVC text field in the unmask sheet. | 69 // The CVC text field in the unmask sheet. |
68 CVC_PROMPT_TEXT_FIELD, | 70 CVC_PROMPT_TEXT_FIELD, |
69 }; | 71 }; |
70 | 72 |
71 } // namespace payments | 73 } // namespace payments |
72 | 74 |
73 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_REQUEST_DIALOG_VIEW_IDS_H_ | 75 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_REQUEST_DIALOG_VIEW_IDS_H_ |
OLD | NEW |