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 "platform/heap/Handle.h" | |
13 | |
14 namespace blink { | |
15 | |
16 class PaymentRequestUpdateEventInit; | |
17 class PaymentUpdater; | |
18 | |
19 class MODULES_EXPORT PaymentRequestUpdateEvent final : public Event { | |
20 DEFINE_WRAPPERTYPEINFO(); | |
21 | |
22 public: | |
23 ~PaymentRequestUpdateEvent() override; | |
24 | |
25 static PaymentRequestUpdateEvent* create(); | |
26 static PaymentRequestUpdateEvent* create(const AtomicString& type); | |
Marijn Kruisselbrink
2016/05/03 17:57:28
Do you actually need a create method that takes a
please use gerrit instead
2016/05/03 21:38:33
Done.
| |
27 static PaymentRequestUpdateEvent* create(const AtomicString& type, const Pay mentRequestUpdateEventInit&); | |
28 | |
29 void setPaymentDetailsUpdater(PaymentUpdater*); | |
30 | |
31 void updateWith(ScriptState*, ScriptPromise); | |
32 | |
33 DECLARE_VIRTUAL_TRACE(); | |
34 | |
35 private: | |
36 PaymentRequestUpdateEvent(); | |
37 explicit PaymentRequestUpdateEvent(const AtomicString& type); | |
38 | |
39 Member<PaymentUpdater> m_updater; | |
40 }; | |
41 | |
42 } // namespace blink | |
43 | |
44 #endif // PaymentRequestUpdateEvent_h | |
OLD | NEW |