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

Unified Diff: Source/core/events/CustomEvent.h

Issue 1130763006: IDL: Add any support to IDL dictionary and use it in CustomEventInit (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 7 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 side-by-side diff with in-line comments
Download patch
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;
};

Powered by Google App Engine
This is Rietveld 408576698