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

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: Fix the regressions 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 476 matching lines...) Expand 10 before | Expand all | Expand 10 after
487 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, hello, args[0]); 487 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, hello, args[0]);
488 if (args.Length() <= 1 || !args[1]->IsFunction()) { 488 if (args.Length() <= 1 || !args[1]->IsFunction()) {
489 throwTypeError(0, args.GetIsolate()); 489 throwTypeError(0, args.GetIsolate());
490 return; 490 return;
491 } 491 }
492 RefPtr<TestCallback> testCallback = V8TestCallback::create(args[1], getScrip tExecutionContext()); 492 RefPtr<TestCallback> testCallback = V8TestCallback::create(args[1], getScrip tExecutionContext());
493 493
494 RefPtr<TestTypedefs> impl = TestTypedefs::create(hello, testCallback); 494 RefPtr<TestTypedefs> impl = TestTypedefs::create(hello, testCallback);
495 v8::Handle<v8::Object> wrapper = args.Holder(); 495 v8::Handle<v8::Object> wrapper = args.Holder();
496 496
497 V8DOMWrapper::associateObjectWithWrapper(impl.release(), &V8TestTypedefs::in fo, wrapper, args.GetIsolate(), WrapperConfiguration::Dependent); 497 V8DOMWrapper::associateObjectWithWrapper<V8TestTypedefs>(impl.release(), &V8 TestTypedefs::info, wrapper, args.GetIsolate(), WrapperConfiguration::Dependent) ;
498 args.GetReturnValue().Set(wrapper); 498 args.GetReturnValue().Set(wrapper);
499 } 499 }
500 500
501 } // namespace TestTypedefsV8Internal 501 } // namespace TestTypedefsV8Internal
502 502
503 static const V8DOMConfiguration::BatchedAttribute V8TestTypedefsAttrs[] = { 503 static const V8DOMConfiguration::BatchedAttribute V8TestTypedefsAttrs[] = {
504 // Attribute 'unsignedLongLongAttr' 504 // Attribute 'unsignedLongLongAttr'
505 {"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 */}, 505 {"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 */},
506 // Attribute 'immutableSerializedScriptValue' 506 // Attribute 'immutableSerializedScriptValue'
507 {"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 */ }, 507 {"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
590 { 590 {
591 return V8PerIsolateData::from(isolate)->hasInstance(&info, value, MainWorld) 591 return V8PerIsolateData::from(isolate)->hasInstance(&info, value, MainWorld)
592 || V8PerIsolateData::from(isolate)->hasInstance(&info, value, IsolatedWo rld) 592 || V8PerIsolateData::from(isolate)->hasInstance(&info, value, IsolatedWo rld)
593 || V8PerIsolateData::from(isolate)->hasInstance(&info, value, WorkerWorl d); 593 || V8PerIsolateData::from(isolate)->hasInstance(&info, value, WorkerWorl d);
594 } 594 }
595 595
596 596
597 v8::Handle<v8::Object> V8TestTypedefs::createWrapper(PassRefPtr<TestTypedefs> im pl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate) 597 v8::Handle<v8::Object> V8TestTypedefs::createWrapper(PassRefPtr<TestTypedefs> im pl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate)
598 { 598 {
599 ASSERT(impl.get()); 599 ASSERT(impl.get());
600 ASSERT(DOMDataStore::getWrapper(impl.get(), isolate).IsEmpty()); 600 ASSERT(DOMDataStore::getWrapper<V8TestTypedefs>(impl.get(), isolate).IsEmpty ());
601 601
602 v8::Handle<v8::Object> wrapper = V8DOMWrapper::createWrapper(creationContext , &info, impl.get(), isolate); 602 v8::Handle<v8::Object> wrapper = V8DOMWrapper::createWrapper(creationContext , &info, toWrappedType(impl.get()), isolate);
603 if (UNLIKELY(wrapper.IsEmpty())) 603 if (UNLIKELY(wrapper.IsEmpty()))
604 return wrapper; 604 return wrapper;
605 installPerContextProperties(wrapper, impl.get(), isolate); 605 installPerContextProperties(wrapper, impl.get(), isolate);
606 V8DOMWrapper::associateObjectWithWrapper(impl, &info, wrapper, isolate, Wrap perConfiguration::Independent); 606 V8DOMWrapper::associateObjectWithWrapper<V8TestTypedefs>(impl, &info, wrappe r, isolate, WrapperConfiguration::Independent);
607 return wrapper; 607 return wrapper;
608 } 608 }
609 void V8TestTypedefs::derefObject(void* object) 609 void V8TestTypedefs::derefObject(void* object)
610 { 610 {
611 static_cast<TestTypedefs*>(object)->deref(); 611 fromWrappedType(object)->deref();
612 } 612 }
613 613
614 } // namespace WebCore 614 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698