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

Side by Side Diff: third_party/WebKit/Source/modules/sensor/SensorErrorEvent.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 SensorErrorEvent_h 5 #ifndef SensorErrorEvent_h
6 #define SensorErrorEvent_h 6 #define SensorErrorEvent_h
7 7
8 #include "core/events/ErrorEvent.h" 8 #include "core/events/ErrorEvent.h"
9 #include "modules/EventModules.h" 9 #include "modules/EventModules.h"
10 #include "modules/sensor/SensorErrorEventInit.h" 10 #include "modules/sensor/SensorErrorEventInit.h"
11 #include "platform/heap/Handle.h" 11 #include "platform/heap/Handle.h"
12 12
13 namespace blink { 13 namespace blink {
14 14
15 class SensorErrorEvent : public Event { 15 class SensorErrorEvent : public Event {
16 DEFINE_WRAPPERTYPEINFO(); 16 DEFINE_WRAPPERTYPEINFO();
17 17
18 public: 18 public:
19 static SensorErrorEvent* create()
20 {
21 return new SensorErrorEvent;
22 }
23
24 static SensorErrorEvent* create(const AtomicString& eventType) 19 static SensorErrorEvent* create(const AtomicString& eventType)
25 { 20 {
26 return new SensorErrorEvent(eventType); 21 return new SensorErrorEvent(eventType);
27 } 22 }
28 23
29 static SensorErrorEvent* create(const AtomicString& eventType, const SensorE rrorEventInit& initializer) 24 static SensorErrorEvent* create(const AtomicString& eventType, const SensorE rrorEventInit& initializer)
30 { 25 {
31 return new SensorErrorEvent(eventType, initializer); 26 return new SensorErrorEvent(eventType, initializer);
32 } 27 }
33 28
34 ~SensorErrorEvent() override; 29 ~SensorErrorEvent() override;
35 30
36 DECLARE_VIRTUAL_TRACE(); 31 DECLARE_VIRTUAL_TRACE();
37 32
38 const AtomicString& interfaceName() const override; 33 const AtomicString& interfaceName() const override;
39 34
40 SensorErrorEvent();
41 explicit SensorErrorEvent(const AtomicString& eventType); 35 explicit SensorErrorEvent(const AtomicString& eventType);
42 SensorErrorEvent(const AtomicString& eventType, const SensorErrorEventInit& initializer); 36 SensorErrorEvent(const AtomicString& eventType, const SensorErrorEventInit& initializer);
43 37
44 }; 38 };
45 39
46 DEFINE_TYPE_CASTS(SensorErrorEvent, Event, event, event->interfaceName() == Even tNames::SensorErrorEvent, event.interfaceName() == EventNames::SensorErrorEvent) ; 40 DEFINE_TYPE_CASTS(SensorErrorEvent, Event, event, event->interfaceName() == Even tNames::SensorErrorEvent, event.interfaceName() == EventNames::SensorErrorEvent) ;
47 41
48 } // namepsace blink 42 } // namepsace blink
49 43
50 #endif // SensorErrorEvent_h 44 #endif // SensorErrorEvent_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698