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

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

Issue 19457002: Make 'any'-typed attributes of events available in isolated worlds (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Patch for landing Created 7 years, 5 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/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);

Powered by Google App Engine
This is Rietveld 408576698