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

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

Issue 1108833003: Replacing v8::Handle<T> with v8::Local<T> (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 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
« no previous file with comments | « Source/core/dom/DOMDataView.cpp ('k') | Source/core/events/MessageEvent.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 void setSerializedData(PassRefPtr<SerializedScriptValue> data) 109 void setSerializedData(PassRefPtr<SerializedScriptValue> data)
110 { 110 {
111 ASSERT(!m_dataAsSerializedScriptValue); 111 ASSERT(!m_dataAsSerializedScriptValue);
112 m_dataAsSerializedScriptValue = data; 112 m_dataAsSerializedScriptValue = data;
113 } 113 }
114 114
115 void entangleMessagePorts(ExecutionContext*); 115 void entangleMessagePorts(ExecutionContext*);
116 116
117 DECLARE_VIRTUAL_TRACE(); 117 DECLARE_VIRTUAL_TRACE();
118 118
119 virtual v8::Handle<v8::Object> associateWithWrapper(v8::Isolate*, const Wrap perTypeInfo*, v8::Handle<v8::Object> wrapper) override; 119 virtual v8::Local<v8::Object> associateWithWrapper(v8::Isolate*, const Wrapp erTypeInfo*, v8::Local<v8::Object> wrapper) override;
120 120
121 private: 121 private:
122 MessageEvent(); 122 MessageEvent();
123 MessageEvent(const AtomicString&, const MessageEventInit&); 123 MessageEvent(const AtomicString&, const MessageEventInit&);
124 MessageEvent(const String& origin, const String& lastEventId, PassRefPtrWill BeRawPtr<EventTarget> source, PassOwnPtrWillBeRawPtr<MessagePortArray>); 124 MessageEvent(const String& origin, const String& lastEventId, PassRefPtrWill BeRawPtr<EventTarget> source, PassOwnPtrWillBeRawPtr<MessagePortArray>);
125 MessageEvent(PassRefPtr<SerializedScriptValue> data, const String& origin, c onst String& lastEventId, PassRefPtrWillBeRawPtr<EventTarget> source, PassOwnPtr WillBeRawPtr<MessagePortArray>); 125 MessageEvent(PassRefPtr<SerializedScriptValue> data, const String& origin, c onst String& lastEventId, PassRefPtrWillBeRawPtr<EventTarget> source, PassOwnPtr WillBeRawPtr<MessagePortArray>);
126 MessageEvent(PassRefPtr<SerializedScriptValue> data, const String& origin, c onst String& lastEventId, PassRefPtrWillBeRawPtr<EventTarget> source, PassOwnPtr <MessagePortChannelArray>); 126 MessageEvent(PassRefPtr<SerializedScriptValue> data, const String& origin, c onst String& lastEventId, PassRefPtrWillBeRawPtr<EventTarget> source, PassOwnPtr <MessagePortChannelArray>);
127 127
128 MessageEvent(const String& data, const String& origin); 128 MessageEvent(const String& data, const String& origin);
129 MessageEvent(Blob* data, const String& origin); 129 MessageEvent(Blob* data, const String& origin);
(...skipping 10 matching lines...) Expand all
140 // m_ports are the MessagePorts in an engtangled state, and m_channels are 140 // m_ports are the MessagePorts in an engtangled state, and m_channels are
141 // the MessageChannels in a disentangled state. Only one of them can be 141 // the MessageChannels in a disentangled state. Only one of them can be
142 // non-empty at a time. entangleMessagePorts() moves between the states. 142 // non-empty at a time. entangleMessagePorts() moves between the states.
143 OwnPtrWillBeMember<MessagePortArray> m_ports; 143 OwnPtrWillBeMember<MessagePortArray> m_ports;
144 OwnPtr<MessagePortChannelArray> m_channels; 144 OwnPtr<MessagePortChannelArray> m_channels;
145 }; 145 };
146 146
147 } // namespace blink 147 } // namespace blink
148 148
149 #endif // MessageEvent_h 149 #endif // MessageEvent_h
OLDNEW
« no previous file with comments | « Source/core/dom/DOMDataView.cpp ('k') | Source/core/events/MessageEvent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698