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