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

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

Issue 2510833002: PaymentApp: Add interfaces for PaymentRequestEvent. (Closed)
Patch Set: PaymentApp: Add interfaces for PaymentRequestEvent. Created 4 years, 1 month 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
new file mode 100644
index 0000000000000000000000000000000000000000..d6312ff2cc5f6746f13f930c19e6d029ecd260dc
--- /dev/null
+++ b/third_party/WebKit/Source/modules/payments/PaymentRequestEvent.h
@@ -0,0 +1,41 @@
+// 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 blink {
+
+class MODULES_EXPORT PaymentRequestEvent final : public ExtendableEvent {
+ DEFINE_WRAPPERTYPEINFO();
+ WTF_MAKE_NONCOPYABLE(PaymentRequestEvent);
+
+ public:
+ ~PaymentRequestEvent() override;
+
+ const AtomicString& interfaceName() const override;
+
+ void data(PaymentAppRequestData&) const;
+ void respondWith(ScriptPromise);
+
+ DECLARE_VIRTUAL_TRACE();
+
+ private:
+ PaymentRequestEvent(const AtomicString& type,
+ const PaymentAppRequestData&,
+ WaitUntilObserver*);
+};
+
+} // namespace blink
+
+#endif // PaymentRequestEvent_h

Powered by Google App Engine
This is Rietveld 408576698