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

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

Issue 2823393002: Web payment shipping address/option timeout. (Closed)
Patch Set: Created 3 years, 8 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/payments/PaymentRequestUpdateEvent.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/modules/payments/PaymentRequestUpdateEvent.h
diff --git a/third_party/WebKit/Source/modules/payments/PaymentRequestUpdateEvent.h b/third_party/WebKit/Source/modules/payments/PaymentRequestUpdateEvent.h
index 53a945b39518577a2c75eb8e1e8e460362c1e199..6ebb57fc11de95d486df4b2c00c351a46e394a97 100644
--- a/third_party/WebKit/Source/modules/payments/PaymentRequestUpdateEvent.h
+++ b/third_party/WebKit/Source/modules/payments/PaymentRequestUpdateEvent.h
@@ -10,6 +10,7 @@
#include "core/events/Event.h"
#include "modules/ModulesExport.h"
#include "modules/payments/PaymentRequestUpdateEventInit.h"
+#include "modules/payments/PaymentUpdater.h"
#include "platform/Timer.h"
#include "platform/heap/Handle.h"
@@ -17,11 +18,12 @@ namespace blink {
class ExceptionState;
class ExecutionContext;
-class PaymentUpdater;
class ScriptState;
-class MODULES_EXPORT PaymentRequestUpdateEvent final : public Event {
+class MODULES_EXPORT PaymentRequestUpdateEvent final : public Event,
+ public PaymentUpdater {
DEFINE_WRAPPERTYPEINFO();
+ USING_GARBAGE_COLLECTED_MIXIN(PaymentRequestUpdateEvent)
public:
~PaymentRequestUpdateEvent() override;
@@ -35,6 +37,10 @@ class MODULES_EXPORT PaymentRequestUpdateEvent final : public Event {
void updateWith(ScriptState*, ScriptPromise, ExceptionState&);
+ // PaymentUpdater:
+ void OnUpdatePaymentDetails(const ScriptValue& details_script_value) override;
+ void OnUpdatePaymentDetailsFailure(const String& error) override;
+
DECLARE_VIRTUAL_TRACE();
void OnUpdateEventTimeoutForTesting();
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/payments/PaymentRequestUpdateEvent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698