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 519 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
530 return v8Undefined(); | 530 return v8Undefined(); |
531 | 531 |
532 ASSERT(V8DOMWrapper::maybeDOMWrapper(info.Holder())); | 532 ASSERT(V8DOMWrapper::maybeDOMWrapper(info.Holder())); |
533 TestInterface* collection = toNative(info.Holder()); | 533 TestInterface* collection = toNative(info.Holder()); |
534 AtomicString propertyName = toWebCoreAtomicString(name); | 534 AtomicString propertyName = toWebCoreAtomicString(name); |
535 bool element0Enabled = false; | 535 bool element0Enabled = false; |
536 RefPtr<Node> element0; | 536 RefPtr<Node> element0; |
537 bool element1Enabled = false; | 537 bool element1Enabled = false; |
538 RefPtr<NodeList> element1; | 538 RefPtr<NodeList> element1; |
539 collection->getItem(propertyName, element0Enabled, element0, element1Enabled
, element1); | 539 collection->getItem(propertyName, element0Enabled, element0, element1Enabled
, element1); |
540 if (element0Enabled && !!element0) | 540 if (element0Enabled) |
541 return toV8Fast(element0.release(), info, collection); | 541 return toV8Fast(element0.release(), info, collection); |
542 if (element1Enabled && !!element1) | 542 if (element1Enabled) |
543 return toV8Fast(element1.release(), info, collection); | 543 return toV8Fast(element1.release(), info, collection); |
544 return v8Undefined(); | 544 return v8Undefined(); |
545 } | 545 } |
546 | 546 |
547 static v8::Persistent<v8::FunctionTemplate> ConfigureV8TestInterfaceTemplate(v8:
:Persistent<v8::FunctionTemplate> desc, v8::Isolate* isolate, WrapperWorldType c
urrentWorldType) | 547 static v8::Persistent<v8::FunctionTemplate> ConfigureV8TestInterfaceTemplate(v8:
:Persistent<v8::FunctionTemplate> desc, v8::Isolate* isolate, WrapperWorldType c
urrentWorldType) |
548 { | 548 { |
549 desc->ReadOnlyPrototype(); | 549 desc->ReadOnlyPrototype(); |
550 | 550 |
551 v8::Local<v8::Signature> defaultSignature; | 551 v8::Local<v8::Signature> defaultSignature; |
552 defaultSignature = V8DOMConfiguration::configureTemplate(desc, "TestInterfac
e", v8::Persistent<v8::FunctionTemplate>(), V8TestInterface::internalFieldCount, | 552 defaultSignature = V8DOMConfiguration::configureTemplate(desc, "TestInterfac
e", v8::Persistent<v8::FunctionTemplate>(), V8TestInterface::internalFieldCount, |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
657 return wrapper; | 657 return wrapper; |
658 } | 658 } |
659 void V8TestInterface::derefObject(void* object) | 659 void V8TestInterface::derefObject(void* object) |
660 { | 660 { |
661 static_cast<TestInterface*>(object)->deref(); | 661 static_cast<TestInterface*>(object)->deref(); |
662 } | 662 } |
663 | 663 |
664 } // namespace WebCore | 664 } // namespace WebCore |
665 | 665 |
666 #endif // ENABLE(Condition1) || ENABLE(Condition2) | 666 #endif // ENABLE(Condition1) || ENABLE(Condition2) |
OLD | NEW |