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

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

Issue 2020913002: PaymentRequest: Rename ShippingAddress to PaymentAddress. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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/PaymentRequest.h
diff --git a/third_party/WebKit/Source/modules/payments/PaymentRequest.h b/third_party/WebKit/Source/modules/payments/PaymentRequest.h
index 3fa1bd13c75a25ff93609593dc0e1f2b8bc8f590..deb3564c25b3aa650cb48216838ad067770ab067 100644
--- a/third_party/WebKit/Source/modules/payments/PaymentRequest.h
+++ b/third_party/WebKit/Source/modules/payments/PaymentRequest.h
@@ -27,9 +27,9 @@
namespace blink {
class ExceptionState;
+class PaymentAddress;
class ScriptPromiseResolver;
class ScriptState;
-class ShippingAddress;
class MODULES_EXPORT PaymentRequest final : public EventTargetWithInlineData, WTF_NON_EXPORTED_BASE(public mojom::blink::PaymentRequestClient), public PaymentCompleter, public PaymentUpdater, public ContextLifecycleObserver, public ActiveScriptWrappable {
DEFINE_WRAPPERTYPEINFO();
@@ -46,7 +46,7 @@ public:
ScriptPromise show(ScriptState*);
void abort(ExceptionState&);
- ShippingAddress* getShippingAddress() const { return m_shippingAddress.get(); }
+ PaymentAddress* getShippingAddress() const { return m_shippingAddress.get(); }
const String& shippingOption() const { return m_shippingOption; }
DEFINE_ATTRIBUTE_EVENT_LISTENER(shippingaddresschange);
@@ -75,7 +75,7 @@ private:
bool hasPendingActivity() const override;
// mojom::blink::PaymentRequestClient:
- void OnShippingAddressChange(mojom::blink::ShippingAddressPtr) override;
+ void OnShippingAddressChange(mojom::blink::PaymentAddressPtr) override;
void OnShippingOptionChange(const String& shippingOptionId) override;
void OnPaymentResponse(mojom::blink::PaymentResponsePtr) override;
void OnError() override;
@@ -88,7 +88,7 @@ private:
PaymentDetails m_details;
PaymentOptions m_options;
String m_stringifiedData;
- Member<ShippingAddress> m_shippingAddress;
+ Member<PaymentAddress> m_shippingAddress;
String m_shippingOption;
Member<ScriptPromiseResolver> m_showResolver;
Member<ScriptPromiseResolver> m_completeResolver;

Powered by Google App Engine
This is Rietveld 408576698