Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(573)

Side by Side Diff: chrome/browser/ui/views/payments/payment_request_views_util.h

Issue 2784973002: Move string helper functions to components/core for iOS use. (Closed)
Patch Set: Deps, part 3 Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/ui/views/payments/payment_request_views_util.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/views/payments/payment_request_views_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698