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

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

Issue 2742643004: [Web Payments] Use shippingType to choose the Payment Sheet shipping strings. (Closed)
Patch Set: Fix windows compile. Created 3 years, 9 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
11 #include "base/strings/string16.h" 11 #include "base/strings/string16.h"
12 #include "components/payments/content/payment_request.mojom.h"
12 13
13 namespace autofill { 14 namespace autofill {
14 class AutofillProfile; 15 class AutofillProfile;
15 } 16 }
16 17
17 namespace views { 18 namespace views {
18 class Border; 19 class Border;
19 class ImageView; 20 class ImageView;
20 class Label; 21 class Label;
21 class VectorIconButtonDelegate; 22 class VectorIconButtonDelegate;
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 bool show_payer_email, 82 bool show_payer_email,
82 bool show_payer_phone); 83 bool show_payer_phone);
83 84
84 // Creates a views::Border object that can paint the gray horizontal ruler used 85 // Creates a views::Border object that can paint the gray horizontal ruler used
85 // as a separator between items in the Payment Request dialog. 86 // as a separator between items in the Payment Request dialog.
86 std::unique_ptr<views::Border> CreatePaymentRequestRowBorder(); 87 std::unique_ptr<views::Border> CreatePaymentRequestRowBorder();
87 88
88 // Creates a label with a bold font. 89 // Creates a label with a bold font.
89 std::unique_ptr<views::Label> CreateBoldLabel(const base::string16& text); 90 std::unique_ptr<views::Label> CreateBoldLabel(const base::string16& text);
90 91
92 base::string16 GetShippingAddressSectionString(
93 payments::mojom::PaymentShippingType shipping_type);
94 base::string16 GetShippingOptionSectionString(
95 payments::mojom::PaymentShippingType shipping_type);
96
91 } // namespace payments 97 } // namespace payments
92 98
93 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_REQUEST_VIEWS_UTIL_H_ 99 #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