| 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 342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5027 throwUninformativeAndGenericTypeError(info.GetIsolate()); | 5028 throwUninformativeAndGenericTypeError(info.GetIsolate()); |
| 5028 } | 5029 } |
| 5029 | 5030 |
| 5030 static void overloadedStaticMethodMethodCallback(const v8::FunctionCallbackInfo<
v8::Value>& info) | 5031 static void overloadedStaticMethodMethodCallback(const v8::FunctionCallbackInfo<
v8::Value>& info) |
| 5031 { | 5032 { |
| 5032 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5033 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5033 TestObjectPythonV8Internal::overloadedStaticMethodMethod(info); | 5034 TestObjectPythonV8Internal::overloadedStaticMethodMethod(info); |
| 5034 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 5035 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 5035 } | 5036 } |
| 5036 | 5037 |
| 5038 static void addEventListenerMethod(const v8::FunctionCallbackInfo<v8::Value>& in
fo) |
| 5039 { |
| 5040 EventTarget* impl = V8TestObjectPython::toNative(info.Holder()); |
| 5041 if (DOMWindow* window = impl->toDOMWindow()) { |
| 5042 ExceptionState es(info.GetIsolate()); |
| 5043 if (!BindingSecurity::shouldAllowAccessToFrame(window->frame(), es)) { |
| 5044 es.throwIfNeeded(); |
| 5045 return; |
| 5046 } |
| 5047 if (!window->document()) |
| 5048 return; |
| 5049 } |
| 5050 RefPtr<EventListener> listener = V8EventListenerList::getEventListener(info[
1], false, ListenerFindOrCreate); |
| 5051 if (listener) { |
| 5052 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<WithNullCheck>, st
ringResource, info[0]); |
| 5053 impl->addEventListener(stringResource, listener, info[2]->BooleanValue()
); |
| 5054 if (!impl->toNode()) |
| 5055 createHiddenDependency(info.Holder(), info[1], V8TestObjectPython::e
ventListenerCacheIndex, info.GetIsolate()); |
| 5056 } |
| 5057 } |
| 5058 |
| 5059 static void addEventListenerMethodCallback(const v8::FunctionCallbackInfo<v8::Va
lue>& info) |
| 5060 { |
| 5061 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5062 TestObjectPythonV8Internal::addEventListenerMethod(info); |
| 5063 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 5064 } |
| 5065 |
| 5066 static void removeEventListenerMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) |
| 5067 { |
| 5068 EventTarget* impl = V8TestObjectPython::toNative(info.Holder()); |
| 5069 if (DOMWindow* window = impl->toDOMWindow()) { |
| 5070 ExceptionState es(info.GetIsolate()); |
| 5071 if (!BindingSecurity::shouldAllowAccessToFrame(window->frame(), es)) { |
| 5072 es.throwIfNeeded(); |
| 5073 return; |
| 5074 } |
| 5075 if (!window->document()) |
| 5076 return; |
| 5077 } |
| 5078 RefPtr<EventListener> listener = V8EventListenerList::getEventListener(info[
1], false, ListenerFindOnly); |
| 5079 if (listener) { |
| 5080 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<WithNullCheck>, st
ringResource, info[0]); |
| 5081 impl->removeEventListener(stringResource, listener.get(), info[2]->Boole
anValue()); |
| 5082 if (!impl->toNode()) |
| 5083 removeHiddenDependency(info.Holder(), info[1], V8TestObjectPython::e
ventListenerCacheIndex, info.GetIsolate()); |
| 5084 } |
| 5085 } |
| 5086 |
| 5087 static void removeEventListenerMethodCallback(const v8::FunctionCallbackInfo<v8:
:Value>& info) |
| 5088 { |
| 5089 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5090 TestObjectPythonV8Internal::removeEventListenerMethod(info); |
| 5091 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 5092 } |
| 5093 |
| 5037 static void voidMethodClampUnsignedShortArgMethod(const v8::FunctionCallbackInfo
<v8::Value>& info) | 5094 static void voidMethodClampUnsignedShortArgMethod(const v8::FunctionCallbackInfo
<v8::Value>& info) |
| 5038 { | 5095 { |
| 5039 if (UNLIKELY(info.Length() < 1)) { | 5096 if (UNLIKELY(info.Length() < 1)) { |
| 5040 throwTypeError(ExceptionMessages::failedToExecute("voidMethodClampUnsign
edShortArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.L
ength())), info.GetIsolate()); | 5097 throwTypeError(ExceptionMessages::failedToExecute("voidMethodClampUnsign
edShortArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.L
ength())), info.GetIsolate()); |
| 5041 return; | 5098 return; |
| 5042 } | 5099 } |
| 5043 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5100 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 5044 unsigned clampUnsignedShortArg = 0; | 5101 unsigned clampUnsignedShortArg = 0; |
| 5045 V8TRYCATCH_VOID(double, clampUnsignedShortArgNativeValue, info[0]->NumberVal
ue()); | 5102 V8TRYCATCH_VOID(double, clampUnsignedShortArgNativeValue, info[0]->NumberVal
ue()); |
| 5046 if (!std::isnan(clampUnsignedShortArgNativeValue)) | 5103 if (!std::isnan(clampUnsignedShortArgNativeValue)) |
| (...skipping 986 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6033 {"voidMethodNodeFilterArg", TestObjectPythonV8Internal::voidMethodNodeFilter
ArgMethodCallback, 0, 1}, | 6090 {"voidMethodNodeFilterArg", TestObjectPythonV8Internal::voidMethodNodeFilter
ArgMethodCallback, 0, 1}, |
| 6034 {"voidMethodPromiseArg", TestObjectPythonV8Internal::voidMethodPromiseArgMet
hodCallback, 0, 1}, | 6091 {"voidMethodPromiseArg", TestObjectPythonV8Internal::voidMethodPromiseArgMet
hodCallback, 0, 1}, |
| 6035 {"voidMethodSerializedScriptValueArg", TestObjectPythonV8Internal::voidMetho
dSerializedScriptValueArgMethodCallback, 0, 1}, | 6092 {"voidMethodSerializedScriptValueArg", TestObjectPythonV8Internal::voidMetho
dSerializedScriptValueArgMethodCallback, 0, 1}, |
| 6036 {"voidMethodStringArgLongArg", TestObjectPythonV8Internal::voidMethodStringA
rgLongArgMethodCallback, 0, 2}, | 6093 {"voidMethodStringArgLongArg", TestObjectPythonV8Internal::voidMethodStringA
rgLongArgMethodCallback, 0, 2}, |
| 6037 {"voidMethodOptionalStringArg", TestObjectPythonV8Internal::voidMethodOption
alStringArgMethodCallback, 0, 0}, | 6094 {"voidMethodOptionalStringArg", TestObjectPythonV8Internal::voidMethodOption
alStringArgMethodCallback, 0, 0}, |
| 6038 {"voidMethodOptionalTestInterfaceEmptyArg", TestObjectPythonV8Internal::void
MethodOptionalTestInterfaceEmptyArgMethodCallback, 0, 0}, | 6095 {"voidMethodOptionalTestInterfaceEmptyArg", TestObjectPythonV8Internal::void
MethodOptionalTestInterfaceEmptyArgMethodCallback, 0, 0}, |
| 6039 {"voidMethodOptionalLongArg", TestObjectPythonV8Internal::voidMethodOptional
LongArgMethodCallback, 0, 0}, | 6096 {"voidMethodOptionalLongArg", TestObjectPythonV8Internal::voidMethodOptional
LongArgMethodCallback, 0, 0}, |
| 6040 {"stringMethodOptionalLongArg", TestObjectPythonV8Internal::stringMethodOpti
onalLongArgMethodCallback, 0, 0}, | 6097 {"stringMethodOptionalLongArg", TestObjectPythonV8Internal::stringMethodOpti
onalLongArgMethodCallback, 0, 0}, |
| 6041 {"testInterfaceEmptyMethodOptionalLongArg", TestObjectPythonV8Internal::test
InterfaceEmptyMethodOptionalLongArgMethodCallback, 0, 0}, | 6098 {"testInterfaceEmptyMethodOptionalLongArg", TestObjectPythonV8Internal::test
InterfaceEmptyMethodOptionalLongArgMethodCallback, 0, 0}, |
| 6042 {"longMethodOptionalLongArg", TestObjectPythonV8Internal::longMethodOptional
LongArgMethodCallback, 0, 0}, | 6099 {"longMethodOptionalLongArg", TestObjectPythonV8Internal::longMethodOptional
LongArgMethodCallback, 0, 0}, |
| 6043 {"voidMethodOptionalDictionaryArg", TestObjectPythonV8Internal::voidMethodOp
tionalDictionaryArgMethodCallback, 0, 0}, | |
| 6044 {"voidMethodLongArgOptionalLongArg", TestObjectPythonV8Internal::voidMethodL
ongArgOptionalLongArgMethodCallback, 0, 1}, | 6100 {"voidMethodLongArgOptionalLongArg", TestObjectPythonV8Internal::voidMethodL
ongArgOptionalLongArgMethodCallback, 0, 1}, |
| 6045 {"voidMethodLongArgOptionalLongArgOptionalLongArg", TestObjectPythonV8Intern
al::voidMethodLongArgOptionalLongArgOptionalLongArgMethodCallback, 0, 1}, | 6101 {"voidMethodLongArgOptionalLongArgOptionalLongArg", TestObjectPythonV8Intern
al::voidMethodLongArgOptionalLongArgOptionalLongArgMethodCallback, 0, 1}, |
| 6046 {"voidMethodLongArgOptionalTestInterfaceEmptyArg", TestObjectPythonV8Interna
l::voidMethodLongArgOptionalTestInterfaceEmptyArgMethodCallback, 0, 1}, | 6102 {"voidMethodLongArgOptionalTestInterfaceEmptyArg", TestObjectPythonV8Interna
l::voidMethodLongArgOptionalTestInterfaceEmptyArgMethodCallback, 0, 1}, |
| 6047 {"voidMethodTestInterfaceEmptyArgOptionalLongArg", TestObjectPythonV8Interna
l::voidMethodTestInterfaceEmptyArgOptionalLongArgMethodCallback, 0, 1}, | 6103 {"voidMethodTestInterfaceEmptyArgOptionalLongArg", TestObjectPythonV8Interna
l::voidMethodTestInterfaceEmptyArgOptionalLongArgMethodCallback, 0, 1}, |
| 6104 {"voidMethodOptionalDictionaryArg", TestObjectPythonV8Internal::voidMethodOp
tionalDictionaryArgMethodCallback, 0, 0}, |
| 6048 {"voidMethodVariadicStringArg", TestObjectPythonV8Internal::voidMethodVariad
icStringArgMethodCallback, 0, 1}, | 6105 {"voidMethodVariadicStringArg", TestObjectPythonV8Internal::voidMethodVariad
icStringArgMethodCallback, 0, 1}, |
| 6049 {"voidMethodStringArgVariadicStringArg", TestObjectPythonV8Internal::voidMet
hodStringArgVariadicStringArgMethodCallback, 0, 2}, | 6106 {"voidMethodStringArgVariadicStringArg", TestObjectPythonV8Internal::voidMet
hodStringArgVariadicStringArgMethodCallback, 0, 2}, |
| 6050 {"overloadedMethodA", TestObjectPythonV8Internal::overloadedMethodAMethodCal
lback, 0, 1}, | 6107 {"overloadedMethodA", TestObjectPythonV8Internal::overloadedMethodAMethodCal
lback, 0, 1}, |
| 6051 {"overloadedMethodB", TestObjectPythonV8Internal::overloadedMethodBMethodCal
lback, 0, 1}, | 6108 {"overloadedMethodB", TestObjectPythonV8Internal::overloadedMethodBMethodCal
lback, 0, 1}, |
| 6052 {"overloadedMethodC", TestObjectPythonV8Internal::overloadedMethodCMethodCal
lback, 0, 1}, | 6109 {"overloadedMethodC", TestObjectPythonV8Internal::overloadedMethodCMethodCal
lback, 0, 1}, |
| 6053 {"overloadedMethodD", TestObjectPythonV8Internal::overloadedMethodDMethodCal
lback, 0, 1}, | 6110 {"overloadedMethodD", TestObjectPythonV8Internal::overloadedMethodDMethodCal
lback, 0, 1}, |
| 6054 {"overloadedMethodE", TestObjectPythonV8Internal::overloadedMethodEMethodCal
lback, 0, 1}, | 6111 {"overloadedMethodE", TestObjectPythonV8Internal::overloadedMethodEMethodCal
lback, 0, 1}, |
| 6112 {"addEventListener", TestObjectPythonV8Internal::addEventListenerMethodCallb
ack, 0, 2}, |
| 6113 {"removeEventListener", TestObjectPythonV8Internal::removeEventListenerMetho
dCallback, 0, 2}, |
| 6055 {"voidMethodClampUnsignedShortArg", TestObjectPythonV8Internal::voidMethodCl
ampUnsignedShortArgMethodCallback, 0, 1}, | 6114 {"voidMethodClampUnsignedShortArg", TestObjectPythonV8Internal::voidMethodCl
ampUnsignedShortArgMethodCallback, 0, 1}, |
| 6056 {"voidMethodClampUnsignedLongArg", TestObjectPythonV8Internal::voidMethodCla
mpUnsignedLongArgMethodCallback, 0, 1}, | 6115 {"voidMethodClampUnsignedLongArg", TestObjectPythonV8Internal::voidMethodCla
mpUnsignedLongArgMethodCallback, 0, 1}, |
| 6057 {"voidMethodDefaultUndefinedLongArg", TestObjectPythonV8Internal::voidMethod
DefaultUndefinedLongArgMethodCallback, 0, 0}, | 6116 {"voidMethodDefaultUndefinedLongArg", TestObjectPythonV8Internal::voidMethod
DefaultUndefinedLongArgMethodCallback, 0, 0}, |
| 6058 {"voidMethodDefaultUndefinedStringArg", TestObjectPythonV8Internal::voidMeth
odDefaultUndefinedStringArgMethodCallback, 0, 0}, | 6117 {"voidMethodDefaultUndefinedStringArg", TestObjectPythonV8Internal::voidMeth
odDefaultUndefinedStringArgMethodCallback, 0, 0}, |
| 6059 {"voidMethodDefaultNullStringStringArg", TestObjectPythonV8Internal::voidMet
hodDefaultNullStringStringArgMethodCallback, 0, 0}, | 6118 {"voidMethodDefaultNullStringStringArg", TestObjectPythonV8Internal::voidMet
hodDefaultNullStringStringArgMethodCallback, 0, 0}, |
| 6060 {"voidMethodEnforceRangeLongArg", TestObjectPythonV8Internal::voidMethodEnfo
rceRangeLongArgMethodCallback, 0, 1}, | 6119 {"voidMethodEnforceRangeLongArg", TestObjectPythonV8Internal::voidMethodEnfo
rceRangeLongArgMethodCallback, 0, 1}, |
| 6061 {"voidMethodTreatNullAsNullStringStringArg", TestObjectPythonV8Internal::voi
dMethodTreatNullAsNullStringStringArgMethodCallback, 0, 1}, | 6120 {"voidMethodTreatNullAsNullStringStringArg", TestObjectPythonV8Internal::voi
dMethodTreatNullAsNullStringStringArgMethodCallback, 0, 1}, |
| 6062 {"voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArg", TestO
bjectPythonV8Internal::voidMethodTreatNullAsNullStringTreatUndefinedAsNullString
StringArgMethodCallback, 0, 1}, | 6121 {"voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArg", TestO
bjectPythonV8Internal::voidMethodTreatNullAsNullStringTreatUndefinedAsNullString
StringArgMethodCallback, 0, 1}, |
| 6063 {"activityLoggingAccessForAllWorldsMethod", TestObjectPythonV8Internal::acti
vityLoggingAccessForAllWorldsMethodMethodCallback, 0, 0}, | 6122 {"activityLoggingAccessForAllWorldsMethod", TestObjectPythonV8Internal::acti
vityLoggingAccessForAllWorldsMethodMethodCallback, 0, 0}, |
| 6064 {"callWithScriptStateVoidMethod", TestObjectPythonV8Internal::callWithScript
StateVoidMethodMethodCallback, 0, 0}, | 6123 {"callWithScriptStateVoidMethod", TestObjectPythonV8Internal::callWithScript
StateVoidMethodMethodCallback, 0, 0}, |
| (...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6326 V8DOMWrapper::associateObjectWithWrapper<V8TestObjectPython>(impl, &wrapperT
ypeInfo, wrapper, isolate, WrapperConfiguration::Independent); | 6385 V8DOMWrapper::associateObjectWithWrapper<V8TestObjectPython>(impl, &wrapperT
ypeInfo, wrapper, isolate, WrapperConfiguration::Independent); |
| 6327 return wrapper; | 6386 return wrapper; |
| 6328 } | 6387 } |
| 6329 | 6388 |
| 6330 void V8TestObjectPython::derefObject(void* object) | 6389 void V8TestObjectPython::derefObject(void* object) |
| 6331 { | 6390 { |
| 6332 fromInternalPointer(object)->deref(); | 6391 fromInternalPointer(object)->deref(); |
| 6333 } | 6392 } |
| 6334 | 6393 |
| 6335 } // namespace WebCore | 6394 } // namespace WebCore |
| OLD | NEW |