| 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 3935 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3946 TestObj::deprecatedStaticMethod(); | 3946 TestObj::deprecatedStaticMethod(); |
| 3947 return v8Undefined(); | 3947 return v8Undefined(); |
| 3948 } | 3948 } |
| 3949 | 3949 |
| 3950 static v8::Handle<v8::Value> deprecatedStaticMethodMethodCallback(const v8::Argu
ments& args) | 3950 static v8::Handle<v8::Value> deprecatedStaticMethodMethodCallback(const v8::Argu
ments& args) |
| 3951 { | 3951 { |
| 3952 UseCounter::countDeprecation(activeDOMWindow(), UseCounter::StaticMethod); | 3952 UseCounter::countDeprecation(activeDOMWindow(), UseCounter::StaticMethod); |
| 3953 return TestObjV8Internal::deprecatedStaticMethodMethod(args); | 3953 return TestObjV8Internal::deprecatedStaticMethodMethod(args); |
| 3954 } | 3954 } |
| 3955 | 3955 |
| 3956 static v8::Handle<v8::Value> constructor(const v8::Arguments& args) | 3956 static void constructor(const v8::FunctionCallbackInfo<v8::Value>& args) |
| 3957 { | 3957 { |
| 3958 if (args.Length() < 1) | 3958 if (args.Length() < 1) { |
| 3959 return throwNotEnoughArgumentsError(args.GetIsolate()); | 3959 throwNotEnoughArgumentsError(args.GetIsolate()); |
| 3960 if (args.Length() <= 0 || !args[0]->IsFunction()) | 3960 return; |
| 3961 return throwTypeError(0, args.GetIsolate()); | 3961 } |
| 3962 if (args.Length() <= 0 || !args[0]->IsFunction()) { |
| 3963 throwTypeError(0, args.GetIsolate()); |
| 3964 return; |
| 3965 } |
| 3962 RefPtr<TestCallback> testCallback = V8TestCallback::create(args[0], getScrip
tExecutionContext()); | 3966 RefPtr<TestCallback> testCallback = V8TestCallback::create(args[0], getScrip
tExecutionContext()); |
| 3963 | 3967 |
| 3964 RefPtr<TestObj> impl = TestObj::create(testCallback); | 3968 RefPtr<TestObj> impl = TestObj::create(testCallback); |
| 3965 v8::Handle<v8::Object> wrapper = args.Holder(); | 3969 v8::Handle<v8::Object> wrapper = args.Holder(); |
| 3966 | 3970 |
| 3967 V8DOMWrapper::associateObjectWithWrapper(impl.release(), &V8TestObject::info
, wrapper, args.GetIsolate(), WrapperConfiguration::Dependent); | 3971 V8DOMWrapper::associateObjectWithWrapper(impl.release(), &V8TestObject::info
, wrapper, args.GetIsolate(), WrapperConfiguration::Dependent); |
| 3968 return wrapper; | 3972 args.GetReturnValue().Set(wrapper); |
| 3969 } | 3973 } |
| 3970 | 3974 |
| 3971 } // namespace TestObjV8Internal | 3975 } // namespace TestObjV8Internal |
| 3972 | 3976 |
| 3973 static const V8DOMConfiguration::BatchedAttribute V8TestObjectAttrs[] = { | 3977 static const V8DOMConfiguration::BatchedAttribute V8TestObjectAttrs[] = { |
| 3974 // Attribute 'readOnlyLongAttr' (Type: 'attribute' ExtAttr: '') | 3978 // Attribute 'readOnlyLongAttr' (Type: 'attribute' ExtAttr: '') |
| 3975 {"readOnlyLongAttr", TestObjV8Internal::readOnlyLongAttrAttrGetterCallback,
0, 0, 0, 0 /* no data */, static_cast<v8::AccessControl>(v8::DEFAULT), static_ca
st<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 3979 {"readOnlyLongAttr", TestObjV8Internal::readOnlyLongAttrAttrGetterCallback,
0, 0, 0, 0 /* no data */, static_cast<v8::AccessControl>(v8::DEFAULT), static_ca
st<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
| 3976 // Attribute 'readOnlyStringAttr' (Type: 'attribute' ExtAttr: '') | 3980 // Attribute 'readOnlyStringAttr' (Type: 'attribute' ExtAttr: '') |
| 3977 {"readOnlyStringAttr", TestObjV8Internal::readOnlyStringAttrAttrGetterCallba
ck, 0, 0, 0, 0 /* no data */, static_cast<v8::AccessControl>(v8::DEFAULT), stati
c_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 3981 {"readOnlyStringAttr", TestObjV8Internal::readOnlyStringAttrAttrGetterCallba
ck, 0, 0, 0, 0 /* no data */, static_cast<v8::AccessControl>(v8::DEFAULT), stati
c_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
| 3978 // Attribute 'readOnlyTestObjectAttr' (Type: 'attribute' ExtAttr: '') | 3982 // Attribute 'readOnlyTestObjectAttr' (Type: 'attribute' ExtAttr: '') |
| (...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4252 COMPILE_ASSERT(8 == TestObj::CONST_VALUE_8, TestObjEnumCONST_VALUE_8IsWrongUseDo
NotCheckConstants); | 4256 COMPILE_ASSERT(8 == TestObj::CONST_VALUE_8, TestObjEnumCONST_VALUE_8IsWrongUseDo
NotCheckConstants); |
| 4253 COMPILE_ASSERT(-1 == TestObj::CONST_VALUE_9, TestObjEnumCONST_VALUE_9IsWrongUseD
oNotCheckConstants); | 4257 COMPILE_ASSERT(-1 == TestObj::CONST_VALUE_9, TestObjEnumCONST_VALUE_9IsWrongUseD
oNotCheckConstants); |
| 4254 COMPILE_ASSERT("my constant string" == TestObj::CONST_VALUE_10, TestObjEnumCONST
_VALUE_10IsWrongUseDoNotCheckConstants); | 4258 COMPILE_ASSERT("my constant string" == TestObj::CONST_VALUE_10, TestObjEnumCONST
_VALUE_10IsWrongUseDoNotCheckConstants); |
| 4255 COMPILE_ASSERT(0xffffffff == TestObj::CONST_VALUE_11, TestObjEnumCONST_VALUE_11I
sWrongUseDoNotCheckConstants); | 4259 COMPILE_ASSERT(0xffffffff == TestObj::CONST_VALUE_11, TestObjEnumCONST_VALUE_11I
sWrongUseDoNotCheckConstants); |
| 4256 COMPILE_ASSERT(0x01 == TestObj::CONST_VALUE_12, TestObjEnumCONST_VALUE_12IsWrong
UseDoNotCheckConstants); | 4260 COMPILE_ASSERT(0x01 == TestObj::CONST_VALUE_12, TestObjEnumCONST_VALUE_12IsWrong
UseDoNotCheckConstants); |
| 4257 COMPILE_ASSERT(0X20 == TestObj::CONST_VALUE_13, TestObjEnumCONST_VALUE_13IsWrong
UseDoNotCheckConstants); | 4261 COMPILE_ASSERT(0X20 == TestObj::CONST_VALUE_13, TestObjEnumCONST_VALUE_13IsWrong
UseDoNotCheckConstants); |
| 4258 COMPILE_ASSERT(0x1abc == TestObj::CONST_VALUE_14, TestObjEnumCONST_VALUE_14IsWro
ngUseDoNotCheckConstants); | 4262 COMPILE_ASSERT(0x1abc == TestObj::CONST_VALUE_14, TestObjEnumCONST_VALUE_14IsWro
ngUseDoNotCheckConstants); |
| 4259 COMPILE_ASSERT(15 == TestObj::CONST_IMPL, TestObjEnumCONST_IMPLIsWrongUseDoNotCh
eckConstants); | 4263 COMPILE_ASSERT(15 == TestObj::CONST_IMPL, TestObjEnumCONST_IMPLIsWrongUseDoNotCh
eckConstants); |
| 4260 COMPILE_ASSERT(1 == TestObj::DEPRECATED_CONSTANT, TestObjEnumDEPRECATED_CONSTANT
IsWrongUseDoNotCheckConstants); | 4264 COMPILE_ASSERT(1 == TestObj::DEPRECATED_CONSTANT, TestObjEnumDEPRECATED_CONSTANT
IsWrongUseDoNotCheckConstants); |
| 4261 | 4265 |
| 4262 v8::Handle<v8::Value> V8TestObject::constructorCallback(const v8::Arguments& arg
s) | 4266 void V8TestObject::constructorCallback(const v8::FunctionCallbackInfo<v8::Value>
& args) |
| 4263 { | 4267 { |
| 4264 if (!args.IsConstructCall()) | 4268 if (!args.IsConstructCall()) { |
| 4265 return throwTypeError("DOM object constructor cannot be called as a func
tion.", args.GetIsolate()); | 4269 throwTypeError("DOM object constructor cannot be called as a function.",
args.GetIsolate()); |
| 4270 return; |
| 4271 } |
| 4266 | 4272 |
| 4267 if (ConstructorMode::current() == ConstructorMode::WrapExistingObject) | 4273 if (ConstructorMode::current() == ConstructorMode::WrapExistingObject) { |
| 4268 return args.Holder(); | 4274 args.GetReturnValue().Set(args.Holder()); |
| 4275 return; |
| 4276 } |
| 4269 | 4277 |
| 4270 return TestObjV8Internal::constructor(args); | 4278 TestObjV8Internal::constructor(args); |
| 4271 } | 4279 } |
| 4272 | 4280 |
| 4273 v8::Handle<v8::Value> V8TestObject::indexedPropertyGetter(uint32_t index, const
v8::AccessorInfo& info) | 4281 v8::Handle<v8::Value> V8TestObject::indexedPropertyGetter(uint32_t index, const
v8::AccessorInfo& info) |
| 4274 { | 4282 { |
| 4275 ASSERT(V8DOMWrapper::maybeDOMWrapper(info.Holder())); | 4283 ASSERT(V8DOMWrapper::maybeDOMWrapper(info.Holder())); |
| 4276 TestObj* collection = toNative(info.Holder()); | 4284 TestObj* collection = toNative(info.Holder()); |
| 4277 RefPtr<Node> element = collection->item(index); | 4285 RefPtr<Node> element = collection->item(index); |
| 4278 if (!element) | 4286 if (!element) |
| 4279 return v8Undefined(); | 4287 return v8Undefined(); |
| 4280 return toV8Fast(element.release(), info, collection); | 4288 return toV8Fast(element.release(), info, collection); |
| (...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4474 installPerContextProperties(wrapper, impl.get(), isolate); | 4482 installPerContextProperties(wrapper, impl.get(), isolate); |
| 4475 V8DOMWrapper::associateObjectWithWrapper(impl, &info, wrapper, isolate, Wrap
perConfiguration::Independent); | 4483 V8DOMWrapper::associateObjectWithWrapper(impl, &info, wrapper, isolate, Wrap
perConfiguration::Independent); |
| 4476 return wrapper; | 4484 return wrapper; |
| 4477 } | 4485 } |
| 4478 void V8TestObject::derefObject(void* object) | 4486 void V8TestObject::derefObject(void* object) |
| 4479 { | 4487 { |
| 4480 static_cast<TestObj*>(object)->deref(); | 4488 static_cast<TestObj*>(object)->deref(); |
| 4481 } | 4489 } |
| 4482 | 4490 |
| 4483 } // namespace WebCore | 4491 } // namespace WebCore |
| OLD | NEW |