| 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 527 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 538 } | 538 } |
| 539 | 539 |
| 540 static v8::Handle<v8::FunctionTemplate> ConfigureV8TestTypedefsTemplate(v8::Hand
le<v8::FunctionTemplate> desc, v8::Isolate* isolate, WrapperWorldType currentWor
ldType) | 540 static v8::Handle<v8::FunctionTemplate> ConfigureV8TestTypedefsTemplate(v8::Hand
le<v8::FunctionTemplate> desc, v8::Isolate* isolate, WrapperWorldType currentWor
ldType) |
| 541 { | 541 { |
| 542 desc->ReadOnlyPrototype(); | 542 desc->ReadOnlyPrototype(); |
| 543 | 543 |
| 544 v8::Local<v8::Signature> defaultSignature; | 544 v8::Local<v8::Signature> defaultSignature; |
| 545 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(desc, "TestTy
pedefs", v8::Local<v8::FunctionTemplate>(), V8TestTypedefs::internalFieldCount, | 545 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(desc, "TestTy
pedefs", v8::Local<v8::FunctionTemplate>(), V8TestTypedefs::internalFieldCount, |
| 546 V8TestTypedefsAttributes, WTF_ARRAY_LENGTH(V8TestTypedefsAttributes), | 546 V8TestTypedefsAttributes, WTF_ARRAY_LENGTH(V8TestTypedefsAttributes), |
| 547 V8TestTypedefsMethods, WTF_ARRAY_LENGTH(V8TestTypedefsMethods), isolate,
currentWorldType); | 547 V8TestTypedefsMethods, WTF_ARRAY_LENGTH(V8TestTypedefsMethods), isolate,
currentWorldType); |
| 548 UNUSED_PARAM(defaultSignature); // In some cases, it will not be used. | 548 UNUSED_PARAM(defaultSignature); |
| 549 desc->SetCallHandler(V8TestTypedefs::constructorCallback); | 549 desc->SetCallHandler(V8TestTypedefs::constructorCallback); |
| 550 desc->SetLength(2); | 550 desc->SetLength(2); |
| 551 v8::Local<v8::ObjectTemplate> instance = desc->InstanceTemplate(); | 551 v8::Local<v8::ObjectTemplate> instance = desc->InstanceTemplate(); |
| 552 v8::Local<v8::ObjectTemplate> proto = desc->PrototypeTemplate(); | 552 v8::Local<v8::ObjectTemplate> proto = desc->PrototypeTemplate(); |
| 553 UNUSED_PARAM(instance); // In some cases, it will not be used. | 553 UNUSED_PARAM(instance); |
| 554 UNUSED_PARAM(proto); // In some cases, it will not be used. | 554 UNUSED_PARAM(proto); |
| 555 | 555 |
| 556 // Custom toString template | 556 // Custom toString template |
| 557 desc->Set(v8::String::NewSymbol("toString"), V8PerIsolateData::current()->to
StringTemplate()); | 557 desc->Set(v8::String::NewSymbol("toString"), V8PerIsolateData::current()->to
StringTemplate()); |
| 558 return desc; | 558 return desc; |
| 559 } | 559 } |
| 560 | 560 |
| 561 v8::Handle<v8::FunctionTemplate> V8TestTypedefs::GetTemplate(v8::Isolate* isolat
e, WrapperWorldType currentWorldType) | 561 v8::Handle<v8::FunctionTemplate> V8TestTypedefs::GetTemplate(v8::Isolate* isolat
e, WrapperWorldType currentWorldType) |
| 562 { | 562 { |
| 563 V8PerIsolateData* data = V8PerIsolateData::from(isolate); | 563 V8PerIsolateData* data = V8PerIsolateData::from(isolate); |
| 564 V8PerIsolateData::TemplateMap::iterator result = data->templateMap(currentWo
rldType).find(&info); | 564 V8PerIsolateData::TemplateMap::iterator result = data->templateMap(currentWo
rldType).find(&info); |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 604 V8DOMWrapper::associateObjectWithWrapper<V8TestTypedefs>(impl, &info, wrappe
r, isolate, WrapperConfiguration::Independent); | 604 V8DOMWrapper::associateObjectWithWrapper<V8TestTypedefs>(impl, &info, wrappe
r, isolate, WrapperConfiguration::Independent); |
| 605 return wrapper; | 605 return wrapper; |
| 606 } | 606 } |
| 607 | 607 |
| 608 void V8TestTypedefs::derefObject(void* object) | 608 void V8TestTypedefs::derefObject(void* object) |
| 609 { | 609 { |
| 610 fromInternalPointer(object)->deref(); | 610 fromInternalPointer(object)->deref(); |
| 611 } | 611 } |
| 612 | 612 |
| 613 } // namespace WebCore | 613 } // namespace WebCore |
| OLD | NEW |