Home
last modified time | relevance | path

Searched refs:portArray (Results 1 – 8 of 8) sorted by relevance

/external/webkit/Source/WebCore/bindings/v8/custom/
DV8MessagePortCustom.cpp53 MessagePortArray portArray; in postMessageCallback() local
55 if (!getMessagePortArray(args[1], portArray)) in postMessageCallback()
59 messagePort->postMessage(message.release(), &portArray, ec); in postMessageCallback()
63 bool getMessagePortArray(v8::Local<v8::Value> value, MessagePortArray& portArray) in getMessagePortArray() argument
66 portArray.resize(0); in getMessagePortArray()
89 portArray.resize(length); in getMessagePortArray()
103 portArray[i] = V8MessagePort::toNative(v8::Handle<v8::Object>::Cast(port)); in getMessagePortArray()
DV8MessageEventCustom.cpp54 v8::Local<v8::Array> portArray = v8::Array::New(ports->size()); in portsAccessorGetter() local
56 portArray->Set(v8::Integer::New(i), toV8((*ports)[i].get())); in portsAccessorGetter()
58 return portArray; in portsAccessorGetter()
79 OwnPtr<MessagePortArray> portArray; in initMessageEventCallback() local
82 portArray = new MessagePortArray(); in initMessageEventCallback()
83 if (!getMessagePortArray(args[7], *portArray)) in initMessageEventCallback()
86 …eArg, cancelableArg, dataArg.release(), originArg, lastEventIdArg, sourceArg, portArray.release()); in initMessageEventCallback()
DV8DedicatedWorkerContextCustom.cpp53 MessagePortArray portArray; in postMessageCallback() local
55 if (!getMessagePortArray(args[1], portArray)) in postMessageCallback()
59 workerContext->postMessage(message.release(), &portArray, ec); in postMessageCallback()
DV8WorkerCustom.cpp98 MessagePortArray portArray; in postMessageCallback() local
100 if (!getMessagePortArray(args[1], portArray)) in postMessageCallback()
104 worker->postMessage(message.release(), &portArray, ec); in postMessageCallback()
DV8DOMWindowCustom.cpp328 MessagePortArray portArray; in postMessageCallback() local
337 if (!getMessagePortArray(args[1], portArray)) in postMessageCallback()
348 window->postMessage(message.release(), &portArray, targetOrigin, source, ec); in postMessageCallback()
/external/webkit/Source/WebCore/bindings/js/
DJSMessagePortCustom.cpp60 void fillMessagePortArray(JSC::ExecState* exec, JSC::JSValue value, MessagePortArray& portArray) in fillMessagePortArray() argument
65 portArray.resize(0); in fillMessagePortArray()
75 portArray.resize(length); in fillMessagePortArray()
92 portArray[i] = port.release(); in fillMessagePortArray()
DJSMessagePortCustom.h52 MessagePortArray portArray; in handlePostMessage() local
53 fillMessagePortArray(exec, exec->argument(1), portArray); in handlePostMessage()
58 impl->postMessage(message, &portArray, ec); in handlePostMessage()
/external/webkit/Source/WebCore/dom/
DMessagePort.cpp222 MessagePortChannelArray* portArray = new MessagePortChannelArray(ports->size()); in disentanglePorts() local
226 (*portArray)[i] = channel.release(); in disentanglePorts()
228 return portArray; in disentanglePorts()
236 MessagePortArray* portArray = new MessagePortArray(channels->size()); in entanglePorts() local
240 (*portArray)[i] = port.release(); in entanglePorts()
242 return portArray; in entanglePorts()