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 PaymentRequestUpdateEvent_h |
| 6 #define PaymentRequestUpdateEvent_h |
| 7 |
| 8 #include "bindings/core/v8/ScriptPromise.h" |
| 9 #include "bindings/core/v8/ScriptWrappable.h" |
| 10 #include "core/events/Event.h" |
| 11 #include "modules/ModulesExport.h" |
| 12 #include "modules/payments/PaymentRequestUpdateEventInit.h" |
| 13 #include "platform/heap/Handle.h" |
| 14 |
| 15 namespace blink { |
| 16 |
| 17 class ExceptionState; |
| 18 class PaymentUpdater; |
| 19 class ScriptState; |
| 20 |
| 21 class MODULES_EXPORT PaymentRequestUpdateEvent final : public Event { |
| 22 DEFINE_WRAPPERTYPEINFO(); |
| 23 |
| 24 public: |
| 25 ~PaymentRequestUpdateEvent() override; |
| 26 |
| 27 static PaymentRequestUpdateEvent* create(); |
| 28 static PaymentRequestUpdateEvent* create(const AtomicString& type, const Pay
mentRequestUpdateEventInit& = PaymentRequestUpdateEventInit()); |
| 29 |
| 30 void setPaymentDetailsUpdater(PaymentUpdater*); |
| 31 |
| 32 void updateWith(ScriptState*, ScriptPromise, ExceptionState&); |
| 33 |
| 34 DECLARE_VIRTUAL_TRACE(); |
| 35 |
| 36 private: |
| 37 PaymentRequestUpdateEvent(); |
| 38 PaymentRequestUpdateEvent(const AtomicString& type, const PaymentRequestUpda
teEventInit&); |
| 39 |
| 40 Member<PaymentUpdater> m_updater; |
| 41 bool m_waitForUpdate; |
| 42 }; |
| 43 |
| 44 } // namespace blink |
| 45 |
| 46 #endif // PaymentRequestUpdateEvent_h |
OLD | NEW |