Lines Matching refs:v8
32 #include "bindings/core/v8/V8EventListener.h"
34 #include "bindings/core/v8/ScriptController.h"
35 #include "bindings/core/v8/V8Binding.h"
41 V8EventListener::V8EventListener(v8::Local<v8::Object> listener, bool isAttribute, ScriptState* scriptState)
47 v8::Local<v8::Function> V8EventListener::getListenerFunction(ExecutionContext*)
49 v8::Local<v8::Object> listener = getListenerObject(scriptState()->executionContext());
53 return v8::Local<v8::Function>();
56 return v8::Local<v8::Function>::Cast(listener);
60 v8::Local<v8::Value> property = listener->Get(v8AtomicString(isolate(), "handleEvent"));
64 return v8::Local<v8::Function>::Cast(property);
67 return v8::Local<v8::Function>();
70 v8::Local<v8::Value> V8EventListener::callListenerFunction(v8::Handle<v8::Value> jsEvent, Event* event)
72 v8::Local<v8::Function> handlerFunction = getListenerFunction(scriptState()->executionContext());
73 v8::Local<v8::Object> receiver = getReceiverObject(event);
75 return v8::Local<v8::Value>();
78 return v8::Local<v8::Value>();
82 return v8::Local<v8::Value>();
85 return v8::Local<v8::Value>();
87 v8::Handle<v8::Value> parameters[1] = { jsEvent };