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

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: Properly refactored 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..e9e164af19cc0dce397dfbd134b8be029073d5f7 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,8 @@ public:
SerializedScriptValue* serializedScriptValue() { return m_serializedScriptValue.get(); }
+ void setSerializedDetail(PassRefPtr<SerializedScriptValue> detail) { m_serializedScriptValue = detail; }
abarth-chromium 2013/07/17 23:06:44 Should we ASSERT That we don't have one already?
adamk 2013/07/17 23:45:10 Done here and in the other two events.
+
private:
CustomEvent();
CustomEvent(const AtomicString& type, const CustomEventInit& initializer);

Powered by Google App Engine
This is Rietveld 408576698