Chromium Code Reviews| 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 // This defines an enumeration of IDs that can uniquely identify a view within | 8 // This defines an enumeration of IDs that can uniquely identify a view within |
| 9 // the scope of the Payment Request Dialog. | 9 // the scope of the Payment Request Dialog. |
| 10 | 10 |
| 11 namespace payments { | 11 namespace payments { |
| 12 | 12 |
| 13 enum class DialogViewID : int { | 13 enum class DialogViewID : int { |
| 14 VIEW_ID_NONE, | 14 VIEW_ID_NONE, |
| 15 | 15 |
| 16 // The following are views::Button (clickable). | 16 // The following are views::Button (clickable). |
| 17 PAYMENT_SHEET_CONTACT_INFO_SECTION, | 17 PAYMENT_SHEET_CONTACT_INFO_SECTION, |
| 18 PAYMENT_SHEET_PAYMENT_METHOD_SECTION, | 18 PAYMENT_SHEET_PAYMENT_METHOD_SECTION, |
| 19 PAYMENT_SHEET_SHIPPING_SECTION, | 19 PAYMENT_SHEET_SHIPPING_SECTION, |
| 20 PAYMENT_SHEET_SUMMARY_SECTION, | 20 PAYMENT_SHEET_SUMMARY_SECTION, |
| 21 PAYMENT_METHOD_ADD_CARD_BUTTON, | 21 PAYMENT_METHOD_ADD_CARD_BUTTON, |
| 22 EDITOR_SAVE_BUTTON, | 22 EDITOR_SAVE_BUTTON, |
| 23 | 23 |
| 24 // The following are StyledLabel objects. | 24 // The following are StyledLabel objects. |
| 25 ORDER_SUMMARY_TOTAL_AMOUNT_LABEL, | 25 ORDER_SUMMARY_TOTAL_AMOUNT_LABEL, |
| 26 ORDER_SUMMARY_LINE_ITEM_1, | 26 ORDER_SUMMARY_LINE_ITEM_1, |
| 27 ORDER_SUMMARY_LINE_ITEM_2, | 27 ORDER_SUMMARY_LINE_ITEM_2, |
| 28 ORDER_SUMMARY_LINE_ITEM_3, | 28 ORDER_SUMMARY_LINE_ITEM_3, |
| 29 | |
| 30 ERROR_LABEL_OFFSET = 1000, | |
|
anthonyvd
2017/02/22 19:32:45
You can omit the 1000 here I think. It's guarantee
Mathieu
2017/02/22 20:08:59
You're right I can get rid of the 1000 here, I've
| |
| 29 }; | 31 }; |
| 30 | 32 |
| 31 } // namespace payments | 33 } // namespace payments |
| 32 | 34 |
| 33 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_REQUEST_DIALOG_VIEW_IDS_H_ | 35 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_REQUEST_DIALOG_VIEW_IDS_H_ |
| OLD | NEW |