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

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

Issue 2887713002: PaymentHandler: Merge PaymentAppRequest and PaymentRequestEvent. (Closed)
Patch Set: rebase Created 3 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/PaymentRequestEvent.h
diff --git a/third_party/WebKit/Source/modules/payments/PaymentRequestEvent.h b/third_party/WebKit/Source/modules/payments/PaymentRequestEvent.h
index b80f03a3f832b1674d56c88e83e9a5a8021f9082..591e008bc816b3848e0057a71709e28a09739f5a 100644
--- a/third_party/WebKit/Source/modules/payments/PaymentRequestEvent.h
+++ b/third_party/WebKit/Source/modules/payments/PaymentRequestEvent.h
@@ -31,7 +31,14 @@ class MODULES_EXPORT PaymentRequestEvent final : public ExtendableEvent {
const AtomicString& InterfaceName() const override;
- void appRequest(PaymentAppRequest&) const;
+ const String& topLevelOrigin() const;
+ const String& paymentRequestOrigin() const;
+ const String& paymentRequestId() const;
+ const HeapVector<PaymentMethodData>& methodData() const;
+ void total(PaymentItem& value) const;
+ const HeapVector<PaymentDetailsModifier>& modifiers() const;
+ const String& instrumentKey() const;
+
void respondWith(ScriptState*, ScriptPromise, ExceptionState&);
DECLARE_VIRTUAL_TRACE();
@@ -41,7 +48,15 @@ class MODULES_EXPORT PaymentRequestEvent final : public ExtendableEvent {
const PaymentAppRequest&,
RespondWithObserver*,
WaitUntilObserver*);
- PaymentAppRequest app_request_;
+
+ String top_level_origin_;
+ String payment_request_origin_;
+ String payment_request_id_;
+ HeapVector<PaymentMethodData> method_data_;
+ PaymentItem total_;
+ HeapVector<PaymentDetailsModifier> modifiers_;
+ String instrument_key_;
+
Member<RespondWithObserver> observer_;
};

Powered by Google App Engine
This is Rietveld 408576698