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

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

Issue 2038333002: PaymentRequest: Provide shippingAddress in PaymentResponse. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 aa54a93acc286d2d93a4148340cd937a8bac9c05..5d6abfb53f716c75c2aabc2d424c9bb77918fe21 100644
--- a/third_party/WebKit/Source/modules/payments/PaymentResponse.h
+++ b/third_party/WebKit/Source/modules/payments/PaymentResponse.h
@@ -17,6 +17,7 @@
namespace blink {
class ExceptionState;
+class PaymentAddress;
class PaymentCompleter;
class ScriptState;
@@ -30,6 +31,7 @@ public:
const String& methodName() const { return m_methodName; }
ScriptValue details(ScriptState*, ExceptionState&) const;
+ PaymentAddress* shippingAddress() const { return m_shippingAddress.get(); }
ScriptPromise complete(ScriptState*, bool success);
@@ -38,6 +40,7 @@ public:
private:
String m_methodName;
String m_stringifiedDetails;
+ Member<PaymentAddress> m_shippingAddress;
Member<PaymentCompleter> m_paymentCompleter;
};

Powered by Google App Engine
This is Rietveld 408576698