| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef PaymentRequestUpdateEvent_h | 5 #ifndef PaymentRequestUpdateEvent_h |
| 6 #define PaymentRequestUpdateEvent_h | 6 #define PaymentRequestUpdateEvent_h |
| 7 | 7 |
| 8 #include "bindings/core/v8/ScriptPromise.h" | 8 #include "bindings/core/v8/ScriptPromise.h" |
| 9 #include "bindings/core/v8/ScriptWrappable.h" | 9 #include "bindings/core/v8/ScriptWrappable.h" |
| 10 #include "core/events/Event.h" | 10 #include "core/events/Event.h" |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 public: | 25 public: |
| 26 ~PaymentRequestUpdateEvent() override; | 26 ~PaymentRequestUpdateEvent() override; |
| 27 | 27 |
| 28 static PaymentRequestUpdateEvent* create(); | 28 static PaymentRequestUpdateEvent* create(); |
| 29 static PaymentRequestUpdateEvent* create(const AtomicString& type, const Pay
mentRequestUpdateEventInit& = PaymentRequestUpdateEventInit()); | 29 static PaymentRequestUpdateEvent* create(const AtomicString& type, const Pay
mentRequestUpdateEventInit& = PaymentRequestUpdateEventInit()); |
| 30 | 30 |
| 31 void setPaymentDetailsUpdater(PaymentUpdater*); | 31 void setPaymentDetailsUpdater(PaymentUpdater*); |
| 32 | 32 |
| 33 void updateWith(ScriptState*, ScriptPromise, ExceptionState&); | 33 void updateWith(ScriptState*, ScriptPromise, ExceptionState&); |
| 34 | 34 |
| 35 void onTimerFired(Timer<PaymentRequestUpdateEvent>*); | 35 void onTimerFired(TimerBase*); |
| 36 | 36 |
| 37 DECLARE_VIRTUAL_TRACE(); | 37 DECLARE_VIRTUAL_TRACE(); |
| 38 | 38 |
| 39 private: | 39 private: |
| 40 PaymentRequestUpdateEvent(); | 40 PaymentRequestUpdateEvent(); |
| 41 PaymentRequestUpdateEvent(const AtomicString& type, const PaymentRequestUpda
teEventInit&); | 41 PaymentRequestUpdateEvent(const AtomicString& type, const PaymentRequestUpda
teEventInit&); |
| 42 | 42 |
| 43 Member<PaymentUpdater> m_updater; | 43 Member<PaymentUpdater> m_updater; |
| 44 bool m_waitForUpdate; | 44 bool m_waitForUpdate; |
| 45 Timer<PaymentRequestUpdateEvent> m_abortTimer; | 45 Timer<PaymentRequestUpdateEvent> m_abortTimer; |
| 46 }; | 46 }; |
| 47 | 47 |
| 48 } // namespace blink | 48 } // namespace blink |
| 49 | 49 |
| 50 #endif // PaymentRequestUpdateEvent_h | 50 #endif // PaymentRequestUpdateEvent_h |
| OLD | NEW |