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

Side by Side Diff: Source/core/dom/MessageEvent.h

Issue 13844022: Remove code to support Objective-C bindings (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2007 Henry Mason (hmason@mac.com) 2 * Copyright (C) 2007 Henry Mason (hmason@mac.com)
3 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserv ed. 3 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserv ed.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 virtual ~MessageEvent(); 83 virtual ~MessageEvent();
84 84
85 void initMessageEvent(const AtomicString& type, bool canBubble, bool cancela ble, const ScriptValue& data, const String& origin, const String& lastEventId, D OMWindow* source, PassOwnPtr<MessagePortArray>); 85 void initMessageEvent(const AtomicString& type, bool canBubble, bool cancela ble, const ScriptValue& data, const String& origin, const String& lastEventId, D OMWindow* source, PassOwnPtr<MessagePortArray>);
86 void initMessageEvent(const AtomicString& type, bool canBubble, bool cancela ble, PassRefPtr<SerializedScriptValue> data, const String& origin, const String& lastEventId, DOMWindow* source, PassOwnPtr<MessagePortArray>); 86 void initMessageEvent(const AtomicString& type, bool canBubble, bool cancela ble, PassRefPtr<SerializedScriptValue> data, const String& origin, const String& lastEventId, DOMWindow* source, PassOwnPtr<MessagePortArray>);
87 87
88 const String& origin() const { return m_origin; } 88 const String& origin() const { return m_origin; }
89 const String& lastEventId() const { return m_lastEventId; } 89 const String& lastEventId() const { return m_lastEventId; }
90 DOMWindow* source() const { return m_source.get(); } 90 DOMWindow* source() const { return m_source.get(); }
91 MessagePortArray* ports() const { return m_ports.get(); } 91 MessagePortArray* ports() const { return m_ports.get(); }
92 92
93 // FIXME: Remove this when we have custom ObjC binding support.
94 SerializedScriptValue* data() const;
95
96 // Needed for Objective-C bindings (see bug 28774).
97 MessagePort* messagePort();
98 void initMessageEvent(const AtomicString& type, bool canBubble, bool cancela ble, PassRefPtr<SerializedScriptValue> data, const String& origin, const String& lastEventId, DOMWindow* source, MessagePort*);
99
100 virtual const AtomicString& interfaceName() const; 93 virtual const AtomicString& interfaceName() const;
101 94
102 enum DataType { 95 enum DataType {
103 DataTypeScriptValue, 96 DataTypeScriptValue,
104 DataTypeSerializedScriptValue, 97 DataTypeSerializedScriptValue,
105 DataTypeString, 98 DataTypeString,
106 DataTypeBlob, 99 DataTypeBlob,
107 DataTypeArrayBuffer 100 DataTypeArrayBuffer
108 }; 101 };
109 DataType dataType() const { return m_dataType; } 102 DataType dataType() const { return m_dataType; }
(...skipping 21 matching lines...) Expand all
131 RefPtr<ArrayBuffer> m_dataAsArrayBuffer; 124 RefPtr<ArrayBuffer> m_dataAsArrayBuffer;
132 String m_origin; 125 String m_origin;
133 String m_lastEventId; 126 String m_lastEventId;
134 RefPtr<DOMWindow> m_source; 127 RefPtr<DOMWindow> m_source;
135 OwnPtr<MessagePortArray> m_ports; 128 OwnPtr<MessagePortArray> m_ports;
136 }; 129 };
137 130
138 } // namespace WebCore 131 } // namespace WebCore
139 132
140 #endif // MessageEvent_h 133 #endif // MessageEvent_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698