| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_VIEWS_UTIL_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_REQUEST_VIEWS_UTIL_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_REQUEST_VIEWS_UTIL_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_REQUEST_VIEWS_UTIL_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 constexpr int kPaymentRequestRowVerticalInsets = 8; | 27 constexpr int kPaymentRequestRowVerticalInsets = 8; |
| 28 | 28 |
| 29 // Extra inset relative to the header when a right edge should line up with the | 29 // Extra inset relative to the header when a right edge should line up with the |
| 30 // close button's X rather than its invisible right edge. | 30 // close button's X rather than its invisible right edge. |
| 31 constexpr int kPaymentRequestRowExtraRightInset = 8; | 31 constexpr int kPaymentRequestRowExtraRightInset = 8; |
| 32 constexpr int kPaymentRequestButtonSpacing = 10; | 32 constexpr int kPaymentRequestButtonSpacing = 10; |
| 33 | 33 |
| 34 enum class PaymentRequestCommonTags { | 34 enum class PaymentRequestCommonTags { |
| 35 BACK_BUTTON_TAG = 0, | 35 BACK_BUTTON_TAG = 0, |
| 36 CLOSE_BUTTON_TAG, | 36 CLOSE_BUTTON_TAG, |
| 37 PAY_BUTTON_TAG, |
| 37 // This is the max value of tags for controls common to multiple | 38 // This is the max value of tags for controls common to multiple |
| 38 // PaymentRequest contexts. Individual screens that handle both common and | 39 // PaymentRequest contexts. Individual screens that handle both common and |
| 39 // specific events with tags can start their specific tags at this value. | 40 // specific events with tags can start their specific tags at this value. |
| 40 PAYMENT_REQUEST_COMMON_TAG_MAX | 41 PAYMENT_REQUEST_COMMON_TAG_MAX |
| 41 }; | 42 }; |
| 42 | 43 |
| 43 // Creates and returns a header for all the sheets in the PaymentRequest dialog. | 44 // Creates and returns a header for all the sheets in the PaymentRequest dialog. |
| 44 // The header contains an optional back arrow button (if |show_back_arrow| is | 45 // The header contains an optional back arrow button (if |show_back_arrow| is |
| 45 // true), a |title| label. |delegate| becomes the delegate for the back and | 46 // true), a |title| label. |delegate| becomes the delegate for the back and |
| 46 // close buttons. | 47 // close buttons. |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 bool show_payer_email, | 80 bool show_payer_email, |
| 80 bool show_payer_phone); | 81 bool show_payer_phone); |
| 81 | 82 |
| 82 // Creates a views::Border object that can paint the gray horizontal ruler used | 83 // Creates a views::Border object that can paint the gray horizontal ruler used |
| 83 // as a separator between items in the Payment Request dialog. | 84 // as a separator between items in the Payment Request dialog. |
| 84 std::unique_ptr<views::Border> CreatePaymentRequestRowBorder(); | 85 std::unique_ptr<views::Border> CreatePaymentRequestRowBorder(); |
| 85 | 86 |
| 86 } // namespace payments | 87 } // namespace payments |
| 87 | 88 |
| 88 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_REQUEST_VIEWS_UTIL_H_ | 89 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_REQUEST_VIEWS_UTIL_H_ |
| OLD | NEW |