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..e4debc325c337c7c5911ddcc70cc1caf3819d745 |
| --- /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 |
|
sky
2017/01/26 23:09:45
I recommend moving this above the enum.
Mathieu
2017/01/27 00:36:50
Done.
|
| +// 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 class DialogViewID : int { |
| + VIEW_ID_NONE, |
| + |
| + // 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_ |