Index: sky/engine/core/events/CustomEvent.h |
diff --git a/sky/engine/core/events/CustomEvent.h b/sky/engine/core/events/CustomEvent.h |
index 9b4a7a8c93e9422bd2062841d2092c74ec409589..3e91826e773babd04c57b4e633b343a12e26e229 100644 |
--- a/sky/engine/core/events/CustomEvent.h |
+++ b/sky/engine/core/events/CustomEvent.h |
@@ -26,19 +26,16 @@ |
#ifndef SKY_ENGINE_CORE_EVENTS_CUSTOMEVENT_H_ |
#define SKY_ENGINE_CORE_EVENTS_CUSTOMEVENT_H_ |
-#include "sky/engine/bindings/core/v8/SerializedScriptValue.h" |
#include "sky/engine/core/events/Event.h" |
namespace blink { |
-class SerializedScriptValue; |
- |
typedef EventInit CustomEventInit; |
class CustomEvent final : public Event { |
DEFINE_WRAPPERTYPEINFO(); |
public: |
- virtual ~CustomEvent(); |
+ ~CustomEvent() override; |
static PassRefPtr<CustomEvent> create() |
{ |
@@ -50,23 +47,11 @@ public: |
return adoptRef(new CustomEvent(type, initializer)); |
} |
- void initCustomEvent(const AtomicString& type, bool canBubble, bool cancelable, PassRefPtr<SerializedScriptValue>); |
- |
- virtual const AtomicString& interfaceName() const override; |
- |
- SerializedScriptValue* serializedDetail() { return m_serializedDetail.get(); } |
- |
- void setSerializedDetail(PassRefPtr<SerializedScriptValue> detail) |
- { |
- ASSERT(!m_serializedDetail); |
- m_serializedDetail = detail; |
- } |
+ const AtomicString& interfaceName() const override; |
private: |
CustomEvent(); |
CustomEvent(const AtomicString& type, const CustomEventInit& initializer); |
- |
- RefPtr<SerializedScriptValue> m_serializedDetail; |
}; |
} // namespace blink |