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

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

Issue 23068032: Add constants and primitive type readonly attributes to Python IDL compiler (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Re-reupload Created 7 years, 3 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 5447 matching lines...) Expand 10 before | Expand all | Expand 10 after
5458 {"activityLoggedMethod1", TestObjV8Internal::activityLoggedMethod1MethodCall back, 0, 1}, 5458 {"activityLoggedMethod1", TestObjV8Internal::activityLoggedMethod1MethodCall back, 0, 1},
5459 {"activityLoggedMethod2", TestObjV8Internal::activityLoggedMethod2MethodCall back, TestObjV8Internal::activityLoggedMethod2MethodCallbackForMainWorld, 1}, 5459 {"activityLoggedMethod2", TestObjV8Internal::activityLoggedMethod2MethodCall back, TestObjV8Internal::activityLoggedMethod2MethodCallbackForMainWorld, 1},
5460 {"activityLoggedInIsolatedWorldMethod", TestObjV8Internal::activityLoggedInI solatedWorldMethodMethodCallback, TestObjV8Internal::activityLoggedInIsolatedWor ldMethodMethodCallbackForMainWorld, 1}, 5460 {"activityLoggedInIsolatedWorldMethod", TestObjV8Internal::activityLoggedInI solatedWorldMethodMethodCallback, TestObjV8Internal::activityLoggedInIsolatedWor ldMethodMethodCallbackForMainWorld, 1},
5461 {"overloadedActivityLoggedMethod", TestObjV8Internal::overloadedActivityLogg edMethodMethodCallback, TestObjV8Internal::overloadedActivityLoggedMethodMethodC allbackForMainWorld, 1}, 5461 {"overloadedActivityLoggedMethod", TestObjV8Internal::overloadedActivityLogg edMethodMethodCallback, TestObjV8Internal::overloadedActivityLoggedMethodMethodC allbackForMainWorld, 1},
5462 {"deprecatedMethod", TestObjV8Internal::deprecatedMethodMethodCallback, 0, 0 }, 5462 {"deprecatedMethod", TestObjV8Internal::deprecatedMethodMethodCallback, 0, 0 },
5463 }; 5463 };
5464 5464
5465 static const V8DOMConfiguration::ConstantConfiguration V8TestObjectConstants[] = { 5465 static const V8DOMConfiguration::ConstantConfiguration V8TestObjectConstants[] = {
5466 #if ENABLE(Condition1) 5466 #if ENABLE(Condition1)
5467 {"CONDITIONAL_CONST", 0}, 5467 {"CONDITIONAL_CONST", 0},
5468 #endif 5468 #endif // ENABLE(Condition1)
5469 {"CONST_VALUE_0", 0},
5470 {"CONST_VALUE_1", 1},
5471 {"CONST_VALUE_2", 2},
5472 {"CONST_VALUE_4", 4},
5473 {"CONST_VALUE_8", 8},
5474 {"CONST_VALUE_9", -1},
5475 {"CONST_VALUE_10", "my constant string"},
5476 {"CONST_VALUE_11", 0xffffffff},
5477 {"CONST_VALUE_12", 0x01},
5478 {"CONST_VALUE_13", 0X20},
5479 {"CONST_VALUE_14", 0x1abc},
5480 {"CONST_JAVASCRIPT", 15},
5481 {"DEPRECATED_CONSTANT", 1}, 5469 {"DEPRECATED_CONSTANT", 1},
5482 }; 5470 };
5483 5471
5484 #if ENABLE(Condition1) 5472 #if ENABLE(Condition1)
5485 COMPILE_ASSERT(0 == TestObj::CONDITIONAL_CONST, TestObjEnumCONDITIONAL_CONSTIsWr ongUseDoNotCheckConstants); 5473 COMPILE_ASSERT(0 == TestObj::CONDITIONAL_CONST, TestObjEnumCONDITIONAL_CONSTIsWr ongUseDoNotCheckConstants);
5486 #endif 5474 #endif // ENABLE(Condition1)
5487 COMPILE_ASSERT(0 == TestObj::CONST_VALUE_0, TestObjEnumCONST_VALUE_0IsWrongUseDo NotCheckConstants);
5488 COMPILE_ASSERT(1 == TestObj::CONST_VALUE_1, TestObjEnumCONST_VALUE_1IsWrongUseDo NotCheckConstants);
5489 COMPILE_ASSERT(2 == TestObj::CONST_VALUE_2, TestObjEnumCONST_VALUE_2IsWrongUseDo NotCheckConstants);
5490 COMPILE_ASSERT(4 == TestObj::CONST_VALUE_4, TestObjEnumCONST_VALUE_4IsWrongUseDo NotCheckConstants);
5491 COMPILE_ASSERT(8 == TestObj::CONST_VALUE_8, TestObjEnumCONST_VALUE_8IsWrongUseDo NotCheckConstants);
5492 COMPILE_ASSERT(-1 == TestObj::CONST_VALUE_9, TestObjEnumCONST_VALUE_9IsWrongUseD oNotCheckConstants);
5493 COMPILE_ASSERT("my constant string" == TestObj::CONST_VALUE_10, TestObjEnumCONST _VALUE_10IsWrongUseDoNotCheckConstants);
5494 COMPILE_ASSERT(0xffffffff == TestObj::CONST_VALUE_11, TestObjEnumCONST_VALUE_11I sWrongUseDoNotCheckConstants);
5495 COMPILE_ASSERT(0x01 == TestObj::CONST_VALUE_12, TestObjEnumCONST_VALUE_12IsWrong UseDoNotCheckConstants);
5496 COMPILE_ASSERT(0X20 == TestObj::CONST_VALUE_13, TestObjEnumCONST_VALUE_13IsWrong UseDoNotCheckConstants);
5497 COMPILE_ASSERT(0x1abc == TestObj::CONST_VALUE_14, TestObjEnumCONST_VALUE_14IsWro ngUseDoNotCheckConstants);
5498 COMPILE_ASSERT(15 == TestObj::CONST_IMPL, TestObjEnumCONST_IMPLIsWrongUseDoNotCh eckConstants);
5499 COMPILE_ASSERT(1 == TestObj::DEPRECATED_CONSTANT, TestObjEnumDEPRECATED_CONSTANT IsWrongUseDoNotCheckConstants); 5475 COMPILE_ASSERT(1 == TestObj::DEPRECATED_CONSTANT, TestObjEnumDEPRECATED_CONSTANT IsWrongUseDoNotCheckConstants);
5500 5476
5501 void V8TestObject::constructorCallback(const v8::FunctionCallbackInfo<v8::Value> & args) 5477 void V8TestObject::constructorCallback(const v8::FunctionCallbackInfo<v8::Value> & args)
5502 { 5478 {
5503 TRACE_EVENT_SCOPED_SAMPLING_STATE("Blink", "DOMConstructor"); 5479 TRACE_EVENT_SCOPED_SAMPLING_STATE("Blink", "DOMConstructor");
5504 if (!args.IsConstructCall()) { 5480 if (!args.IsConstructCall()) {
5505 throwTypeError("DOM object constructor cannot be called as a function.", args.GetIsolate()); 5481 throwTypeError("DOM object constructor cannot be called as a function.", args.GetIsolate());
5506 return; 5482 return;
5507 } 5483 }
5508 5484
5509 if (ConstructorMode::current() == ConstructorMode::WrapExistingObject) { 5485 if (ConstructorMode::current() == ConstructorMode::WrapExistingObject) {
5510 args.GetReturnValue().Set(args.Holder()); 5486 args.GetReturnValue().Set(args.Holder());
5511 return; 5487 return;
5512 } 5488 }
5513 5489
5514 TestObjV8Internal::constructor(args); 5490 TestObjV8Internal::constructor(args);
5515 } 5491 }
5516 5492
5517 static v8::Handle<v8::FunctionTemplate> ConfigureV8TestObjectTemplate(v8::Handle <v8::FunctionTemplate> desc, v8::Isolate* isolate, WrapperWorldType currentWorld Type) 5493 static v8::Handle<v8::FunctionTemplate> ConfigureV8TestObjectTemplate(v8::Handle <v8::FunctionTemplate> desc, v8::Isolate* isolate, WrapperWorldType currentWorld Type)
5518 { 5494 {
5519 desc->ReadOnlyPrototype(); 5495 desc->ReadOnlyPrototype();
5520 5496
5521 v8::Local<v8::Signature> defaultSignature; 5497 v8::Local<v8::Signature> defaultSignature;
5522 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(desc, "TestOb ject", V8EventTarget::GetTemplate(isolate, currentWorldType), V8TestObject::inte rnalFieldCount, 5498 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(desc, "TestOb ject", V8EventTarget::GetTemplate(isolate, currentWorldType), V8TestObject::inte rnalFieldCount,
5523 V8TestObjectAttributes, WTF_ARRAY_LENGTH(V8TestObjectAttributes), 5499 V8TestObjectAttributes, WTF_ARRAY_LENGTH(V8TestObjectAttributes),
5524 V8TestObjectMethods, WTF_ARRAY_LENGTH(V8TestObjectMethods), isolate, cur rentWorldType); 5500 V8TestObjectMethods, WTF_ARRAY_LENGTH(V8TestObjectMethods), isolate, cur rentWorldType);
5525 UNUSED_PARAM(defaultSignature); // In some cases, it will not be used. 5501 UNUSED_PARAM(defaultSignature);
5526 desc->SetCallHandler(V8TestObject::constructorCallback); 5502 desc->SetCallHandler(V8TestObject::constructorCallback);
5527 desc->SetLength(1); 5503 desc->SetLength(1);
5528 v8::Local<v8::ObjectTemplate> instance = desc->InstanceTemplate(); 5504 v8::Local<v8::ObjectTemplate> instance = desc->InstanceTemplate();
5529 v8::Local<v8::ObjectTemplate> proto = desc->PrototypeTemplate(); 5505 v8::Local<v8::ObjectTemplate> proto = desc->PrototypeTemplate();
5530 UNUSED_PARAM(instance); // In some cases, it will not be used. 5506 UNUSED_PARAM(instance);
5531 UNUSED_PARAM(proto); // In some cases, it will not be used. 5507 UNUSED_PARAM(proto);
5532 if (RuntimeEnabledFeatures::enabledAtRuntimeAttr1Enabled()) { 5508 if (RuntimeEnabledFeatures::enabledAtRuntimeAttr1Enabled()) {
5533 static const V8DOMConfiguration::AttributeConfiguration attributeConfigu ration =\ 5509 static const V8DOMConfiguration::AttributeConfiguration attributeConfigu ration =\
5534 {"enabledAtRuntimeAttr1", TestObjV8Internal::enabledAtRuntimeAttr1Attrib uteGetterCallback, TestObjV8Internal::enabledAtRuntimeAttr1AttributeSetterCallba ck, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Proper tyAttribute>(v8::None), 0 /* on instance */}; 5510 {"enabledAtRuntimeAttr1", TestObjV8Internal::enabledAtRuntimeAttr1Attrib uteGetterCallback, TestObjV8Internal::enabledAtRuntimeAttr1AttributeSetterCallba ck, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Proper tyAttribute>(v8::None), 0 /* on instance */};
5535 V8DOMConfiguration::installAttribute(instance, proto, attributeConfigura tion, isolate, currentWorldType); 5511 V8DOMConfiguration::installAttribute(instance, proto, attributeConfigura tion, isolate, currentWorldType);
5536 } 5512 }
5537 if (RuntimeEnabledFeatures::featureNameEnabled()) { 5513 if (RuntimeEnabledFeatures::featureNameEnabled()) {
5538 static const V8DOMConfiguration::AttributeConfiguration attributeConfigu ration =\ 5514 static const V8DOMConfiguration::AttributeConfiguration attributeConfigu ration =\
5539 {"enabledAtRuntimeAttr2", TestObjV8Internal::enabledAtRuntimeAttr2Attrib uteGetterCallback, TestObjV8Internal::enabledAtRuntimeAttr2AttributeSetterCallba ck, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Proper tyAttribute>(v8::None), 0 /* on instance */}; 5515 {"enabledAtRuntimeAttr2", TestObjV8Internal::enabledAtRuntimeAttr2Attrib uteGetterCallback, TestObjV8Internal::enabledAtRuntimeAttr2AttributeSetterCallba ck, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Proper tyAttribute>(v8::None), 0 /* on instance */};
5540 V8DOMConfiguration::installAttribute(instance, proto, attributeConfigura tion, isolate, currentWorldType); 5516 V8DOMConfiguration::installAttribute(instance, proto, attributeConfigura tion, isolate, currentWorldType);
5541 } 5517 }
5518 V8DOMConfiguration::installConstants(desc, proto, V8TestObjectConstants, WTF _ARRAY_LENGTH(V8TestObjectConstants), isolate);
5542 desc->InstanceTemplate()->SetIndexedPropertyHandler(TestObjV8Internal::index edPropertyGetterCallback, 0, 0, 0, indexedPropertyEnumerator<TestObj>); 5519 desc->InstanceTemplate()->SetIndexedPropertyHandler(TestObjV8Internal::index edPropertyGetterCallback, 0, 0, 0, indexedPropertyEnumerator<TestObj>);
5543 desc->InstanceTemplate()->SetNamedPropertyHandler(TestObjV8Internal::namedPr opertyGetterCallback, 0, TestObjV8Internal::namedPropertyQueryCallback, 0, TestO bjV8Internal::namedPropertyEnumeratorCallback); 5520 desc->InstanceTemplate()->SetNamedPropertyHandler(TestObjV8Internal::namedPr opertyGetterCallback, 0, TestObjV8Internal::namedPropertyQueryCallback, 0, TestO bjV8Internal::namedPropertyEnumeratorCallback);
5544 5521
5545 // Custom Signature 'voidMethodWithArgs' 5522 // Custom Signature 'voidMethodWithArgs'
5546 const int voidMethodWithArgsArgc = 3; 5523 const int voidMethodWithArgsArgc = 3;
5547 v8::Handle<v8::FunctionTemplate> voidMethodWithArgsArgv[voidMethodWithArgsAr gc] = { v8::Handle<v8::FunctionTemplate>(), v8::Handle<v8::FunctionTemplate>(), V8PerIsolateData::from(isolate)->rawTemplate(&V8TestObject::info, currentWorldTy pe) }; 5524 v8::Handle<v8::FunctionTemplate> voidMethodWithArgsArgv[voidMethodWithArgsAr gc] = { v8::Handle<v8::FunctionTemplate>(), v8::Handle<v8::FunctionTemplate>(), V8PerIsolateData::from(isolate)->rawTemplate(&V8TestObject::info, currentWorldTy pe) };
5548 v8::Handle<v8::Signature> voidMethodWithArgsSignature = v8::Signature::New(d esc, voidMethodWithArgsArgc, voidMethodWithArgsArgv); 5525 v8::Handle<v8::Signature> voidMethodWithArgsSignature = v8::Signature::New(d esc, voidMethodWithArgsArgc, voidMethodWithArgsArgv);
5549 proto->Set(v8::String::NewSymbol("voidMethodWithArgs"), v8::FunctionTemplate ::New(TestObjV8Internal::voidMethodWithArgsMethodCallback, v8Undefined(), voidMe thodWithArgsSignature, 3)); 5526 proto->Set(v8::String::NewSymbol("voidMethodWithArgs"), v8::FunctionTemplate ::New(TestObjV8Internal::voidMethodWithArgsMethodCallback, v8Undefined(), voidMe thodWithArgsSignature, 3));
5550 5527
5551 // Custom Signature 'longMethodWithArgs' 5528 // Custom Signature 'longMethodWithArgs'
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
5607 v8::Handle<v8::FunctionTemplate> convert5Argv[convert5Argc] = { V8PerIsolate Data::from(isolate)->rawTemplate(&V8TestNode::info, currentWorldType) }; 5584 v8::Handle<v8::FunctionTemplate> convert5Argv[convert5Argc] = { V8PerIsolate Data::from(isolate)->rawTemplate(&V8TestNode::info, currentWorldType) };
5608 v8::Handle<v8::Signature> convert5Signature = v8::Signature::New(desc, conve rt5Argc, convert5Argv); 5585 v8::Handle<v8::Signature> convert5Signature = v8::Signature::New(desc, conve rt5Argc, convert5Argv);
5609 proto->Set(v8::String::NewSymbol("convert5"), v8::FunctionTemplate::New(Test ObjV8Internal::convert5MethodCallback, v8Undefined(), convert5Signature, 1)); 5586 proto->Set(v8::String::NewSymbol("convert5"), v8::FunctionTemplate::New(Test ObjV8Internal::convert5MethodCallback, v8Undefined(), convert5Signature, 1));
5610 5587
5611 // Custom Signature 'variadicNodeMethod' 5588 // Custom Signature 'variadicNodeMethod'
5612 const int variadicNodeMethodArgc = 2; 5589 const int variadicNodeMethodArgc = 2;
5613 v8::Handle<v8::FunctionTemplate> variadicNodeMethodArgv[variadicNodeMethodAr gc] = { V8PerIsolateData::from(isolate)->rawTemplate(&V8Node::info, currentWorld Type), V8PerIsolateData::from(isolate)->rawTemplate(&V8Node::info, currentWorldT ype) }; 5590 v8::Handle<v8::FunctionTemplate> variadicNodeMethodArgv[variadicNodeMethodAr gc] = { V8PerIsolateData::from(isolate)->rawTemplate(&V8Node::info, currentWorld Type), V8PerIsolateData::from(isolate)->rawTemplate(&V8Node::info, currentWorldT ype) };
5614 v8::Handle<v8::Signature> variadicNodeMethodSignature = v8::Signature::New(d esc, variadicNodeMethodArgc, variadicNodeMethodArgv); 5591 v8::Handle<v8::Signature> variadicNodeMethodSignature = v8::Signature::New(d esc, variadicNodeMethodArgc, variadicNodeMethodArgv);
5615 proto->Set(v8::String::NewSymbol("variadicNodeMethod"), v8::FunctionTemplate ::New(TestObjV8Internal::variadicNodeMethodMethodCallback, v8Undefined(), variad icNodeMethodSignature, 2)); 5592 proto->Set(v8::String::NewSymbol("variadicNodeMethod"), v8::FunctionTemplate ::New(TestObjV8Internal::variadicNodeMethodMethodCallback, v8Undefined(), variad icNodeMethodSignature, 2));
5616 desc->Set(v8::String::NewSymbol("deprecatedStaticMethod"), v8::FunctionTempl ate::New(TestObjV8Internal::deprecatedStaticMethodMethodCallback, v8Undefined(), v8::Local<v8::Signature>(), 0)); 5593 desc->Set(v8::String::NewSymbol("deprecatedStaticMethod"), v8::FunctionTempl ate::New(TestObjV8Internal::deprecatedStaticMethodMethodCallback, v8Undefined(), v8::Local<v8::Signature>(), 0));
5617 V8DOMConfiguration::installConstants(desc, proto, V8TestObjectConstants, WTF _ARRAY_LENGTH(V8TestObjectConstants), isolate);
5618 5594
5619 // Custom toString template 5595 // Custom toString template
5620 desc->Set(v8::String::NewSymbol("toString"), V8PerIsolateData::current()->to StringTemplate()); 5596 desc->Set(v8::String::NewSymbol("toString"), V8PerIsolateData::current()->to StringTemplate());
5621 return desc; 5597 return desc;
5622 } 5598 }
5623 5599
5624 v8::Handle<v8::FunctionTemplate> V8TestObject::GetTemplate(v8::Isolate* isolate, WrapperWorldType currentWorldType) 5600 v8::Handle<v8::FunctionTemplate> V8TestObject::GetTemplate(v8::Isolate* isolate, WrapperWorldType currentWorldType)
5625 { 5601 {
5626 V8PerIsolateData* data = V8PerIsolateData::from(isolate); 5602 V8PerIsolateData* data = V8PerIsolateData::from(isolate);
5627 V8PerIsolateData::TemplateMap::iterator result = data->templateMap(currentWo rldType).find(&info); 5603 V8PerIsolateData::TemplateMap::iterator result = data->templateMap(currentWo rldType).find(&info);
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
5660 static const V8DOMConfiguration::AttributeConfiguration attributeConf iguration =\ 5636 static const V8DOMConfiguration::AttributeConfiguration attributeConf iguration =\
5661 {"enabledPerContextAttr2", TestObjV8Internal::enabledPerContextAttr2Attr ibuteGetterCallback, TestObjV8Internal::enabledPerContextAttr2AttributeSetterCal lback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Pro pertyAttribute>(v8::None), 0 /* on instance */}; 5637 {"enabledPerContextAttr2", TestObjV8Internal::enabledPerContextAttr2Attr ibuteGetterCallback, TestObjV8Internal::enabledPerContextAttr2AttributeSetterCal lback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Pro pertyAttribute>(v8::None), 0 /* on instance */};
5662 V8DOMConfiguration::installAttribute(instance, proto, attributeConfigura tion, isolate); 5638 V8DOMConfiguration::installAttribute(instance, proto, attributeConfigura tion, isolate);
5663 } 5639 }
5664 } 5640 }
5665 5641
5666 void V8TestObject::installPerContextPrototypeProperties(v8::Handle<v8::Object> p roto, v8::Isolate* isolate) 5642 void V8TestObject::installPerContextPrototypeProperties(v8::Handle<v8::Object> p roto, v8::Isolate* isolate)
5667 { 5643 {
5668 UNUSED_PARAM(proto); 5644 UNUSED_PARAM(proto);
5669 v8::Local<v8::Signature> defaultSignature = v8::Signature::New(GetTemplate(i solate, worldType(isolate))); 5645 v8::Local<v8::Signature> defaultSignature = v8::Signature::New(GetTemplate(i solate, worldType(isolate)));
5670 UNUSED_PARAM(defaultSignature); // In some cases, it will not be used. 5646 UNUSED_PARAM(defaultSignature);
5671 5647
5672 ScriptExecutionContext* context = toScriptExecutionContext(proto->CreationCo ntext()); 5648 ScriptExecutionContext* context = toScriptExecutionContext(proto->CreationCo ntext());
5673 if (context && context->isDocument() && ContextFeatures::enabledPerContextMe thod1Enabled(toDocument(context))) 5649 if (context && context->isDocument() && ContextFeatures::enabledPerContextMe thod1Enabled(toDocument(context)))
5674 proto->Set(v8::String::NewSymbol("enabledPerContextMethod1"), v8::Functi onTemplate::New(TestObjV8Internal::enabledPerContextMethod1MethodCallback, v8Und efined(), defaultSignature, 1)->GetFunction()); 5650 proto->Set(v8::String::NewSymbol("enabledPerContextMethod1"), v8::Functi onTemplate::New(TestObjV8Internal::enabledPerContextMethod1MethodCallback, v8Und efined(), defaultSignature, 1)->GetFunction());
5675 if (context && context->isDocument() && ContextFeatures::featureNameEnabled( toDocument(context))) 5651 if (context && context->isDocument() && ContextFeatures::featureNameEnabled( toDocument(context)))
5676 proto->Set(v8::String::NewSymbol("enabledPerContextMethod2"), v8::Functi onTemplate::New(TestObjV8Internal::enabledPerContextMethod2MethodCallback, v8Und efined(), defaultSignature, 1)->GetFunction()); 5652 proto->Set(v8::String::NewSymbol("enabledPerContextMethod2"), v8::Functi onTemplate::New(TestObjV8Internal::enabledPerContextMethod2MethodCallback, v8Und efined(), defaultSignature, 1)->GetFunction());
5677 } 5653 }
5678 5654
5679 EventTarget* V8TestObject::toEventTarget(v8::Handle<v8::Object> object) 5655 EventTarget* V8TestObject::toEventTarget(v8::Handle<v8::Object> object)
5680 { 5656 {
(...skipping 19 matching lines...) Expand all
5700 V8DOMWrapper::associateObjectWithWrapper<V8TestObject>(impl, &info, wrapper, isolate, WrapperConfiguration::Independent); 5676 V8DOMWrapper::associateObjectWithWrapper<V8TestObject>(impl, &info, wrapper, isolate, WrapperConfiguration::Independent);
5701 return wrapper; 5677 return wrapper;
5702 } 5678 }
5703 5679
5704 void V8TestObject::derefObject(void* object) 5680 void V8TestObject::derefObject(void* object)
5705 { 5681 {
5706 fromInternalPointer(object)->deref(); 5682 fromInternalPointer(object)->deref();
5707 } 5683 }
5708 5684
5709 } // namespace WebCore 5685 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/bindings/tests/results/V8TestNode.cpp ('k') | Source/bindings/tests/results/V8TestOverloadedConstructors.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698