Index: Source/core/dom/CustomEvent.h |
diff --git a/Source/core/dom/CustomEvent.h b/Source/core/dom/CustomEvent.h |
index 22466bfc4522e35099fdbca5a5dc71a14e5a9a1b..fc7bb111f6aa895ed4dc6d15be1f49d027647f8e 100644 |
--- a/Source/core/dom/CustomEvent.h |
+++ b/Source/core/dom/CustomEvent.h |
@@ -26,12 +26,12 @@ |
#ifndef CustomEvent_h |
#define CustomEvent_h |
-#include "bindings/v8/ScriptValue.h" |
-#include "bindings/v8/SerializedScriptValue.h" |
#include "core/dom/Event.h" |
namespace WebCore { |
+class SerializedScriptValue; |
+ |
typedef EventInit CustomEventInit; |
class CustomEvent : public Event { |
@@ -54,6 +54,12 @@ public: |
SerializedScriptValue* serializedScriptValue() { return m_serializedScriptValue.get(); } |
+ void setSerializedDetail(PassRefPtr<SerializedScriptValue> detail) |
+ { |
+ ASSERT(!m_serializedScriptValue); |
+ m_serializedScriptValue = detail; |
+ } |
+ |
private: |
CustomEvent(); |
CustomEvent(const AtomicString& type, const CustomEventInit& initializer); |