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

Unified Diff: Source/core/dom/MessageEvent.cpp

Issue 13844022: Remove code to support Objective-C bindings (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 8 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/MessageEvent.cpp
diff --git a/Source/core/dom/MessageEvent.cpp b/Source/core/dom/MessageEvent.cpp
index 9112d6308e0542240ad72e76f00b3601968cd5dd..0e269d78d5607a01e471c438789ba9df09f7025b 100644
--- a/Source/core/dom/MessageEvent.cpp
+++ b/Source/core/dom/MessageEvent.cpp
@@ -148,32 +148,6 @@ void MessageEvent::initMessageEvent(const AtomicString& type, bool canBubble, bo
m_dataAsSerializedScriptValue->registerMemoryAllocatedWithCurrentScriptContext();
}
-// FIXME: Remove this when we have custom ObjC binding support.
-SerializedScriptValue* MessageEvent::data() const
-{
- // WebSocket is not exposed in ObjC bindings, thus the data type should always be SerializedScriptValue.
- ASSERT(m_dataType == DataTypeSerializedScriptValue);
- return m_dataAsSerializedScriptValue.get();
-}
-
-MessagePort* MessageEvent::messagePort()
-{
- if (!m_ports)
- return 0;
- ASSERT(m_ports->size() == 1);
- return (*m_ports)[0].get();
-}
-
-void MessageEvent::initMessageEvent(const AtomicString& type, bool canBubble, bool cancelable, PassRefPtr<SerializedScriptValue> data, const String& origin, const String& lastEventId, DOMWindow* source, MessagePort* port)
-{
- OwnPtr<MessagePortArray> ports;
- if (port) {
- ports = adoptPtr(new MessagePortArray);
- ports->append(port);
- }
- initMessageEvent(type, canBubble, cancelable, data, origin, lastEventId, source, ports.release());
-}
-
const AtomicString& MessageEvent::interfaceName() const
{
return eventNames().interfaceForMessageEvent;

Powered by Google App Engine
This is Rietveld 408576698