Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(16)

Side by Side Diff: Source/bindings/tests/results/V8TestInterface.cpp

Issue 15841004: [Binding] Support primitive type for union member (Closed) Base URL: https://chromium.googlesource.com/chromium/blink@master
Patch Set: Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 514 matching lines...) Expand 10 before | Expand all | Expand 10 after
525 v8::Handle<v8::Value> V8TestInterface::namedPropertyGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info) 525 v8::Handle<v8::Value> V8TestInterface::namedPropertyGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info)
526 { 526 {
527 if (!info.Holder()->GetRealNamedPropertyInPrototypeChain(name).IsEmpty()) 527 if (!info.Holder()->GetRealNamedPropertyInPrototypeChain(name).IsEmpty())
528 return v8Undefined(); 528 return v8Undefined();
529 if (info.Holder()->HasRealNamedCallbackProperty(name)) 529 if (info.Holder()->HasRealNamedCallbackProperty(name))
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 RefPtr<Node> element0; 536 RefPtr<Node> element0;
537 bool element1Enabled = false;
536 RefPtr<NodeList> element1; 538 RefPtr<NodeList> element1;
537 collection->getItem(propertyName, element0, element1); 539 collection->getItem(propertyName, element0Enabled, element0, element1Enabled , element1);
538 if (!!element0) 540 if (element0Enabled && !!element0)
kojih 2013/05/23 09:23:09 (copied from https://codereview.chromium.org/15724
539 return toV8Fast(element0.release(), info, collection); 541 return toV8Fast(element0.release(), info, collection);
540 if (!!element1) 542 if (element1Enabled && !!element1)
541 return toV8Fast(element1.release(), info, collection); 543 return toV8Fast(element1.release(), info, collection);
542 return v8Undefined(); 544 return v8Undefined();
543 } 545 }
544 546
545 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)
546 { 548 {
547 desc->ReadOnlyPrototype(); 549 desc->ReadOnlyPrototype();
548 550
549 v8::Local<v8::Signature> defaultSignature; 551 v8::Local<v8::Signature> defaultSignature;
550 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
655 return wrapper; 657 return wrapper;
656 } 658 }
657 void V8TestInterface::derefObject(void* object) 659 void V8TestInterface::derefObject(void* object)
658 { 660 {
659 static_cast<TestInterface*>(object)->deref(); 661 static_cast<TestInterface*>(object)->deref();
660 } 662 }
661 663
662 } // namespace WebCore 664 } // namespace WebCore
663 665
664 #endif // ENABLE(Condition1) || ENABLE(Condition2) 666 #endif // ENABLE(Condition1) || ENABLE(Condition2)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698