Chromium Code Reviews| Index: Source/core/events/CustomEvent.h |
| diff --git a/Source/core/events/CustomEvent.h b/Source/core/events/CustomEvent.h |
| index e646ddd60a27348bce2bc7151540dd137c8fd6ea..3c12ea95219e24e2e19cf4325f5503ff43fc1636 100644 |
| --- a/Source/core/events/CustomEvent.h |
| +++ b/Source/core/events/CustomEvent.h |
| @@ -27,14 +27,13 @@ |
| #define CustomEvent_h |
| #include "core/CoreExport.h" |
| +#include "core/events/CustomEventInit.h" |
| #include "core/events/Event.h" |
| namespace blink { |
| class SerializedScriptValue; |
| -typedef EventInit CustomEventInit; |
| - |
| class CORE_EXPORT CustomEvent final : public Event { |
| DEFINE_WRAPPERTYPEINFO(); |
| public: |
| @@ -56,11 +55,8 @@ public: |
| SerializedScriptValue* serializedDetail() { return m_serializedDetail.get(); } |
| - void setSerializedDetail(PassRefPtr<SerializedScriptValue> detail) |
| - { |
| - ASSERT(!m_serializedDetail); |
| - m_serializedDetail = detail; |
| - } |
| + ScriptValue detail() { return m_detail; } |
|
haraken
2015/05/18 01:59:44
Add const.
bashi
2015/05/20 00:22:01
Done.
|
| + void setDetail(ScriptValue detail) { m_detail = detail; } |
| DECLARE_VIRTUAL_TRACE(); |
| @@ -68,6 +64,7 @@ private: |
| CustomEvent(); |
| CustomEvent(const AtomicString& type, const CustomEventInit& initializer); |
| + ScriptValue m_detail; |
| RefPtr<SerializedScriptValue> m_serializedDetail; |
| }; |