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

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

Issue 16836015: Rebaseline bindings test results after r152270 (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 6 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 | Annotate | Revision Log
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 529 matching lines...) Expand 10 before | Expand all | Expand 10 after
540 } 540 }
541 541
542 if (ConstructorMode::current() == ConstructorMode::WrapExistingObject) { 542 if (ConstructorMode::current() == ConstructorMode::WrapExistingObject) {
543 args.GetReturnValue().Set(args.Holder()); 543 args.GetReturnValue().Set(args.Holder());
544 return; 544 return;
545 } 545 }
546 546
547 TestInterfaceV8Internal::constructor(args); 547 TestInterfaceV8Internal::constructor(args);
548 } 548 }
549 549
550 v8::Handle<v8::Value> V8TestInterface::namedPropertyGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info) 550 void V8TestInterface::namedPropertyGetter(v8::Local<v8::String> name, const v8:: PropertyCallbackInfo<v8::Value>& info)
551 { 551 {
552 if (!info.Holder()->GetRealNamedPropertyInPrototypeChain(name).IsEmpty()) 552 if (!info.Holder()->GetRealNamedPropertyInPrototypeChain(name).IsEmpty())
553 return v8Undefined(); 553 return;
554 if (info.Holder()->HasRealNamedCallbackProperty(name)) 554 if (info.Holder()->HasRealNamedCallbackProperty(name))
555 return v8Undefined(); 555 return;
556 if (info.Holder()->HasRealNamedProperty(name)) 556 if (info.Holder()->HasRealNamedProperty(name))
557 return v8Undefined(); 557 return;
558 558
559 ASSERT(V8DOMWrapper::maybeDOMWrapper(info.Holder())); 559 ASSERT(V8DOMWrapper::maybeDOMWrapper(info.Holder()));
560 TestInterface* collection = toNative(info.Holder()); 560 TestInterface* collection = toNative(info.Holder());
561 AtomicString propertyName = toWebCoreAtomicString(name); 561 AtomicString propertyName = toWebCoreAtomicString(name);
562 bool element0Enabled = false; 562 bool element0Enabled = false;
563 RefPtr<Node> element0; 563 RefPtr<Node> element0;
564 bool element1Enabled = false; 564 bool element1Enabled = false;
565 RefPtr<NodeList> element1; 565 RefPtr<NodeList> element1;
566 collection->getItem(propertyName, element0Enabled, element0, element1Enabled , element1); 566 collection->getItem(propertyName, element0Enabled, element0, element1Enabled , element1);
567 if (element0Enabled) 567 if (element0Enabled) {
568 return toV8Fast(element0.release(), info, collection); 568 v8SetReturnValue(info, toV8Fast(element0.release(), info, collection));
569 if (element1Enabled) 569 return;
570 return toV8Fast(element1.release(), info, collection); 570 }
571 return v8Undefined(); 571
572 if (element1Enabled) {
573 v8SetReturnValue(info, toV8Fast(element1.release(), info, collection));
574 return;
575 }
576
577 return;
572 } 578 }
573 579
574 v8::Handle<v8::Array> V8TestInterface::namedPropertyEnumerator(const v8::Accesso rInfo& info) 580 void V8TestInterface::namedPropertyEnumerator(const v8::PropertyCallbackInfo<v8: :Array>& info)
575 { 581 {
576 ExceptionCode ec = 0; 582 ExceptionCode ec = 0;
577 TestInterface* collection = toNative(info.Holder()); 583 TestInterface* collection = toNative(info.Holder());
578 Vector<String> names; 584 Vector<String> names;
579 collection->namedPropertyEnumerator(names, ec); 585 collection->namedPropertyEnumerator(names, ec);
580 if (ec) { 586 if (ec) {
581 setDOMException(ec, info.GetIsolate()); 587 setDOMException(ec, info.GetIsolate());
582 return v8::Handle<v8::Array>(); 588 return;
583 } 589 }
584 v8::Handle<v8::Array> v8names = v8::Array::New(names.size()); 590 v8::Handle<v8::Array> v8names = v8::Array::New(names.size());
585 for (size_t i = 0; i < names.size(); ++i) 591 for (size_t i = 0; i < names.size(); ++i)
586 v8names->Set(v8Integer(i, info.GetIsolate()), v8String(names[i], info.Ge tIsolate())); 592 v8names->Set(v8Integer(i, info.GetIsolate()), v8String(names[i], info.Ge tIsolate()));
587 return v8names; 593 v8SetReturnValue(info, v8names);
588 } 594 }
589 595
590 static v8::Handle<v8::FunctionTemplate> ConfigureV8TestInterfaceTemplate(v8::Han dle<v8::FunctionTemplate> desc, v8::Isolate* isolate, WrapperWorldType currentWo rldType) 596 static v8::Handle<v8::FunctionTemplate> ConfigureV8TestInterfaceTemplate(v8::Han dle<v8::FunctionTemplate> desc, v8::Isolate* isolate, WrapperWorldType currentWo rldType)
591 { 597 {
592 desc->ReadOnlyPrototype(); 598 desc->ReadOnlyPrototype();
593 599
594 v8::Local<v8::Signature> defaultSignature; 600 v8::Local<v8::Signature> defaultSignature;
595 defaultSignature = V8DOMConfiguration::configureTemplate(desc, "TestInterfac e", v8::Local<v8::FunctionTemplate>(), V8TestInterface::internalFieldCount, 601 defaultSignature = V8DOMConfiguration::configureTemplate(desc, "TestInterfac e", v8::Local<v8::FunctionTemplate>(), V8TestInterface::internalFieldCount,
596 V8TestInterfaceAttrs, WTF_ARRAY_LENGTH(V8TestInterfaceAttrs), 602 V8TestInterfaceAttrs, WTF_ARRAY_LENGTH(V8TestInterfaceAttrs),
597 V8TestInterfaceMethods, WTF_ARRAY_LENGTH(V8TestInterfaceMethods), isolat e, currentWorldType); 603 V8TestInterfaceMethods, WTF_ARRAY_LENGTH(V8TestInterfaceMethods), isolat e, currentWorldType);
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
700 return wrapper; 706 return wrapper;
701 } 707 }
702 void V8TestInterface::derefObject(void* object) 708 void V8TestInterface::derefObject(void* object)
703 { 709 {
704 static_cast<TestInterface*>(object)->deref(); 710 static_cast<TestInterface*>(object)->deref();
705 } 711 }
706 712
707 } // namespace WebCore 713 } // namespace WebCore
708 714
709 #endif // ENABLE(Condition1) || ENABLE(Condition2) 715 #endif // ENABLE(Condition1) || ENABLE(Condition2)
OLDNEW
« no previous file with comments | « Source/bindings/tests/results/V8TestInterface.h ('k') | Source/bindings/tests/results/V8TestObject.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698