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

Unified Diff: chrome/browser/ui/views/payments/payment_request_views_util.h

Issue 2774233005: Creating PaymentOptionsProvider interface (Closed)
Patch Set: rouslan comments 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/payments/payment_request_views_util.h
diff --git a/chrome/browser/ui/views/payments/payment_request_views_util.h b/chrome/browser/ui/views/payments/payment_request_views_util.h
index 575a567fe2bc61c356f9e939f9835e251107579b..eb832131b19699a5d4de606e237734c5e618068f 100644
--- a/chrome/browser/ui/views/payments/payment_request_views_util.h
+++ b/chrome/browser/ui/views/payments/payment_request_views_util.h
@@ -25,6 +25,9 @@ class View;
namespace payments {
+class PaymentOptionsProvider;
+enum class PaymentShippingType;
+
constexpr int kPaymentRequestRowHorizontalInsets = 16;
constexpr int kPaymentRequestRowVerticalInsets = 8;
@@ -80,9 +83,7 @@ std::unique_ptr<views::View> GetContactInfoLabel(
AddressStyleType type,
const std::string& locale,
const autofill::AutofillProfile& profile,
- bool show_payer_name,
- bool show_payer_phone,
- bool show_payer_email);
+ const PaymentOptionsProvider& options);
// Creates a views::Border object that can paint the gray horizontal ruler used
// as a separator between items in the Payment Request dialog.
@@ -92,9 +93,9 @@ std::unique_ptr<views::Border> CreatePaymentRequestRowBorder();
std::unique_ptr<views::Label> CreateBoldLabel(const base::string16& text);
base::string16 GetShippingAddressSectionString(
- payments::mojom::PaymentShippingType shipping_type);
+ PaymentShippingType shipping_type);
base::string16 GetShippingOptionSectionString(
- payments::mojom::PaymentShippingType shipping_type);
+ PaymentShippingType shipping_type);
std::unique_ptr<views::View> CreateShippingOptionLabel(
payments::mojom::PaymentShippingOption* shipping_option,
« 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