OLD | NEW |
1 /* | 1 /* |
2 This file is part of the Blink open source project. | 2 This file is part of the Blink open source project. |
3 This file has been auto-generated by CodeGeneratorV8.pm. DO NOT MODIFY! | 3 This file has been auto-generated by CodeGeneratorV8.pm. DO NOT MODIFY! |
4 | 4 |
5 This library is free software; you can redistribute it and/or | 5 This library is free software; you can redistribute it and/or |
6 modify it under the terms of the GNU Library General Public | 6 modify it under the terms of the GNU Library General Public |
7 License as published by the Free Software Foundation; either | 7 License as published by the Free Software Foundation; either |
8 version 2 of the License, or (at your option) any later version. | 8 version 2 of the License, or (at your option) any later version. |
9 | 9 |
10 This library is distributed in the hope that it will be useful, | 10 This library is distributed in the hope that it will be useful, |
(...skipping 16 matching lines...) Expand all Loading... |
27 #include "V8DOMStringList.h" | 27 #include "V8DOMStringList.h" |
28 #include "V8Document.h" | 28 #include "V8Document.h" |
29 #include "V8Float32Array.h" | 29 #include "V8Float32Array.h" |
30 #include "V8Node.h" | 30 #include "V8Node.h" |
31 #include "V8SVGDocument.h" | 31 #include "V8SVGDocument.h" |
32 #include "V8SVGPoint.h" | 32 #include "V8SVGPoint.h" |
33 #include "V8ScriptProfile.h" | 33 #include "V8ScriptProfile.h" |
34 #include "V8TestCallback.h" | 34 #include "V8TestCallback.h" |
35 #include "V8TestNode.h" | 35 #include "V8TestNode.h" |
36 #include "V8TestSubObj.h" | 36 #include "V8TestSubObj.h" |
37 #include "V8bool.h" | 37 #include "bindings/v8/BindingSecurity.h" |
38 #include "bindings/v8/Dictionary.h" | 38 #include "bindings/v8/Dictionary.h" |
39 #include "bindings/v8/ScriptController.h" | 39 #include "bindings/v8/ScriptController.h" |
40 #include "bindings/v8/ScriptValue.h" | 40 #include "bindings/v8/ScriptValue.h" |
41 #include "bindings/v8/SerializedScriptValue.h" | 41 #include "bindings/v8/SerializedScriptValue.h" |
42 #include "bindings/v8/V8Binding.h" | 42 #include "bindings/v8/V8Binding.h" |
43 #include "bindings/v8/V8Collection.h" | 43 #include "bindings/v8/V8Collection.h" |
44 #include "bindings/v8/V8DOMActivityLogger.h" | 44 #include "bindings/v8/V8DOMActivityLogger.h" |
| 45 #include "bindings/v8/V8DOMConfiguration.h" |
45 #include "bindings/v8/V8DOMWrapper.h" | 46 #include "bindings/v8/V8DOMWrapper.h" |
46 #include "bindings/v8/V8EventListenerList.h" | 47 #include "bindings/v8/V8EventListenerList.h" |
| 48 #include "bindings/v8/V8HiddenPropertyName.h" |
| 49 #include "bindings/v8/V8ObjectConstructor.h" |
47 #include "core/dom/ContextFeatures.h" | 50 #include "core/dom/ContextFeatures.h" |
48 #include "core/dom/DOMStringList.h" | 51 #include "core/dom/DOMStringList.h" |
| 52 #include "core/dom/Document.h" |
49 #include "core/dom/ExceptionCode.h" | 53 #include "core/dom/ExceptionCode.h" |
50 #include "core/page/Frame.h" | 54 #include "core/page/Frame.h" |
51 #include "core/page/PageConsole.h" | 55 #include "core/page/PageConsole.h" |
52 #include "core/page/UseCounter.h" | 56 #include "core/page/UseCounter.h" |
53 #include "core/svg/properties/SVGPropertyTearOff.h" | 57 #include "core/svg/properties/SVGPropertyTearOff.h" |
54 #include "core/svg/properties/SVGStaticPropertyTearOff.h" | 58 #include "core/svg/properties/SVGStaticPropertyTearOff.h" |
55 #include "wtf/Float32Array.h" | 59 #include "wtf/Float32Array.h" |
56 #include "wtf/GetPtr.h" | 60 #include "wtf/GetPtr.h" |
57 #include "wtf/RefCounted.h" | 61 #include "wtf/RefCounted.h" |
58 #include "wtf/RefPtr.h" | 62 #include "wtf/RefPtr.h" |
(...skipping 3531 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3590 static v8::Handle<v8::Value> strictFunctionMethod(const v8::Arguments& args) | 3594 static v8::Handle<v8::Value> strictFunctionMethod(const v8::Arguments& args) |
3591 { | 3595 { |
3592 if (args.Length() < 3) | 3596 if (args.Length() < 3) |
3593 return throwNotEnoughArgumentsError(args.GetIsolate()); | 3597 return throwNotEnoughArgumentsError(args.GetIsolate()); |
3594 TestObj* imp = V8TestObj::toNative(args.Holder()); | 3598 TestObj* imp = V8TestObj::toNative(args.Holder()); |
3595 ExceptionCode ec = 0; | 3599 ExceptionCode ec = 0; |
3596 { | 3600 { |
3597 V8TRYCATCH_FOR_V8STRINGRESOURCE(V8StringResource<>, str, args[0]); | 3601 V8TRYCATCH_FOR_V8STRINGRESOURCE(V8StringResource<>, str, args[0]); |
3598 V8TRYCATCH(float, a, static_cast<float>(args[1]->NumberValue())); | 3602 V8TRYCATCH(float, a, static_cast<float>(args[1]->NumberValue())); |
3599 V8TRYCATCH(int, b, toInt32(args[2])); | 3603 V8TRYCATCH(int, b, toInt32(args[2])); |
3600 RefPtr<bool> result = imp->strictFunction(str, a, b, ec); | 3604 bool result = imp->strictFunction(str, a, b, ec); |
3601 if (UNLIKELY(ec)) | 3605 if (UNLIKELY(ec)) |
3602 goto fail; | 3606 goto fail; |
3603 return toV8(result.release(), args.Holder(), args.GetIsolate()); | 3607 return v8Boolean(result, args.GetIsolate()); |
3604 } | 3608 } |
3605 fail: | 3609 fail: |
3606 return setDOMException(ec, args.GetIsolate()); | 3610 return setDOMException(ec, args.GetIsolate()); |
3607 } | 3611 } |
3608 | 3612 |
3609 static v8::Handle<v8::Value> strictFunctionMethodCallback(const v8::Arguments& a
rgs) | 3613 static v8::Handle<v8::Value> strictFunctionMethodCallback(const v8::Arguments& a
rgs) |
3610 { | 3614 { |
3611 return TestObjV8Internal::strictFunctionMethod(args); | 3615 return TestObjV8Internal::strictFunctionMethod(args); |
3612 } | 3616 } |
3613 | 3617 |
(...skipping 549 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4163 // Attribute 'deprecatedReadonlyAttr' (Type: 'attribute' ExtAttr: 'Deprecate
As') | 4167 // Attribute 'deprecatedReadonlyAttr' (Type: 'attribute' ExtAttr: 'Deprecate
As') |
4164 {"deprecatedReadonlyAttr", TestObjV8Internal::deprecatedReadonlyAttrAttrGett
erCallback, 0, 0, 0, 0 /* no data */, static_cast<v8::AccessControl>(v8::DEFAULT
), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 4168 {"deprecatedReadonlyAttr", TestObjV8Internal::deprecatedReadonlyAttrAttrGett
erCallback, 0, 0, 0, 0 /* no data */, static_cast<v8::AccessControl>(v8::DEFAULT
), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
4165 // Attribute 'deprecatedAttr' (Type: 'attribute' ExtAttr: 'DeprecateAs') | 4169 // Attribute 'deprecatedAttr' (Type: 'attribute' ExtAttr: 'DeprecateAs') |
4166 {"deprecatedAttr", TestObjV8Internal::deprecatedAttrAttrGetterCallback, Test
ObjV8Internal::deprecatedAttrAttrSetterCallback, 0, 0, 0 /* no data */, static_c
ast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None
), 0 /* on instance */}, | 4170 {"deprecatedAttr", TestObjV8Internal::deprecatedAttrAttrGetterCallback, Test
ObjV8Internal::deprecatedAttrAttrSetterCallback, 0, 0, 0 /* no data */, static_c
ast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None
), 0 /* on instance */}, |
4167 }; | 4171 }; |
4168 | 4172 |
4169 static const V8DOMConfiguration::BatchedMethod V8TestObjMethods[] = { | 4173 static const V8DOMConfiguration::BatchedMethod V8TestObjMethods[] = { |
4170 {"voidMethod", TestObjV8Internal::voidMethodMethodCallback, 0, 0}, | 4174 {"voidMethod", TestObjV8Internal::voidMethodMethodCallback, 0, 0}, |
4171 {"longMethod", TestObjV8Internal::longMethodMethodCallback, 0, 0}, | 4175 {"longMethod", TestObjV8Internal::longMethodMethodCallback, 0, 0}, |
4172 {"objMethod", TestObjV8Internal::objMethodMethodCallback, 0, 0}, | 4176 {"objMethod", TestObjV8Internal::objMethodMethodCallback, 0, 0}, |
| 4177 {"methodWithSequenceArg", TestObjV8Internal::methodWithSequenceArgMethodCall
back, 0, 1}, |
4173 {"methodReturningSequence", TestObjV8Internal::methodReturningSequenceMethod
Callback, 0, 1}, | 4178 {"methodReturningSequence", TestObjV8Internal::methodReturningSequenceMethod
Callback, 0, 1}, |
4174 {"methodWithEnumArg", TestObjV8Internal::methodWithEnumArgMethodCallback, 0,
1}, | 4179 {"methodWithEnumArg", TestObjV8Internal::methodWithEnumArgMethodCallback, 0,
1}, |
4175 {"serializedValue", TestObjV8Internal::serializedValueMethodCallback, 0, 1}, | 4180 {"serializedValue", TestObjV8Internal::serializedValueMethodCallback, 0, 1}, |
4176 {"optionsObject", TestObjV8Internal::optionsObjectMethodCallback, 0, 1}, | 4181 {"optionsObject", TestObjV8Internal::optionsObjectMethodCallback, 0, 1}, |
4177 {"methodWithException", TestObjV8Internal::methodWithExceptionMethodCallback
, 0, 0}, | 4182 {"methodWithException", TestObjV8Internal::methodWithExceptionMethodCallback
, 0, 0}, |
4178 {"customMethod", TestObjV8Internal::customMethodMethodCallback, 0, 0}, | 4183 {"customMethod", TestObjV8Internal::customMethodMethodCallback, 0, 0}, |
4179 {"customMethodWithArgs", TestObjV8Internal::customMethodWithArgsMethodCallba
ck, 0, 3}, | 4184 {"customMethodWithArgs", TestObjV8Internal::customMethodWithArgsMethodCallba
ck, 0, 3}, |
4180 {"addEventListener", TestObjV8Internal::addEventListenerMethodCallback, 0, 2
}, | 4185 {"addEventListener", TestObjV8Internal::addEventListenerMethodCallback, 0, 2
}, |
4181 {"removeEventListener", TestObjV8Internal::removeEventListenerMethodCallback
, 0, 2}, | 4186 {"removeEventListener", TestObjV8Internal::removeEventListenerMethodCallback
, 0, 2}, |
4182 {"withScriptStateVoid", TestObjV8Internal::withScriptStateVoidMethodCallback
, 0, 0}, | 4187 {"withScriptStateVoid", TestObjV8Internal::withScriptStateVoidMethodCallback
, 0, 0}, |
(...skipping 21 matching lines...) Expand all Loading... |
4204 {"conditionalMethod1", TestObjV8Internal::conditionalMethod1MethodCallback,
0, 0}, | 4209 {"conditionalMethod1", TestObjV8Internal::conditionalMethod1MethodCallback,
0, 0}, |
4205 #endif | 4210 #endif |
4206 #if ENABLE(Condition1) && ENABLE(Condition2) | 4211 #if ENABLE(Condition1) && ENABLE(Condition2) |
4207 {"conditionalMethod2", TestObjV8Internal::conditionalMethod2MethodCallback,
0, 0}, | 4212 {"conditionalMethod2", TestObjV8Internal::conditionalMethod2MethodCallback,
0, 0}, |
4208 #endif | 4213 #endif |
4209 #if ENABLE(Condition1) || ENABLE(Condition2) | 4214 #if ENABLE(Condition1) || ENABLE(Condition2) |
4210 {"conditionalMethod3", TestObjV8Internal::conditionalMethod3MethodCallback,
0, 0}, | 4215 {"conditionalMethod3", TestObjV8Internal::conditionalMethod3MethodCallback,
0, 0}, |
4211 #endif | 4216 #endif |
4212 {"overloadedMethod", TestObjV8Internal::overloadedMethodMethodCallback, 0, 2
}, | 4217 {"overloadedMethod", TestObjV8Internal::overloadedMethodMethodCallback, 0, 2
}, |
4213 {"classMethodWithClamp", TestObjV8Internal::classMethodWithClampMethodCallba
ck, 0, 2}, | 4218 {"classMethodWithClamp", TestObjV8Internal::classMethodWithClampMethodCallba
ck, 0, 2}, |
| 4219 {"methodWithUnsignedLongSequence", TestObjV8Internal::methodWithUnsignedLong
SequenceMethodCallback, 0, 1}, |
| 4220 {"stringArrayFunction", TestObjV8Internal::stringArrayFunctionMethodCallback
, 0, 1}, |
4214 {"getSVGDocument", TestObjV8Internal::getSVGDocumentMethodCallback, 0, 0}, | 4221 {"getSVGDocument", TestObjV8Internal::getSVGDocumentMethodCallback, 0, 0}, |
4215 {"mutablePointFunction", TestObjV8Internal::mutablePointFunctionMethodCallba
ck, 0, 0}, | 4222 {"mutablePointFunction", TestObjV8Internal::mutablePointFunctionMethodCallba
ck, 0, 0}, |
4216 {"immutablePointFunction", TestObjV8Internal::immutablePointFunctionMethodCa
llback, 0, 0}, | 4223 {"immutablePointFunction", TestObjV8Internal::immutablePointFunctionMethodCa
llback, 0, 0}, |
4217 {"orange", TestObjV8Internal::orangeMethodCallback, 0, 0}, | 4224 {"orange", TestObjV8Internal::orangeMethodCallback, 0, 0}, |
4218 {"strictFunction", TestObjV8Internal::strictFunctionMethodCallback, 0, 3}, | 4225 {"strictFunction", TestObjV8Internal::strictFunctionMethodCallback, 0, 3}, |
4219 {"variadicStringMethod", TestObjV8Internal::variadicStringMethodMethodCallba
ck, 0, 2}, | 4226 {"variadicStringMethod", TestObjV8Internal::variadicStringMethodMethodCallba
ck, 0, 2}, |
4220 {"variadicDoubleMethod", TestObjV8Internal::variadicDoubleMethodMethodCallba
ck, 0, 2}, | 4227 {"variadicDoubleMethod", TestObjV8Internal::variadicDoubleMethodMethodCallba
ck, 0, 2}, |
4221 {"perWorldMethod", TestObjV8Internal::perWorldMethodMethodCallback, TestObjV
8Internal::perWorldMethodMethodCallbackForMainWorld, 0}, | 4228 {"perWorldMethod", TestObjV8Internal::perWorldMethodMethodCallback, TestObjV
8Internal::perWorldMethodMethodCallbackForMainWorld, 0}, |
4222 {"overloadedPerWorldMethod", TestObjV8Internal::overloadedPerWorldMethodMeth
odCallback, TestObjV8Internal::overloadedPerWorldMethodMethodCallbackForMainWorl
d, 1}, | 4229 {"overloadedPerWorldMethod", TestObjV8Internal::overloadedPerWorldMethodMeth
odCallback, TestObjV8Internal::overloadedPerWorldMethodMethodCallbackForMainWorl
d, 1}, |
4223 {"activityLoggedMethod1", TestObjV8Internal::activityLoggedMethod1MethodCall
back, 0, 1}, | 4230 {"activityLoggedMethod1", TestObjV8Internal::activityLoggedMethod1MethodCall
back, 0, 1}, |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4324 v8::Handle<v8::FunctionTemplate> longMethodWithArgsArgv[longMethodWithArgsAr
gc] = { v8::Handle<v8::FunctionTemplate>(), v8::Handle<v8::FunctionTemplate>(),
V8PerIsolateData::from(isolate)->rawTemplate(&V8TestObj::info, currentWorldType)
}; | 4331 v8::Handle<v8::FunctionTemplate> longMethodWithArgsArgv[longMethodWithArgsAr
gc] = { v8::Handle<v8::FunctionTemplate>(), v8::Handle<v8::FunctionTemplate>(),
V8PerIsolateData::from(isolate)->rawTemplate(&V8TestObj::info, currentWorldType)
}; |
4325 v8::Handle<v8::Signature> longMethodWithArgsSignature = v8::Signature::New(d
esc, longMethodWithArgsArgc, longMethodWithArgsArgv); | 4332 v8::Handle<v8::Signature> longMethodWithArgsSignature = v8::Signature::New(d
esc, longMethodWithArgsArgc, longMethodWithArgsArgv); |
4326 proto->Set(v8::String::NewSymbol("longMethodWithArgs"), v8::FunctionTemplate
::New(TestObjV8Internal::longMethodWithArgsMethodCallback, v8Undefined(), longMe
thodWithArgsSignature, 3)); | 4333 proto->Set(v8::String::NewSymbol("longMethodWithArgs"), v8::FunctionTemplate
::New(TestObjV8Internal::longMethodWithArgsMethodCallback, v8Undefined(), longMe
thodWithArgsSignature, 3)); |
4327 | 4334 |
4328 // Custom Signature 'objMethodWithArgs' | 4335 // Custom Signature 'objMethodWithArgs' |
4329 const int objMethodWithArgsArgc = 3; | 4336 const int objMethodWithArgsArgc = 3; |
4330 v8::Handle<v8::FunctionTemplate> objMethodWithArgsArgv[objMethodWithArgsArgc
] = { v8::Handle<v8::FunctionTemplate>(), v8::Handle<v8::FunctionTemplate>(), V8
PerIsolateData::from(isolate)->rawTemplate(&V8TestObj::info, currentWorldType) }
; | 4337 v8::Handle<v8::FunctionTemplate> objMethodWithArgsArgv[objMethodWithArgsArgc
] = { v8::Handle<v8::FunctionTemplate>(), v8::Handle<v8::FunctionTemplate>(), V8
PerIsolateData::from(isolate)->rawTemplate(&V8TestObj::info, currentWorldType) }
; |
4331 v8::Handle<v8::Signature> objMethodWithArgsSignature = v8::Signature::New(de
sc, objMethodWithArgsArgc, objMethodWithArgsArgv); | 4338 v8::Handle<v8::Signature> objMethodWithArgsSignature = v8::Signature::New(de
sc, objMethodWithArgsArgc, objMethodWithArgsArgv); |
4332 proto->Set(v8::String::NewSymbol("objMethodWithArgs"), v8::FunctionTemplate:
:New(TestObjV8Internal::objMethodWithArgsMethodCallback, v8Undefined(), objMetho
dWithArgsSignature, 3)); | 4339 proto->Set(v8::String::NewSymbol("objMethodWithArgs"), v8::FunctionTemplate:
:New(TestObjV8Internal::objMethodWithArgsMethodCallback, v8Undefined(), objMetho
dWithArgsSignature, 3)); |
4333 | 4340 |
4334 // Custom Signature 'methodWithSequenceArg' | |
4335 const int methodWithSequenceArgArgc = 1; | |
4336 v8::Handle<v8::FunctionTemplate> methodWithSequenceArgArgv[methodWithSequenc
eArgArgc] = { V8PerIsolateData::from(isolate)->rawTemplate(&V8sequence<ScriptPro
file>::info, currentWorldType) }; | |
4337 v8::Handle<v8::Signature> methodWithSequenceArgSignature = v8::Signature::Ne
w(desc, methodWithSequenceArgArgc, methodWithSequenceArgArgv); | |
4338 proto->Set(v8::String::NewSymbol("methodWithSequenceArg"), v8::FunctionTempl
ate::New(TestObjV8Internal::methodWithSequenceArgMethodCallback, v8Undefined(),
methodWithSequenceArgSignature, 1)); | |
4339 | |
4340 // Custom Signature 'methodThatRequiresAllArgsAndThrows' | 4341 // Custom Signature 'methodThatRequiresAllArgsAndThrows' |
4341 const int methodThatRequiresAllArgsAndThrowsArgc = 2; | 4342 const int methodThatRequiresAllArgsAndThrowsArgc = 2; |
4342 v8::Handle<v8::FunctionTemplate> methodThatRequiresAllArgsAndThrowsArgv[meth
odThatRequiresAllArgsAndThrowsArgc] = { v8::Handle<v8::FunctionTemplate>(), V8Pe
rIsolateData::from(isolate)->rawTemplate(&V8TestObj::info, currentWorldType) }; | 4343 v8::Handle<v8::FunctionTemplate> methodThatRequiresAllArgsAndThrowsArgv[meth
odThatRequiresAllArgsAndThrowsArgc] = { v8::Handle<v8::FunctionTemplate>(), V8Pe
rIsolateData::from(isolate)->rawTemplate(&V8TestObj::info, currentWorldType) }; |
4343 v8::Handle<v8::Signature> methodThatRequiresAllArgsAndThrowsSignature = v8::
Signature::New(desc, methodThatRequiresAllArgsAndThrowsArgc, methodThatRequiresA
llArgsAndThrowsArgv); | 4344 v8::Handle<v8::Signature> methodThatRequiresAllArgsAndThrowsSignature = v8::
Signature::New(desc, methodThatRequiresAllArgsAndThrowsArgc, methodThatRequiresA
llArgsAndThrowsArgv); |
4344 proto->Set(v8::String::NewSymbol("methodThatRequiresAllArgsAndThrows"), v8::
FunctionTemplate::New(TestObjV8Internal::methodThatRequiresAllArgsAndThrowsMetho
dCallback, v8Undefined(), methodThatRequiresAllArgsAndThrowsSignature, 2)); | 4345 proto->Set(v8::String::NewSymbol("methodThatRequiresAllArgsAndThrows"), v8::
FunctionTemplate::New(TestObjV8Internal::methodThatRequiresAllArgsAndThrowsMetho
dCallback, v8Undefined(), methodThatRequiresAllArgsAndThrowsSignature, 2)); |
4345 desc->Set(v8::String::NewSymbol("staticMethodWithCallbackAndOptionalArg"), v
8::FunctionTemplate::New(TestObjV8Internal::staticMethodWithCallbackAndOptionalA
rgMethodCallback, v8Undefined(), v8::Local<v8::Signature>(), 0)); | 4346 desc->Set(v8::String::NewSymbol("staticMethodWithCallbackAndOptionalArg"), v
8::FunctionTemplate::New(TestObjV8Internal::staticMethodWithCallbackAndOptionalA
rgMethodCallback, v8Undefined(), v8::Local<v8::Signature>(), 0)); |
4346 desc->Set(v8::String::NewSymbol("staticMethodWithCallbackArg"), v8::Function
Template::New(TestObjV8Internal::staticMethodWithCallbackArgMethodCallback, v8Un
defined(), v8::Local<v8::Signature>(), 1)); | 4347 desc->Set(v8::String::NewSymbol("staticMethodWithCallbackArg"), v8::Function
Template::New(TestObjV8Internal::staticMethodWithCallbackArgMethodCallback, v8Un
defined(), v8::Local<v8::Signature>(), 1)); |
4347 desc->Set(v8::String::NewSymbol("classMethod"), v8::FunctionTemplate::New(Te
stObjV8Internal::classMethodMethodCallback, v8Undefined(), v8::Local<v8::Signatu
re>(), 0)); | 4348 desc->Set(v8::String::NewSymbol("classMethod"), v8::FunctionTemplate::New(Te
stObjV8Internal::classMethodMethodCallback, v8Undefined(), v8::Local<v8::Signatu
re>(), 0)); |
4348 desc->Set(v8::String::NewSymbol("classMethodWithOptional"), v8::FunctionTemp
late::New(TestObjV8Internal::classMethodWithOptionalMethodCallback, v8Undefined(
), v8::Local<v8::Signature>(), 0)); | 4349 desc->Set(v8::String::NewSymbol("classMethodWithOptional"), v8::FunctionTemp
late::New(TestObjV8Internal::classMethodWithOptionalMethodCallback, v8Undefined(
), v8::Local<v8::Signature>(), 0)); |
4349 desc->Set(v8::String::NewSymbol("classMethod2"), v8::FunctionTemplate::New(T
estObjV8Internal::classMethod2MethodCallback, v8Undefined(), v8::Local<v8::Signa
ture>(), 1)); | 4350 desc->Set(v8::String::NewSymbol("classMethod2"), v8::FunctionTemplate::New(T
estObjV8Internal::classMethod2MethodCallback, v8Undefined(), v8::Local<v8::Signa
ture>(), 1)); |
4350 #if ENABLE(Condition1) | 4351 #if ENABLE(Condition1) |
4351 desc->Set(v8::String::NewSymbol("overloadedMethod1"), v8::FunctionTemplate::
New(TestObjV8Internal::overloadedMethod1MethodCallback, v8Undefined(), v8::Local
<v8::Signature>(), 1)); | 4352 desc->Set(v8::String::NewSymbol("overloadedMethod1"), v8::FunctionTemplate::
New(TestObjV8Internal::overloadedMethod1MethodCallback, v8Undefined(), v8::Local
<v8::Signature>(), 1)); |
4352 #endif // ENABLE(Condition1) | 4353 #endif // ENABLE(Condition1) |
4353 if (RuntimeEnabledFeatures::enabledAtRuntimeMethod1Enabled()) | 4354 if (RuntimeEnabledFeatures::enabledAtRuntimeMethod1Enabled()) |
4354 proto->Set(v8::String::NewSymbol("enabledAtRuntimeMethod1"), v8::Functio
nTemplate::New(TestObjV8Internal::enabledAtRuntimeMethod1MethodCallback, v8Undef
ined(), defaultSignature, 1)); | 4355 proto->Set(v8::String::NewSymbol("enabledAtRuntimeMethod1"), v8::Functio
nTemplate::New(TestObjV8Internal::enabledAtRuntimeMethod1MethodCallback, v8Undef
ined(), defaultSignature, 1)); |
4355 if (RuntimeEnabledFeatures::featureNameEnabled()) | 4356 if (RuntimeEnabledFeatures::featureNameEnabled()) |
4356 proto->Set(v8::String::NewSymbol("enabledAtRuntimeMethod2"), v8::Functio
nTemplate::New(TestObjV8Internal::enabledAtRuntimeMethod2MethodCallback, v8Undef
ined(), defaultSignature, 1)); | 4357 proto->Set(v8::String::NewSymbol("enabledAtRuntimeMethod2"), v8::Functio
nTemplate::New(TestObjV8Internal::enabledAtRuntimeMethod2MethodCallback, v8Undef
ined(), defaultSignature, 1)); |
4357 | 4358 |
4358 // Custom Signature 'methodWithUnsignedLongSequence' | |
4359 const int methodWithUnsignedLongSequenceArgc = 1; | |
4360 v8::Handle<v8::FunctionTemplate> methodWithUnsignedLongSequenceArgv[methodWi
thUnsignedLongSequenceArgc] = { v8::Handle<v8::FunctionTemplate>() }; | |
4361 v8::Handle<v8::Signature> methodWithUnsignedLongSequenceSignature = v8::Sign
ature::New(desc, methodWithUnsignedLongSequenceArgc, methodWithUnsignedLongSeque
nceArgv); | |
4362 proto->Set(v8::String::NewSymbol("methodWithUnsignedLongSequence"), v8::Func
tionTemplate::New(TestObjV8Internal::methodWithUnsignedLongSequenceMethodCallbac
k, v8Undefined(), methodWithUnsignedLongSequenceSignature, 1)); | |
4363 | |
4364 // Custom Signature 'stringArrayFunction' | |
4365 const int stringArrayFunctionArgc = 1; | |
4366 v8::Handle<v8::FunctionTemplate> stringArrayFunctionArgv[stringArrayFunction
Argc] = { V8PerIsolateData::from(isolate)->rawTemplate(&V8DOMString[]::info, cur
rentWorldType) }; | |
4367 v8::Handle<v8::Signature> stringArrayFunctionSignature = v8::Signature::New(
desc, stringArrayFunctionArgc, stringArrayFunctionArgv); | |
4368 proto->Set(v8::String::NewSymbol("stringArrayFunction"), v8::FunctionTemplat
e::New(TestObjV8Internal::stringArrayFunctionMethodCallback, v8Undefined(), stri
ngArrayFunctionSignature, 1)); | |
4369 | |
4370 // Custom Signature 'domStringListFunction' | 4359 // Custom Signature 'domStringListFunction' |
4371 const int domStringListFunctionArgc = 1; | 4360 const int domStringListFunctionArgc = 1; |
4372 v8::Handle<v8::FunctionTemplate> domStringListFunctionArgv[domStringListFunc
tionArgc] = { V8PerIsolateData::from(isolate)->rawTemplate(&V8DOMStringList::inf
o, currentWorldType) }; | 4361 v8::Handle<v8::FunctionTemplate> domStringListFunctionArgv[domStringListFunc
tionArgc] = { V8PerIsolateData::from(isolate)->rawTemplate(&V8DOMStringList::inf
o, currentWorldType) }; |
4373 v8::Handle<v8::Signature> domStringListFunctionSignature = v8::Signature::Ne
w(desc, domStringListFunctionArgc, domStringListFunctionArgv); | 4362 v8::Handle<v8::Signature> domStringListFunctionSignature = v8::Signature::Ne
w(desc, domStringListFunctionArgc, domStringListFunctionArgv); |
4374 proto->Set(v8::String::NewSymbol("domStringListFunction"), v8::FunctionTempl
ate::New(TestObjV8Internal::domStringListFunctionMethodCallback, v8Undefined(),
domStringListFunctionSignature, 1)); | 4363 proto->Set(v8::String::NewSymbol("domStringListFunction"), v8::FunctionTempl
ate::New(TestObjV8Internal::domStringListFunctionMethodCallback, v8Undefined(),
domStringListFunctionSignature, 1)); |
4375 | 4364 |
4376 // Custom Signature 'convert1' | 4365 // Custom Signature 'convert1' |
4377 const int convert1Argc = 1; | 4366 const int convert1Argc = 1; |
4378 v8::Handle<v8::FunctionTemplate> convert1Argv[convert1Argc] = { V8PerIsolate
Data::from(isolate)->rawTemplate(&V8TestNode::info, currentWorldType) }; | 4367 v8::Handle<v8::FunctionTemplate> convert1Argv[convert1Argc] = { V8PerIsolate
Data::from(isolate)->rawTemplate(&V8TestNode::info, currentWorldType) }; |
4379 v8::Handle<v8::Signature> convert1Signature = v8::Signature::New(desc, conve
rt1Argc, convert1Argv); | 4368 v8::Handle<v8::Signature> convert1Signature = v8::Signature::New(desc, conve
rt1Argc, convert1Argv); |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4485 installPerContextProperties(wrapper, impl.get(), isolate); | 4474 installPerContextProperties(wrapper, impl.get(), isolate); |
4486 V8DOMWrapper::associateObjectWithWrapper(impl, &info, wrapper, isolate, hasD
ependentLifetime ? WrapperConfiguration::Dependent : WrapperConfiguration::Indep
endent); | 4475 V8DOMWrapper::associateObjectWithWrapper(impl, &info, wrapper, isolate, hasD
ependentLifetime ? WrapperConfiguration::Dependent : WrapperConfiguration::Indep
endent); |
4487 return wrapper; | 4476 return wrapper; |
4488 } | 4477 } |
4489 void V8TestObj::derefObject(void* object) | 4478 void V8TestObj::derefObject(void* object) |
4490 { | 4479 { |
4491 static_cast<TestObj*>(object)->deref(); | 4480 static_cast<TestObj*>(object)->deref(); |
4492 } | 4481 } |
4493 | 4482 |
4494 } // namespace WebCore | 4483 } // namespace WebCore |
OLD | NEW |