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

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

Issue 18778002: Inherit EventTarget interface instead of duplicating its code (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase on master Created 7 years, 5 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 488 matching lines...) Expand 10 before | Expand all | Expand 10 after
499 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, hello, args[0]); 499 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, hello, args[0]);
500 if (args.Length() <= 1 || !args[1]->IsFunction()) { 500 if (args.Length() <= 1 || !args[1]->IsFunction()) {
501 throwTypeError(0, args.GetIsolate()); 501 throwTypeError(0, args.GetIsolate());
502 return; 502 return;
503 } 503 }
504 RefPtr<TestCallback> testCallback = V8TestCallback::create(args[1], getScrip tExecutionContext()); 504 RefPtr<TestCallback> testCallback = V8TestCallback::create(args[1], getScrip tExecutionContext());
505 505
506 RefPtr<TestTypedefs> impl = TestTypedefs::create(hello, testCallback); 506 RefPtr<TestTypedefs> impl = TestTypedefs::create(hello, testCallback);
507 v8::Handle<v8::Object> wrapper = args.Holder(); 507 v8::Handle<v8::Object> wrapper = args.Holder();
508 508
509 V8DOMWrapper::associateObjectWithWrapper(impl.release(), &V8TestTypedefs::in fo, wrapper, args.GetIsolate(), WrapperConfiguration::Dependent); 509 V8DOMWrapper::associateObjectWithWrapper<V8TestTypedefs>(impl.release(), &V8 TestTypedefs::info, wrapper, args.GetIsolate(), WrapperConfiguration::Dependent) ;
510 args.GetReturnValue().Set(wrapper); 510 args.GetReturnValue().Set(wrapper);
511 } 511 }
512 512
513 } // namespace TestTypedefsV8Internal 513 } // namespace TestTypedefsV8Internal
514 514
515 static const V8DOMConfiguration::BatchedAttribute V8TestTypedefsAttrs[] = { 515 static const V8DOMConfiguration::BatchedAttribute V8TestTypedefsAttrs[] = {
516 // Attribute 'unsignedLongLongAttr' 516 // Attribute 'unsignedLongLongAttr'
517 {"unsignedLongLongAttr", TestTypedefsV8Internal::unsignedLongLongAttrAttrGet terCallback, TestTypedefsV8Internal::unsignedLongLongAttrAttrSetterCallback, 0, 0, 0 /* no data */, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8: :PropertyAttribute>(v8::None), 0 /* on instance */}, 517 {"unsignedLongLongAttr", TestTypedefsV8Internal::unsignedLongLongAttrAttrGet terCallback, TestTypedefsV8Internal::unsignedLongLongAttrAttrSetterCallback, 0, 0, 0 /* no data */, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8: :PropertyAttribute>(v8::None), 0 /* on instance */},
518 // Attribute 'immutableSerializedScriptValue' 518 // Attribute 'immutableSerializedScriptValue'
519 {"immutableSerializedScriptValue", TestTypedefsV8Internal::immutableSerializ edScriptValueAttrGetterCallback, TestTypedefsV8Internal::immutableSerializedScri ptValueAttrSetterCallback, 0, 0, 0 /* no data */, static_cast<v8::AccessControl> (v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */ }, 519 {"immutableSerializedScriptValue", TestTypedefsV8Internal::immutableSerializ edScriptValueAttrGetterCallback, TestTypedefsV8Internal::immutableSerializedScri ptValueAttrSetterCallback, 0, 0, 0 /* no data */, static_cast<v8::AccessControl> (v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */ },
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
602 { 602 {
603 return V8PerIsolateData::from(isolate)->hasInstance(&info, value, MainWorld) 603 return V8PerIsolateData::from(isolate)->hasInstance(&info, value, MainWorld)
604 || V8PerIsolateData::from(isolate)->hasInstance(&info, value, IsolatedWo rld) 604 || V8PerIsolateData::from(isolate)->hasInstance(&info, value, IsolatedWo rld)
605 || V8PerIsolateData::from(isolate)->hasInstance(&info, value, WorkerWorl d); 605 || V8PerIsolateData::from(isolate)->hasInstance(&info, value, WorkerWorl d);
606 } 606 }
607 607
608 608
609 v8::Handle<v8::Object> V8TestTypedefs::createWrapper(PassRefPtr<TestTypedefs> im pl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate) 609 v8::Handle<v8::Object> V8TestTypedefs::createWrapper(PassRefPtr<TestTypedefs> im pl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate)
610 { 610 {
611 ASSERT(impl.get()); 611 ASSERT(impl.get());
612 ASSERT(DOMDataStore::getWrapper(impl.get(), isolate).IsEmpty()); 612 ASSERT(DOMDataStore::getWrapper<V8TestTypedefs>(impl.get(), isolate).IsEmpty ());
613 613
614 v8::Handle<v8::Object> wrapper = V8DOMWrapper::createWrapper(creationContext , &info, impl.get(), isolate); 614 v8::Handle<v8::Object> wrapper = V8DOMWrapper::createWrapper(creationContext , &info, toInternalPointer(impl.get()), isolate);
615 if (UNLIKELY(wrapper.IsEmpty())) 615 if (UNLIKELY(wrapper.IsEmpty()))
616 return wrapper; 616 return wrapper;
617 installPerContextProperties(wrapper, impl.get(), isolate); 617 installPerContextProperties(wrapper, impl.get(), isolate);
618 V8DOMWrapper::associateObjectWithWrapper(impl, &info, wrapper, isolate, Wrap perConfiguration::Independent); 618 V8DOMWrapper::associateObjectWithWrapper<V8TestTypedefs>(impl, &info, wrappe r, isolate, WrapperConfiguration::Independent);
619 return wrapper; 619 return wrapper;
620 } 620 }
621 void V8TestTypedefs::derefObject(void* object) 621 void V8TestTypedefs::derefObject(void* object)
622 { 622 {
623 static_cast<TestTypedefs*>(object)->deref(); 623 fromInternalPointer(object)->deref();
624 } 624 }
625 625
626 } // namespace WebCore 626 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/bindings/tests/results/V8TestTypedefs.h ('k') | Source/bindings/v8/CustomElementWrapper.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698