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

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

Issue 2705293010: PaymentApp: Implement respondWith() in PaymentRequestEvent. (blink side) (Closed)
Patch Set: PaymentApp: Implement respondWith() in PaymentRequestEvent. (blink side) 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: 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 723136778f7bd882cfaf496cf26ad222e94fd66b..ea964626e2baac3cc9457aff94133bb1339186bc 100644
--- a/third_party/WebKit/Source/modules/payments/PaymentRequestEvent.h
+++ b/third_party/WebKit/Source/modules/payments/PaymentRequestEvent.h
@@ -16,6 +16,8 @@ class AtomicString;
namespace blink {
+class RespondWithObserver;
+
class MODULES_EXPORT PaymentRequestEvent final : public ExtendableEvent {
DEFINE_WRAPPERTYPEINFO();
WTF_MAKE_NONCOPYABLE(PaymentRequestEvent);
@@ -23,21 +25,24 @@ class MODULES_EXPORT PaymentRequestEvent final : public ExtendableEvent {
public:
static PaymentRequestEvent* create(const AtomicString& type,
const PaymentAppRequest&,
+ RespondWithObserver*,
WaitUntilObserver*);
~PaymentRequestEvent() override;
const AtomicString& interfaceName() const override;
void appRequest(PaymentAppRequest&) const;
- void respondWith(ScriptPromise);
+ void respondWith(ScriptState*, ScriptPromise, ExceptionState&);
DECLARE_VIRTUAL_TRACE();
private:
PaymentRequestEvent(const AtomicString& type,
const PaymentAppRequest&,
+ RespondWithObserver*,
WaitUntilObserver*);
PaymentAppRequest m_appRequest;
+ Member<RespondWithObserver> m_observer;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698