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

Side by Side Diff: third_party/WebKit/Source/modules/payments/PaymentRequestUpdateEvent.h

Issue 2216593002: Drop document.createEvent support for things still behind a flag (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@createEvent
Patch Set: fix LayoutTests Created 4 years, 4 months 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 unified diff | Download patch
OLDNEW
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"
11 #include "modules/ModulesExport.h" 11 #include "modules/ModulesExport.h"
12 #include "modules/payments/PaymentRequestUpdateEventInit.h" 12 #include "modules/payments/PaymentRequestUpdateEventInit.h"
13 #include "platform/Timer.h" 13 #include "platform/Timer.h"
14 #include "platform/heap/Handle.h" 14 #include "platform/heap/Handle.h"
15 15
16 namespace blink { 16 namespace blink {
17 17
18 class ExceptionState; 18 class ExceptionState;
19 class PaymentUpdater; 19 class PaymentUpdater;
20 class ScriptState; 20 class ScriptState;
21 21
22 class MODULES_EXPORT PaymentRequestUpdateEvent final : public Event { 22 class MODULES_EXPORT PaymentRequestUpdateEvent final : public Event {
23 DEFINE_WRAPPERTYPEINFO(); 23 DEFINE_WRAPPERTYPEINFO();
24 24
25 public: 25 public:
26 ~PaymentRequestUpdateEvent() override; 26 ~PaymentRequestUpdateEvent() override;
27 27
28 static PaymentRequestUpdateEvent* create();
29 static PaymentRequestUpdateEvent* create(const AtomicString& type, const Pay mentRequestUpdateEventInit& = PaymentRequestUpdateEventInit()); 28 static PaymentRequestUpdateEvent* create(const AtomicString& type, const Pay mentRequestUpdateEventInit& = PaymentRequestUpdateEventInit());
30 29
31 void setPaymentDetailsUpdater(PaymentUpdater*); 30 void setPaymentDetailsUpdater(PaymentUpdater*);
32 31
33 void updateWith(ScriptState*, ScriptPromise, ExceptionState&); 32 void updateWith(ScriptState*, ScriptPromise, ExceptionState&);
34 33
35 void onTimerFired(TimerBase*); 34 void onTimerFired(TimerBase*);
36 35
37 DECLARE_VIRTUAL_TRACE(); 36 DECLARE_VIRTUAL_TRACE();
38 37
39 private: 38 private:
40 PaymentRequestUpdateEvent();
41 PaymentRequestUpdateEvent(const AtomicString& type, const PaymentRequestUpda teEventInit&); 39 PaymentRequestUpdateEvent(const AtomicString& type, const PaymentRequestUpda teEventInit&);
42 40
43 Member<PaymentUpdater> m_updater; 41 Member<PaymentUpdater> m_updater;
44 bool m_waitForUpdate; 42 bool m_waitForUpdate;
45 Timer<PaymentRequestUpdateEvent> m_abortTimer; 43 Timer<PaymentRequestUpdateEvent> m_abortTimer;
46 }; 44 };
47 45
48 } // namespace blink 46 } // namespace blink
49 47
50 #endif // PaymentRequestUpdateEvent_h 48 #endif // PaymentRequestUpdateEvent_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698