| 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 |
| 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_SUMMARY_SECTION, |
| 20 PAYMENT_SHEET_PAYMENT_METHOD_SECTION, | 21 PAYMENT_SHEET_PAYMENT_METHOD_SECTION, |
| 21 PAYMENT_SHEET_SHIPPING_SECTION, | 22 PAYMENT_SHEET_SHIPPING_ADDRESS_SECTION, |
| 22 PAYMENT_SHEET_SUMMARY_SECTION, | |
| 23 PAYMENT_SHEET_SHIPPING_OPTION_SECTION, | 23 PAYMENT_SHEET_SHIPPING_OPTION_SECTION, |
| 24 PAYMENT_METHOD_ADD_CARD_BUTTON, | 24 PAYMENT_METHOD_ADD_CARD_BUTTON, |
| 25 PAYMENT_METHOD_ADD_SHIPPING_BUTTON, | 25 PAYMENT_METHOD_ADD_SHIPPING_BUTTON, |
| 26 PAYMENT_METHOD_ADD_CONTACT_BUTTON, | 26 PAYMENT_METHOD_ADD_CONTACT_BUTTON, |
| 27 EDITOR_SAVE_BUTTON, | 27 EDITOR_SAVE_BUTTON, |
| 28 PAY_BUTTON, | 28 PAY_BUTTON, |
| 29 CANCEL_BUTTON, | 29 CANCEL_BUTTON, |
| 30 BACK_BUTTON, | 30 BACK_BUTTON, |
| 31 CVC_PROMPT_CONFIRM_BUTTON, | 31 CVC_PROMPT_CONFIRM_BUTTON, |
| 32 | 32 |
| (...skipping 23 matching lines...) Expand all Loading... |
| 56 // the Autofill type value they represent (for tests). | 56 // the Autofill type value they represent (for tests). |
| 57 ERROR_LABEL_OFFSET, | 57 ERROR_LABEL_OFFSET, |
| 58 | 58 |
| 59 // The CVC text field in the unmask sheet. | 59 // The CVC text field in the unmask sheet. |
| 60 CVC_PROMPT_TEXT_FIELD, | 60 CVC_PROMPT_TEXT_FIELD, |
| 61 }; | 61 }; |
| 62 | 62 |
| 63 } // namespace payments | 63 } // namespace payments |
| 64 | 64 |
| 65 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_REQUEST_DIALOG_VIEW_IDS_H_ | 65 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_REQUEST_DIALOG_VIEW_IDS_H_ |
| OLD | NEW |