Chromium Code Reviews| 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..8889b65a2a191ec58b49213c91750ba24fbec489 |
| --- /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. |
| + |
| +// This defines an enumeration of IDs that can uniquely identify a view within |
| +// the scope of the Payment Request Dialog. |
| + |
| +#ifndef CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_REQUEST_DIALOG_VIEW_IDS_H_ |
| +#define CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_REQUEST_DIALOG_VIEW_IDS_H_ |
| + |
| +namespace payments { |
| + |
| +enum DialogViewID { |
|
please use gerrit instead
2017/01/26 20:44:43
Should be an enum class.
"Provide enums as full c
Mathieu
2017/01/26 22:41:33
Thanks. "You learn something new..."
|
| + VIEW_ID_NONE = 0, |
| + |
| + // 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_ |