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

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 1 Created 4 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
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..bebd9d3b86d2d84adbf1c18b4be4dbe01b35ef3d
--- /dev/null
+++ b/third_party/WebKit/Source/modules/payments/PaymentRequestUpdateEvent.h
@@ -0,0 +1,44 @@
+// 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 "platform/heap/Handle.h"
+
+namespace blink {
+
+class PaymentRequestUpdateEventInit;
+class PaymentUpdater;
+
+class MODULES_EXPORT PaymentRequestUpdateEvent final : public Event {
+ DEFINE_WRAPPERTYPEINFO();
+
+public:
+ ~PaymentRequestUpdateEvent() override;
+
+ static PaymentRequestUpdateEvent* create();
+ static PaymentRequestUpdateEvent* create(const AtomicString& type);
Marijn Kruisselbrink 2016/05/03 17:57:28 Do you actually need a create method that takes a
please use gerrit instead 2016/05/03 21:38:33 Done.
+ static PaymentRequestUpdateEvent* create(const AtomicString& type, const PaymentRequestUpdateEventInit&);
+
+ void setPaymentDetailsUpdater(PaymentUpdater*);
+
+ void updateWith(ScriptState*, ScriptPromise);
+
+ DECLARE_VIRTUAL_TRACE();
+
+private:
+ PaymentRequestUpdateEvent();
+ explicit PaymentRequestUpdateEvent(const AtomicString& type);
+
+ Member<PaymentUpdater> m_updater;
+};
+
+} // namespace blink
+
+#endif // PaymentRequestUpdateEvent_h

Powered by Google App Engine
This is Rietveld 408576698