| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * 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 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 300 static void implementsNodeAttributeAttributeSetterCallback(v8::Local<v8::String>
, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 300 static void implementsNodeAttributeAttributeSetterCallback(v8::Local<v8::String>
, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 301 { | 301 { |
| 302 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 302 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 303 TestInterfacePythonImplementationV8Internal::implementsNodeAttributeAttribut
eSetter(jsValue, info); | 303 TestInterfacePythonImplementationV8Internal::implementsNodeAttributeAttribut
eSetter(jsValue, info); |
| 304 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 304 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 305 } | 305 } |
| 306 | 306 |
| 307 static void implementsEventHandlerAttributeAttributeGetter(const v8::PropertyCal
lbackInfo<v8::Value>& info) | 307 static void implementsEventHandlerAttributeAttributeGetter(const v8::PropertyCal
lbackInfo<v8::Value>& info) |
| 308 { | 308 { |
| 309 TestInterfacePythonImplementation* imp = V8TestInterfacePython::toNative(inf
o.Holder()); | 309 TestInterfacePythonImplementation* imp = V8TestInterfacePython::toNative(inf
o.Holder()); |
| 310 EventListener* jsValue = TestImplements::implementsEventHandlerAttribute(imp
, isolatedWorldForIsolate(info.GetIsolate())); | 310 EventListener* jsValue = TestImplements::implementsEventHandlerAttribute(imp
); |
| 311 v8SetReturnValue(info, jsValue ? v8::Handle<v8::Value>(V8AbstractEventListen
er::cast(jsValue)->getListenerObject(imp->executionContext())) : v8::Handle<v8::
Value>(v8::Null(info.GetIsolate()))); | 311 v8SetReturnValue(info, jsValue ? v8::Handle<v8::Value>(V8AbstractEventListen
er::cast(jsValue)->getListenerObject(imp->executionContext())) : v8::Handle<v8::
Value>(v8::Null(info.GetIsolate()))); |
| 312 } | 312 } |
| 313 | 313 |
| 314 static void implementsEventHandlerAttributeAttributeGetterCallback(v8::Local<v8:
:String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 314 static void implementsEventHandlerAttributeAttributeGetterCallback(v8::Local<v8:
:String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 315 { | 315 { |
| 316 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 316 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 317 TestInterfacePythonImplementationV8Internal::implementsEventHandlerAttribute
AttributeGetter(info); | 317 TestInterfacePythonImplementationV8Internal::implementsEventHandlerAttribute
AttributeGetter(info); |
| 318 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 318 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 319 } | 319 } |
| 320 | 320 |
| 321 static void implementsEventHandlerAttributeAttributeSetter(v8::Local<v8::Value>
jsValue, const v8::PropertyCallbackInfo<void>& info) | 321 static void implementsEventHandlerAttributeAttributeSetter(v8::Local<v8::Value>
jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 322 { | 322 { |
| 323 TestInterfacePythonImplementation* imp = V8TestInterfacePython::toNative(inf
o.Holder()); | 323 TestInterfacePythonImplementation* imp = V8TestInterfacePython::toNative(inf
o.Holder()); |
| 324 moveEventListenerToNewWrapper(info.Holder(), TestImplements::implementsEvent
HandlerAttribute(imp, isolatedWorldForIsolate(info.GetIsolate())), jsValue, V8Te
stInterfacePython::eventListenerCacheIndex, info.GetIsolate()); | 324 moveEventListenerToNewWrapper(info.Holder(), TestImplements::implementsEvent
HandlerAttribute(imp), jsValue, V8TestInterfacePython::eventListenerCacheIndex,
info.GetIsolate()); |
| 325 TestImplements::setImplementsEventHandlerAttribute(imp, V8EventListenerList:
:getEventListener(jsValue, true, ListenerFindOrCreate), isolatedWorldForIsolate(
info.GetIsolate())); | 325 TestImplements::setImplementsEventHandlerAttribute(imp, V8EventListenerList:
:getEventListener(jsValue, true, ListenerFindOrCreate)); |
| 326 } | 326 } |
| 327 | 327 |
| 328 static void implementsEventHandlerAttributeAttributeSetterCallback(v8::Local<v8:
:String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& in
fo) | 328 static void implementsEventHandlerAttributeAttributeSetterCallback(v8::Local<v8:
:String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& in
fo) |
| 329 { | 329 { |
| 330 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 330 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 331 TestInterfacePythonImplementationV8Internal::implementsEventHandlerAttribute
AttributeSetter(jsValue, info); | 331 TestInterfacePythonImplementationV8Internal::implementsEventHandlerAttribute
AttributeSetter(jsValue, info); |
| 332 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 332 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 333 } | 333 } |
| 334 | 334 |
| 335 static void implementsRuntimeEnabledNodeAttributeAttributeGetter(const v8::Prope
rtyCallbackInfo<v8::Value>& info) | 335 static void implementsRuntimeEnabledNodeAttributeAttributeGetter(const v8::Prope
rtyCallbackInfo<v8::Value>& info) |
| (...skipping 770 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1106 } | 1106 } |
| 1107 | 1107 |
| 1108 template<> | 1108 template<> |
| 1109 v8::Handle<v8::Value> toV8NoInline(TestInterfacePythonImplementation* impl, v8::
Handle<v8::Object> creationContext, v8::Isolate* isolate) | 1109 v8::Handle<v8::Value> toV8NoInline(TestInterfacePythonImplementation* impl, v8::
Handle<v8::Object> creationContext, v8::Isolate* isolate) |
| 1110 { | 1110 { |
| 1111 return toV8(impl, creationContext, isolate); | 1111 return toV8(impl, creationContext, isolate); |
| 1112 } | 1112 } |
| 1113 | 1113 |
| 1114 } // namespace WebCore | 1114 } // namespace WebCore |
| 1115 #endif // ENABLE(CONDITION) | 1115 #endif // ENABLE(CONDITION) |
| OLD | NEW |