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

Unified Diff: third_party/WebKit/Source/modules/payments/PaymentResponse.h

Issue 2073603002: Add shippingOption to PaymentResponse (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase #2 Created 4 years, 6 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: third_party/WebKit/Source/modules/payments/PaymentResponse.h
diff --git a/third_party/WebKit/Source/modules/payments/PaymentResponse.h b/third_party/WebKit/Source/modules/payments/PaymentResponse.h
index 3631d5288f42f4edad29d9e4a7c4e28b4e1eca43..f41d5fa027898a838a83e21246cfd0a3d3ff5161 100644
--- a/third_party/WebKit/Source/modules/payments/PaymentResponse.h
+++ b/third_party/WebKit/Source/modules/payments/PaymentResponse.h
@@ -34,6 +34,7 @@ public:
void totalAmount(PaymentCurrencyAmount& result) const { result = m_totalAmount; }
ScriptValue details(ScriptState*, ExceptionState&) const;
PaymentAddress* shippingAddress() const { return m_shippingAddress.get(); }
+ const String& shippingOption() const { return m_shippingOption; }
const String& payerEmail() const { return m_payerEmail; }
const String& payerPhone() const { return m_payerPhone; }
@@ -46,6 +47,7 @@ private:
PaymentCurrencyAmount m_totalAmount;
String m_stringifiedDetails;
Member<PaymentAddress> m_shippingAddress;
+ String m_shippingOption;
String m_payerEmail;
String m_payerPhone;
Member<PaymentCompleter> m_paymentCompleter;

Powered by Google App Engine
This is Rietveld 408576698