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

Unified 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: 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
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 a15adda171e04819b65b67d7bb3770fe82f293ea..9777d2c1e8742e4b7a056db2b71b6692d4016177 100644
--- a/chrome/browser/ui/views/payments/payment_request_views_util.h
+++ b/chrome/browser/ui/views/payments/payment_request_views_util.h
@@ -9,6 +9,7 @@
#include <string>
#include "base/strings/string16.h"
+#include "components/payments/content/payment_request.h"
Mathieu 2017/03/10 20:47:29 Do you need this include? If you mean to #includ
anthonyvd 2017/03/10 20:58:53 Can't forward declare an enum but I changed this i
namespace autofill {
class AutofillProfile;
@@ -88,6 +89,11 @@ std::unique_ptr<views::Border> CreatePaymentRequestRowBorder();
// Creates a label with a bold font.
std::unique_ptr<views::Label> CreateBoldLabel(const base::string16& text);
+base::string16 GetShippingAddressSectionString(
+ const payments::mojom::PaymentShippingType& shipping_type);
+base::string16 GetShippingOptionSectionString(
+ const payments::mojom::PaymentShippingType& shipping_type);
+
} // namespace payments
#endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_REQUEST_VIEWS_UTIL_H_

Powered by Google App Engine
This is Rietveld 408576698