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 |
new file mode 100644 |
index 0000000000000000000000000000000000000000..82bf1b7155c44d3d2e7785c0c2ee953436ea95a4 |
--- /dev/null |
+++ b/third_party/WebKit/Source/modules/payments/PaymentRequestEvent.h |
@@ -0,0 +1,39 @@ |
+// 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 PaymentRequestEvent_h |
+#define PaymentRequestEvent_h |
+ |
+#include "modules/EventModules.h" |
+#include "modules/payments/PaymentAppRequestData.h" |
+#include "modules/serviceworkers/ExtendableEvent.h" |
+#include "platform/heap/Handle.h" |
+ |
+namespace WTF { |
+class AtomicString; |
+} // namespace WTF |
+ |
+namespace blink { |
+ |
+class MODULES_EXPORT PaymentRequestEvent final : public ExtendableEvent { |
+ DEFINE_WRAPPERTYPEINFO(); |
+ WTF_MAKE_NONCOPYABLE(PaymentRequestEvent); |
+ |
+ public: |
+ const AtomicString& interfaceName() const override; |
+ |
+ void data(PaymentAppRequestData&) const; |
+ void respondWith(ScriptPromise); |
+ |
+ DECLARE_VIRTUAL_TRACE(); |
+ |
+ private: |
+ explicit PaymentRequestEvent(const AtomicString& type, |
haraken
2016/11/21 00:15:55
Drop explicit.
zino
2016/11/21 09:31:04
Done.
|
+ const PaymentAppRequestData&, |
+ WaitUntilObserver*); |
+}; |
+ |
+} // namespace blink |
+ |
+#endif // PaymentRequestEvent_h |