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

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

Issue 1931233002: Implement PaymentRequestUpdateEvent (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@explicit-shipping
Patch Set: Rebase 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/PaymentRequestUpdateEvent.h
diff --git a/third_party/WebKit/Source/modules/payments/PaymentRequestUpdateEvent.h b/third_party/WebKit/Source/modules/payments/PaymentRequestUpdateEvent.h
new file mode 100644
index 0000000000000000000000000000000000000000..510c707dbf2fc8e33df6f30299c5d7c57ed60219
--- /dev/null
+++ b/third_party/WebKit/Source/modules/payments/PaymentRequestUpdateEvent.h
@@ -0,0 +1,46 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef PaymentRequestUpdateEvent_h
+#define PaymentRequestUpdateEvent_h
+
+#include "bindings/core/v8/ScriptPromise.h"
+#include "bindings/core/v8/ScriptWrappable.h"
+#include "core/events/Event.h"
+#include "modules/ModulesExport.h"
+#include "modules/payments/PaymentRequestUpdateEventInit.h"
+#include "platform/heap/Handle.h"
+
+namespace blink {
+
+class ExceptionState;
+class PaymentUpdater;
+class ScriptState;
+
+class MODULES_EXPORT PaymentRequestUpdateEvent final : public Event {
+ DEFINE_WRAPPERTYPEINFO();
+
+public:
+ ~PaymentRequestUpdateEvent() override;
+
+ static PaymentRequestUpdateEvent* create();
+ static PaymentRequestUpdateEvent* create(const AtomicString& type, const PaymentRequestUpdateEventInit& = PaymentRequestUpdateEventInit());
+
+ void setPaymentDetailsUpdater(PaymentUpdater*);
+
+ void updateWith(ScriptState*, ScriptPromise, ExceptionState&);
+
+ DECLARE_VIRTUAL_TRACE();
+
+private:
+ PaymentRequestUpdateEvent();
+ PaymentRequestUpdateEvent(const AtomicString& type, const PaymentRequestUpdateEventInit&);
+
+ Member<PaymentUpdater> m_updater;
+ bool m_waitForUpdate;
+};
+
+} // namespace blink
+
+#endif // PaymentRequestUpdateEvent_h

Powered by Google App Engine
This is Rietveld 408576698