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

Unified Diff: third_party/WebKit/Source/core/events/MessageEvent.cpp

Issue 2686503005: Remove SerializedScriptValue::serialize and ScriptValueSerializer::serializeWTFString. (Closed)
Patch Set: Merge branch 'master' into delete-ssv Created 3 years, 10 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: third_party/WebKit/Source/core/events/MessageEvent.cpp
diff --git a/third_party/WebKit/Source/core/events/MessageEvent.cpp b/third_party/WebKit/Source/core/events/MessageEvent.cpp
index 2f3119c46880ff11d33ea87929988d999327ef25..97ca6f65fee673260fea51f4434e43b239c7ec0d 100644
--- a/third_party/WebKit/Source/core/events/MessageEvent.cpp
+++ b/third_party/WebKit/Source/core/events/MessageEvent.cpp
@@ -198,6 +198,28 @@ void MessageEvent::initMessageEvent(const AtomicString& type,
->registerMemoryAllocatedWithCurrentScriptContext();
}
+void MessageEvent::initMessageEvent(const AtomicString& type,
+ bool canBubble,
+ bool cancelable,
+ const String& data,
+ const String& origin,
+ const String& lastEventId,
+ EventTarget* source,
+ MessagePortArray* ports) {
+ if (isBeingDispatched())
+ return;
+
+ initEvent(type, canBubble, cancelable);
+
+ m_dataType = DataTypeString;
+ m_dataAsString = data;
+ m_origin = origin;
+ m_lastEventId = lastEventId;
+ m_source = source;
+ m_ports = ports;
+ m_suborigin = "";
+}
+
const AtomicString& MessageEvent::interfaceName() const {
return EventNames::MessageEvent;
}
« no previous file with comments | « third_party/WebKit/Source/core/events/MessageEvent.h ('k') | third_party/WebKit/Source/modules/eventsource/EventSource.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698