OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef PaymentRequestEvent_h |
| 6 #define PaymentRequestEvent_h |
| 7 |
| 8 #include "modules/EventModules.h" |
| 9 #include "modules/payments/PaymentAppRequestData.h" |
| 10 #include "modules/serviceworkers/ExtendableEvent.h" |
| 11 #include "platform/heap/Handle.h" |
| 12 |
| 13 namespace WTF { |
| 14 class AtomicString; |
| 15 } |
| 16 |
| 17 namespace blink { |
| 18 |
| 19 class MODULES_EXPORT PaymentRequestEvent final : public ExtendableEvent { |
| 20 DEFINE_WRAPPERTYPEINFO(); |
| 21 WTF_MAKE_NONCOPYABLE(PaymentRequestEvent); |
| 22 |
| 23 public: |
| 24 ~PaymentRequestEvent() override; |
| 25 |
| 26 const AtomicString& interfaceName() const override; |
| 27 |
| 28 void data(PaymentAppRequestData&) const; |
| 29 void respondWith(ScriptPromise); |
| 30 |
| 31 DECLARE_VIRTUAL_TRACE(); |
| 32 |
| 33 private: |
| 34 PaymentRequestEvent(const AtomicString& type, |
| 35 const PaymentAppRequestData&, |
| 36 WaitUntilObserver*); |
| 37 }; |
| 38 |
| 39 } // namespace blink |
| 40 |
| 41 #endif // PaymentRequestEvent_h |
OLD | NEW |