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

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
« no previous file with comments | « Source/core/core.gypi ('k') | Source/core/events/CustomEvent.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/events/CustomEvent.h
diff --git a/Source/core/events/CustomEvent.h b/Source/core/events/CustomEvent.h
index e646ddd60a27348bce2bc7151540dd137c8fd6ea..2d5dfe1ec35654a7968b80e5cf1d03ab16de1008 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() const { return m_detail; }
+ 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;
};
« no previous file with comments | « Source/core/core.gypi ('k') | Source/core/events/CustomEvent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698