| 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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 const autofill::AutofillProfile& profile, | 91 const autofill::AutofillProfile& profile, |
| 92 const PaymentOptionsProvider& options); | 92 const PaymentOptionsProvider& options); |
| 93 | 93 |
| 94 // Creates a views::Border object that can paint the gray horizontal ruler used | 94 // Creates a views::Border object that can paint the gray horizontal ruler used |
| 95 // as a separator between items in the Payment Request dialog. | 95 // as a separator between items in the Payment Request dialog. |
| 96 std::unique_ptr<views::Border> CreatePaymentRequestRowBorder(); | 96 std::unique_ptr<views::Border> CreatePaymentRequestRowBorder(); |
| 97 | 97 |
| 98 // Creates a label with a bold font. | 98 // Creates a label with a bold font. |
| 99 std::unique_ptr<views::Label> CreateBoldLabel(const base::string16& text); | 99 std::unique_ptr<views::Label> CreateBoldLabel(const base::string16& text); |
| 100 | 100 |
| 101 base::string16 GetShippingAddressSectionString( | |
| 102 PaymentShippingType shipping_type); | |
| 103 base::string16 GetShippingOptionSectionString( | |
| 104 PaymentShippingType shipping_type); | |
| 105 | |
| 106 std::unique_ptr<views::View> CreateShippingOptionLabel( | 101 std::unique_ptr<views::View> CreateShippingOptionLabel( |
| 107 payments::mojom::PaymentShippingOption* shipping_option, | 102 payments::mojom::PaymentShippingOption* shipping_option, |
| 108 const base::string16& formatted_amount); | 103 const base::string16& formatted_amount); |
| 109 | 104 |
| 110 } // namespace payments | 105 } // namespace payments |
| 111 | 106 |
| 112 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_REQUEST_VIEWS_UTIL_H_ | 107 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_REQUEST_VIEWS_UTIL_H_ |
| OLD | NEW |