| 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 #include "bindings/v8/V8HiddenPropertyName.h" | 73 #include "bindings/v8/V8HiddenPropertyName.h" |
| 74 #include "bindings/v8/custom/V8ArrayBufferCustom.h" | 74 #include "bindings/v8/custom/V8ArrayBufferCustom.h" |
| 75 #include "bindings/v8/custom/V8ArrayBufferViewCustom.h" | 75 #include "bindings/v8/custom/V8ArrayBufferViewCustom.h" |
| 76 #include "bindings/v8/custom/V8Float32ArrayCustom.h" | 76 #include "bindings/v8/custom/V8Float32ArrayCustom.h" |
| 77 #include "bindings/v8/custom/V8Int32ArrayCustom.h" | 77 #include "bindings/v8/custom/V8Int32ArrayCustom.h" |
| 78 #include "bindings/v8/custom/V8Uint8ArrayCustom.h" | 78 #include "bindings/v8/custom/V8Uint8ArrayCustom.h" |
| 79 #include "core/css/MediaQueryListListener.h" | 79 #include "core/css/MediaQueryListListener.h" |
| 80 #include "core/dom/ContextFeatures.h" | 80 #include "core/dom/ContextFeatures.h" |
| 81 #include "core/dom/Document.h" | 81 #include "core/dom/Document.h" |
| 82 #include "core/dom/custom/CustomElementCallbackDispatcher.h" | 82 #include "core/dom/custom/CustomElementCallbackDispatcher.h" |
| 83 #include "core/frame/DOMWindow.h" |
| 83 #include "core/frame/UseCounter.h" | 84 #include "core/frame/UseCounter.h" |
| 84 #include "core/inspector/ScriptArguments.h" | 85 #include "core/inspector/ScriptArguments.h" |
| 85 #include "platform/TraceEvent.h" | 86 #include "platform/TraceEvent.h" |
| 86 #include "wtf/GetPtr.h" | 87 #include "wtf/GetPtr.h" |
| 87 #include "wtf/RefPtr.h" | 88 #include "wtf/RefPtr.h" |
| 88 #include "wtf/UnusedParam.h" | 89 #include "wtf/UnusedParam.h" |
| 89 | 90 |
| 90 namespace WebCore { | 91 namespace WebCore { |
| 91 | 92 |
| 92 static void initializeScriptWrappableForInterface(TestObjectPython* object) | 93 static void initializeScriptWrappableForInterface(TestObjectPython* object) |
| (...skipping 4457 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4550 v8SetReturnValueInt(info, imp->longMethodOptionalLongArg(optionalLongArg)); | 4551 v8SetReturnValueInt(info, imp->longMethodOptionalLongArg(optionalLongArg)); |
| 4551 } | 4552 } |
| 4552 | 4553 |
| 4553 static void longMethodOptionalLongArgMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) | 4554 static void longMethodOptionalLongArgMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) |
| 4554 { | 4555 { |
| 4555 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4556 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4556 TestObjectPythonV8Internal::longMethodOptionalLongArgMethod(info); | 4557 TestObjectPythonV8Internal::longMethodOptionalLongArgMethod(info); |
| 4557 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4558 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4558 } | 4559 } |
| 4559 | 4560 |
| 4560 static void voidMethodOptionalDictionaryArgMethod(const v8::FunctionCallbackInfo
<v8::Value>& info) | |
| 4561 { | |
| 4562 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | |
| 4563 V8TRYCATCH_VOID(Dictionary, optionalDictionaryArg, Dictionary(info[0], info.
GetIsolate())); | |
| 4564 if (!optionalDictionaryArg.isUndefinedOrNull() && !optionalDictionaryArg.isO
bject()) { | |
| 4565 throwTypeError(ExceptionMessages::failedToExecute("voidMethodOptionalDic
tionaryArg", "TestObjectPython", "parameter 1 ('optionalDictionaryArg') is not a
n object."), info.GetIsolate()); | |
| 4566 return; | |
| 4567 } | |
| 4568 imp->voidMethodOptionalDictionaryArg(optionalDictionaryArg); | |
| 4569 } | |
| 4570 | |
| 4571 static void voidMethodOptionalDictionaryArgMethodCallback(const v8::FunctionCall
backInfo<v8::Value>& info) | |
| 4572 { | |
| 4573 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | |
| 4574 TestObjectPythonV8Internal::voidMethodOptionalDictionaryArgMethod(info); | |
| 4575 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | |
| 4576 } | |
| 4577 | |
| 4578 static void voidMethodLongArgOptionalLongArgMethod(const v8::FunctionCallbackInf
o<v8::Value>& info) | 4561 static void voidMethodLongArgOptionalLongArgMethod(const v8::FunctionCallbackInf
o<v8::Value>& info) |
| 4579 { | 4562 { |
| 4580 if (UNLIKELY(info.Length() < 1)) { | 4563 if (UNLIKELY(info.Length() < 1)) { |
| 4581 throwTypeError(ExceptionMessages::failedToExecute("voidMethodLongArgOpti
onalLongArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.
Length())), info.GetIsolate()); | 4564 throwTypeError(ExceptionMessages::failedToExecute("voidMethodLongArgOpti
onalLongArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.
Length())), info.GetIsolate()); |
| 4582 return; | 4565 return; |
| 4583 } | 4566 } |
| 4584 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4567 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4585 V8TRYCATCH_VOID(int, longArg, toInt32(info[0])); | 4568 V8TRYCATCH_VOID(int, longArg, toInt32(info[0])); |
| 4586 if (UNLIKELY(info.Length() <= 1)) { | 4569 if (UNLIKELY(info.Length() <= 1)) { |
| 4587 imp->voidMethodLongArgOptionalLongArg(longArg); | 4570 imp->voidMethodLongArgOptionalLongArg(longArg); |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4665 imp->voidMethodTestInterfaceEmptyArgOptionalLongArg(optionalTestInterfaceEmp
ty, longArg); | 4648 imp->voidMethodTestInterfaceEmptyArgOptionalLongArg(optionalTestInterfaceEmp
ty, longArg); |
| 4666 } | 4649 } |
| 4667 | 4650 |
| 4668 static void voidMethodTestInterfaceEmptyArgOptionalLongArgMethodCallback(const v
8::FunctionCallbackInfo<v8::Value>& info) | 4651 static void voidMethodTestInterfaceEmptyArgOptionalLongArgMethodCallback(const v
8::FunctionCallbackInfo<v8::Value>& info) |
| 4669 { | 4652 { |
| 4670 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4653 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4671 TestObjectPythonV8Internal::voidMethodTestInterfaceEmptyArgOptionalLongArgMe
thod(info); | 4654 TestObjectPythonV8Internal::voidMethodTestInterfaceEmptyArgOptionalLongArgMe
thod(info); |
| 4672 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4655 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4673 } | 4656 } |
| 4674 | 4657 |
| 4658 static void voidMethodOptionalDictionaryArgMethod(const v8::FunctionCallbackInfo
<v8::Value>& info) |
| 4659 { |
| 4660 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4661 V8TRYCATCH_VOID(Dictionary, optionalDictionaryArg, Dictionary(info[0], info.
GetIsolate())); |
| 4662 if (!optionalDictionaryArg.isUndefinedOrNull() && !optionalDictionaryArg.isO
bject()) { |
| 4663 throwTypeError(ExceptionMessages::failedToExecute("voidMethodOptionalDic
tionaryArg", "TestObjectPython", "parameter 1 ('optionalDictionaryArg') is not a
n object."), info.GetIsolate()); |
| 4664 return; |
| 4665 } |
| 4666 imp->voidMethodOptionalDictionaryArg(optionalDictionaryArg); |
| 4667 } |
| 4668 |
| 4669 static void voidMethodOptionalDictionaryArgMethodCallback(const v8::FunctionCall
backInfo<v8::Value>& info) |
| 4670 { |
| 4671 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4672 TestObjectPythonV8Internal::voidMethodOptionalDictionaryArgMethod(info); |
| 4673 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4674 } |
| 4675 |
| 4675 static void voidMethodVariadicStringArgMethod(const v8::FunctionCallbackInfo<v8:
:Value>& info) | 4676 static void voidMethodVariadicStringArgMethod(const v8::FunctionCallbackInfo<v8:
:Value>& info) |
| 4676 { | 4677 { |
| 4677 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4678 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4678 V8TRYCATCH_VOID(Vector<String>, variadicStringArgs, toNativeArguments<String
>(info, 0)); | 4679 V8TRYCATCH_VOID(Vector<String>, variadicStringArgs, toNativeArguments<String
>(info, 0)); |
| 4679 imp->voidMethodVariadicStringArg(variadicStringArgs); | 4680 imp->voidMethodVariadicStringArg(variadicStringArgs); |
| 4680 } | 4681 } |
| 4681 | 4682 |
| 4682 static void voidMethodVariadicStringArgMethodCallback(const v8::FunctionCallback
Info<v8::Value>& info) | 4683 static void voidMethodVariadicStringArgMethodCallback(const v8::FunctionCallback
Info<v8::Value>& info) |
| 4683 { | 4684 { |
| 4684 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4685 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| (...skipping 499 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5184 throwUninformativeAndGenericTypeError(info.GetIsolate()); | 5185 throwUninformativeAndGenericTypeError(info.GetIsolate()); |
| 5185 } | 5186 } |
| 5186 | 5187 |
| 5187 static void overloadedStaticMethodMethodCallback(const v8::FunctionCallbackInfo<
v8::Value>& info) | 5188 static void overloadedStaticMethodMethodCallback(const v8::FunctionCallbackInfo<
v8::Value>& info) |
| 5188 { | 5189 { |
| 5189 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5190 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5190 TestObjectPythonV8Internal::overloadedStaticMethodMethod(info); | 5191 TestObjectPythonV8Internal::overloadedStaticMethodMethod(info); |
| 5191 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 5192 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 5192 } | 5193 } |
| 5193 | 5194 |
| 5195 static void addEventListenerMethod(const v8::FunctionCallbackInfo<v8::Value>& in
fo) |
| 5196 { |
| 5197 EventTarget* impl = V8TestObjectPython::toNative(info.Holder()); |
| 5198 if (DOMWindow* window = impl->toDOMWindow()) { |
| 5199 ExceptionState es(info.GetIsolate()); |
| 5200 if (!BindingSecurity::shouldAllowAccessToFrame(window->frame(), es)) { |
| 5201 es.throwIfNeeded(); |
| 5202 return; |
| 5203 } |
| 5204 if (!window->document()) |
| 5205 return; |
| 5206 } |
| 5207 RefPtr<EventListener> listener = V8EventListenerList::getEventListener(info[
1], false, ListenerFindOrCreate); |
| 5208 if (listener) { |
| 5209 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<WithNullCheck>, ev
entName, info[0]); |
| 5210 impl->addEventListener(eventName, listener, info[2]->BooleanValue()); |
| 5211 if (!impl->toNode()) |
| 5212 createHiddenDependency(info.Holder(), info[1], V8TestObjectPython::e
ventListenerCacheIndex, info.GetIsolate()); |
| 5213 } |
| 5214 } |
| 5215 |
| 5216 static void addEventListenerMethodCallback(const v8::FunctionCallbackInfo<v8::Va
lue>& info) |
| 5217 { |
| 5218 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5219 TestObjectPythonV8Internal::addEventListenerMethod(info); |
| 5220 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 5221 } |
| 5222 |
| 5223 static void removeEventListenerMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) |
| 5224 { |
| 5225 EventTarget* impl = V8TestObjectPython::toNative(info.Holder()); |
| 5226 if (DOMWindow* window = impl->toDOMWindow()) { |
| 5227 ExceptionState es(info.GetIsolate()); |
| 5228 if (!BindingSecurity::shouldAllowAccessToFrame(window->frame(), es)) { |
| 5229 es.throwIfNeeded(); |
| 5230 return; |
| 5231 } |
| 5232 if (!window->document()) |
| 5233 return; |
| 5234 } |
| 5235 RefPtr<EventListener> listener = V8EventListenerList::getEventListener(info[
1], false, ListenerFindOnly); |
| 5236 if (listener) { |
| 5237 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<WithNullCheck>, ev
entName, info[0]); |
| 5238 impl->removeEventListener(eventName, listener.get(), info[2]->BooleanVal
ue()); |
| 5239 if (!impl->toNode()) |
| 5240 removeHiddenDependency(info.Holder(), info[1], V8TestObjectPython::e
ventListenerCacheIndex, info.GetIsolate()); |
| 5241 } |
| 5242 } |
| 5243 |
| 5244 static void removeEventListenerMethodCallback(const v8::FunctionCallbackInfo<v8:
:Value>& info) |
| 5245 { |
| 5246 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5247 TestObjectPythonV8Internal::removeEventListenerMethod(info); |
| 5248 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 5249 } |
| 5250 |
| 5194 static void voidMethodClampUnsignedShortArgMethod(const v8::FunctionCallbackInfo
<v8::Value>& info) | 5251 static void voidMethodClampUnsignedShortArgMethod(const v8::FunctionCallbackInfo
<v8::Value>& info) |
| 5195 { | 5252 { |
| 5196 if (UNLIKELY(info.Length() < 1)) { | 5253 if (UNLIKELY(info.Length() < 1)) { |
| 5197 throwTypeError(ExceptionMessages::failedToExecute("voidMethodClampUnsign
edShortArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.L
ength())), info.GetIsolate()); | 5254 throwTypeError(ExceptionMessages::failedToExecute("voidMethodClampUnsign
edShortArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.L
ength())), info.GetIsolate()); |
| 5198 return; | 5255 return; |
| 5199 } | 5256 } |
| 5200 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5257 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 5201 unsigned clampUnsignedShortArg = 0; | 5258 unsigned clampUnsignedShortArg = 0; |
| 5202 V8TRYCATCH_VOID(double, clampUnsignedShortArgNativeValue, info[0]->NumberVal
ue()); | 5259 V8TRYCATCH_VOID(double, clampUnsignedShortArgNativeValue, info[0]->NumberVal
ue()); |
| 5203 if (!std::isnan(clampUnsignedShortArgNativeValue)) | 5260 if (!std::isnan(clampUnsignedShortArgNativeValue)) |
| (...skipping 986 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6190 {"voidMethodNodeFilterArg", TestObjectPythonV8Internal::voidMethodNodeFilter
ArgMethodCallback, 0, 1}, | 6247 {"voidMethodNodeFilterArg", TestObjectPythonV8Internal::voidMethodNodeFilter
ArgMethodCallback, 0, 1}, |
| 6191 {"voidMethodPromiseArg", TestObjectPythonV8Internal::voidMethodPromiseArgMet
hodCallback, 0, 1}, | 6248 {"voidMethodPromiseArg", TestObjectPythonV8Internal::voidMethodPromiseArgMet
hodCallback, 0, 1}, |
| 6192 {"voidMethodSerializedScriptValueArg", TestObjectPythonV8Internal::voidMetho
dSerializedScriptValueArgMethodCallback, 0, 1}, | 6249 {"voidMethodSerializedScriptValueArg", TestObjectPythonV8Internal::voidMetho
dSerializedScriptValueArgMethodCallback, 0, 1}, |
| 6193 {"voidMethodStringArgLongArg", TestObjectPythonV8Internal::voidMethodStringA
rgLongArgMethodCallback, 0, 2}, | 6250 {"voidMethodStringArgLongArg", TestObjectPythonV8Internal::voidMethodStringA
rgLongArgMethodCallback, 0, 2}, |
| 6194 {"voidMethodOptionalStringArg", TestObjectPythonV8Internal::voidMethodOption
alStringArgMethodCallback, 0, 0}, | 6251 {"voidMethodOptionalStringArg", TestObjectPythonV8Internal::voidMethodOption
alStringArgMethodCallback, 0, 0}, |
| 6195 {"voidMethodOptionalTestInterfaceEmptyArg", TestObjectPythonV8Internal::void
MethodOptionalTestInterfaceEmptyArgMethodCallback, 0, 0}, | 6252 {"voidMethodOptionalTestInterfaceEmptyArg", TestObjectPythonV8Internal::void
MethodOptionalTestInterfaceEmptyArgMethodCallback, 0, 0}, |
| 6196 {"voidMethodOptionalLongArg", TestObjectPythonV8Internal::voidMethodOptional
LongArgMethodCallback, 0, 0}, | 6253 {"voidMethodOptionalLongArg", TestObjectPythonV8Internal::voidMethodOptional
LongArgMethodCallback, 0, 0}, |
| 6197 {"stringMethodOptionalLongArg", TestObjectPythonV8Internal::stringMethodOpti
onalLongArgMethodCallback, 0, 0}, | 6254 {"stringMethodOptionalLongArg", TestObjectPythonV8Internal::stringMethodOpti
onalLongArgMethodCallback, 0, 0}, |
| 6198 {"testInterfaceEmptyMethodOptionalLongArg", TestObjectPythonV8Internal::test
InterfaceEmptyMethodOptionalLongArgMethodCallback, 0, 0}, | 6255 {"testInterfaceEmptyMethodOptionalLongArg", TestObjectPythonV8Internal::test
InterfaceEmptyMethodOptionalLongArgMethodCallback, 0, 0}, |
| 6199 {"longMethodOptionalLongArg", TestObjectPythonV8Internal::longMethodOptional
LongArgMethodCallback, 0, 0}, | 6256 {"longMethodOptionalLongArg", TestObjectPythonV8Internal::longMethodOptional
LongArgMethodCallback, 0, 0}, |
| 6200 {"voidMethodOptionalDictionaryArg", TestObjectPythonV8Internal::voidMethodOp
tionalDictionaryArgMethodCallback, 0, 0}, | |
| 6201 {"voidMethodLongArgOptionalLongArg", TestObjectPythonV8Internal::voidMethodL
ongArgOptionalLongArgMethodCallback, 0, 1}, | 6257 {"voidMethodLongArgOptionalLongArg", TestObjectPythonV8Internal::voidMethodL
ongArgOptionalLongArgMethodCallback, 0, 1}, |
| 6202 {"voidMethodLongArgOptionalLongArgOptionalLongArg", TestObjectPythonV8Intern
al::voidMethodLongArgOptionalLongArgOptionalLongArgMethodCallback, 0, 1}, | 6258 {"voidMethodLongArgOptionalLongArgOptionalLongArg", TestObjectPythonV8Intern
al::voidMethodLongArgOptionalLongArgOptionalLongArgMethodCallback, 0, 1}, |
| 6203 {"voidMethodLongArgOptionalTestInterfaceEmptyArg", TestObjectPythonV8Interna
l::voidMethodLongArgOptionalTestInterfaceEmptyArgMethodCallback, 0, 1}, | 6259 {"voidMethodLongArgOptionalTestInterfaceEmptyArg", TestObjectPythonV8Interna
l::voidMethodLongArgOptionalTestInterfaceEmptyArgMethodCallback, 0, 1}, |
| 6204 {"voidMethodTestInterfaceEmptyArgOptionalLongArg", TestObjectPythonV8Interna
l::voidMethodTestInterfaceEmptyArgOptionalLongArgMethodCallback, 0, 1}, | 6260 {"voidMethodTestInterfaceEmptyArgOptionalLongArg", TestObjectPythonV8Interna
l::voidMethodTestInterfaceEmptyArgOptionalLongArgMethodCallback, 0, 1}, |
| 6261 {"voidMethodOptionalDictionaryArg", TestObjectPythonV8Internal::voidMethodOp
tionalDictionaryArgMethodCallback, 0, 0}, |
| 6205 {"voidMethodVariadicStringArg", TestObjectPythonV8Internal::voidMethodVariad
icStringArgMethodCallback, 0, 1}, | 6262 {"voidMethodVariadicStringArg", TestObjectPythonV8Internal::voidMethodVariad
icStringArgMethodCallback, 0, 1}, |
| 6206 {"voidMethodStringArgVariadicStringArg", TestObjectPythonV8Internal::voidMet
hodStringArgVariadicStringArgMethodCallback, 0, 2}, | 6263 {"voidMethodStringArgVariadicStringArg", TestObjectPythonV8Internal::voidMet
hodStringArgVariadicStringArgMethodCallback, 0, 2}, |
| 6207 {"overloadedMethodA", TestObjectPythonV8Internal::overloadedMethodAMethodCal
lback, 0, 1}, | 6264 {"overloadedMethodA", TestObjectPythonV8Internal::overloadedMethodAMethodCal
lback, 0, 1}, |
| 6208 {"overloadedMethodB", TestObjectPythonV8Internal::overloadedMethodBMethodCal
lback, 0, 1}, | 6265 {"overloadedMethodB", TestObjectPythonV8Internal::overloadedMethodBMethodCal
lback, 0, 1}, |
| 6209 {"overloadedMethodC", TestObjectPythonV8Internal::overloadedMethodCMethodCal
lback, 0, 1}, | 6266 {"overloadedMethodC", TestObjectPythonV8Internal::overloadedMethodCMethodCal
lback, 0, 1}, |
| 6210 {"overloadedMethodD", TestObjectPythonV8Internal::overloadedMethodDMethodCal
lback, 0, 1}, | 6267 {"overloadedMethodD", TestObjectPythonV8Internal::overloadedMethodDMethodCal
lback, 0, 1}, |
| 6211 {"overloadedMethodE", TestObjectPythonV8Internal::overloadedMethodEMethodCal
lback, 0, 1}, | 6268 {"overloadedMethodE", TestObjectPythonV8Internal::overloadedMethodEMethodCal
lback, 0, 1}, |
| 6212 {"overloadedMethodF", TestObjectPythonV8Internal::overloadedMethodFMethodCal
lback, 0, 1}, | 6269 {"overloadedMethodF", TestObjectPythonV8Internal::overloadedMethodFMethodCal
lback, 0, 1}, |
| 6213 {"overloadedMethodG", TestObjectPythonV8Internal::overloadedMethodGMethodCal
lback, 0, 0}, | 6270 {"overloadedMethodG", TestObjectPythonV8Internal::overloadedMethodGMethodCal
lback, 0, 0}, |
| 6214 {"overloadedPerWorldBindingsMethod", TestObjectPythonV8Internal::overloadedP
erWorldBindingsMethodMethodCallback, TestObjectPythonV8Internal::overloadedPerWo
rldBindingsMethodMethodCallbackForMainWorld, 0}, | 6271 {"overloadedPerWorldBindingsMethod", TestObjectPythonV8Internal::overloadedP
erWorldBindingsMethodMethodCallback, TestObjectPythonV8Internal::overloadedPerWo
rldBindingsMethodMethodCallbackForMainWorld, 0}, |
| 6272 {"addEventListener", TestObjectPythonV8Internal::addEventListenerMethodCallb
ack, 0, 2}, |
| 6273 {"removeEventListener", TestObjectPythonV8Internal::removeEventListenerMetho
dCallback, 0, 2}, |
| 6215 {"voidMethodClampUnsignedShortArg", TestObjectPythonV8Internal::voidMethodCl
ampUnsignedShortArgMethodCallback, 0, 1}, | 6274 {"voidMethodClampUnsignedShortArg", TestObjectPythonV8Internal::voidMethodCl
ampUnsignedShortArgMethodCallback, 0, 1}, |
| 6216 {"voidMethodClampUnsignedLongArg", TestObjectPythonV8Internal::voidMethodCla
mpUnsignedLongArgMethodCallback, 0, 1}, | 6275 {"voidMethodClampUnsignedLongArg", TestObjectPythonV8Internal::voidMethodCla
mpUnsignedLongArgMethodCallback, 0, 1}, |
| 6217 {"voidMethodDefaultUndefinedLongArg", TestObjectPythonV8Internal::voidMethod
DefaultUndefinedLongArgMethodCallback, 0, 0}, | 6276 {"voidMethodDefaultUndefinedLongArg", TestObjectPythonV8Internal::voidMethod
DefaultUndefinedLongArgMethodCallback, 0, 0}, |
| 6218 {"voidMethodDefaultUndefinedStringArg", TestObjectPythonV8Internal::voidMeth
odDefaultUndefinedStringArgMethodCallback, 0, 0}, | 6277 {"voidMethodDefaultUndefinedStringArg", TestObjectPythonV8Internal::voidMeth
odDefaultUndefinedStringArgMethodCallback, 0, 0}, |
| 6219 {"voidMethodDefaultNullStringStringArg", TestObjectPythonV8Internal::voidMet
hodDefaultNullStringStringArgMethodCallback, 0, 0}, | 6278 {"voidMethodDefaultNullStringStringArg", TestObjectPythonV8Internal::voidMet
hodDefaultNullStringStringArgMethodCallback, 0, 0}, |
| 6220 {"voidMethodEnforceRangeLongArg", TestObjectPythonV8Internal::voidMethodEnfo
rceRangeLongArgMethodCallback, 0, 1}, | 6279 {"voidMethodEnforceRangeLongArg", TestObjectPythonV8Internal::voidMethodEnfo
rceRangeLongArgMethodCallback, 0, 1}, |
| 6221 {"voidMethodTreatNullAsNullStringStringArg", TestObjectPythonV8Internal::voi
dMethodTreatNullAsNullStringStringArgMethodCallback, 0, 1}, | 6280 {"voidMethodTreatNullAsNullStringStringArg", TestObjectPythonV8Internal::voi
dMethodTreatNullAsNullStringStringArgMethodCallback, 0, 1}, |
| 6222 {"voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArg", TestO
bjectPythonV8Internal::voidMethodTreatNullAsNullStringTreatUndefinedAsNullString
StringArgMethodCallback, 0, 1}, | 6281 {"voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArg", TestO
bjectPythonV8Internal::voidMethodTreatNullAsNullStringTreatUndefinedAsNullString
StringArgMethodCallback, 0, 1}, |
| 6223 {"activityLoggingAccessForAllWorldsMethod", TestObjectPythonV8Internal::acti
vityLoggingAccessForAllWorldsMethodMethodCallback, 0, 0}, | 6282 {"activityLoggingAccessForAllWorldsMethod", TestObjectPythonV8Internal::acti
vityLoggingAccessForAllWorldsMethodMethodCallback, 0, 0}, |
| 6224 {"callWithScriptStateVoidMethod", TestObjectPythonV8Internal::callWithScript
StateVoidMethodMethodCallback, 0, 0}, | 6283 {"callWithScriptStateVoidMethod", TestObjectPythonV8Internal::callWithScript
StateVoidMethodMethodCallback, 0, 0}, |
| (...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6486 V8DOMWrapper::associateObjectWithWrapper<V8TestObjectPython>(impl, &wrapperT
ypeInfo, wrapper, isolate, WrapperConfiguration::Independent); | 6545 V8DOMWrapper::associateObjectWithWrapper<V8TestObjectPython>(impl, &wrapperT
ypeInfo, wrapper, isolate, WrapperConfiguration::Independent); |
| 6487 return wrapper; | 6546 return wrapper; |
| 6488 } | 6547 } |
| 6489 | 6548 |
| 6490 void V8TestObjectPython::derefObject(void* object) | 6549 void V8TestObjectPython::derefObject(void* object) |
| 6491 { | 6550 { |
| 6492 fromInternalPointer(object)->deref(); | 6551 fromInternalPointer(object)->deref(); |
| 6493 } | 6552 } |
| 6494 | 6553 |
| 6495 } // namespace WebCore | 6554 } // namespace WebCore |
| OLD | NEW |