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

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

Issue 24867002: Add static attributes to IDL compiler (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Revised Created 7 years, 2 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 5461 matching lines...) Expand 10 before | Expand all | Expand 10 after
5472 v8::Handle<v8::FunctionTemplate> convert5Argv[convert5Argc] = { V8PerIsolate Data::from(isolate)->rawTemplate(&V8TestNode::info, currentWorldType) }; 5472 v8::Handle<v8::FunctionTemplate> convert5Argv[convert5Argc] = { V8PerIsolate Data::from(isolate)->rawTemplate(&V8TestNode::info, currentWorldType) };
5473 v8::Handle<v8::Signature> convert5Signature = v8::Signature::New(desc, conve rt5Argc, convert5Argv); 5473 v8::Handle<v8::Signature> convert5Signature = v8::Signature::New(desc, conve rt5Argc, convert5Argv);
5474 proto->Set(v8::String::NewSymbol("convert5"), v8::FunctionTemplate::New(Test ObjV8Internal::convert5MethodCallback, v8Undefined(), convert5Signature, 1)); 5474 proto->Set(v8::String::NewSymbol("convert5"), v8::FunctionTemplate::New(Test ObjV8Internal::convert5MethodCallback, v8Undefined(), convert5Signature, 1));
5475 5475
5476 // Custom Signature 'variadicNodeMethod' 5476 // Custom Signature 'variadicNodeMethod'
5477 const int variadicNodeMethodArgc = 2; 5477 const int variadicNodeMethodArgc = 2;
5478 v8::Handle<v8::FunctionTemplate> variadicNodeMethodArgv[variadicNodeMethodAr gc] = { V8PerIsolateData::from(isolate)->rawTemplate(&V8Node::info, currentWorld Type), V8PerIsolateData::from(isolate)->rawTemplate(&V8Node::info, currentWorldT ype) }; 5478 v8::Handle<v8::FunctionTemplate> variadicNodeMethodArgv[variadicNodeMethodAr gc] = { V8PerIsolateData::from(isolate)->rawTemplate(&V8Node::info, currentWorld Type), V8PerIsolateData::from(isolate)->rawTemplate(&V8Node::info, currentWorldT ype) };
5479 v8::Handle<v8::Signature> variadicNodeMethodSignature = v8::Signature::New(d esc, variadicNodeMethodArgc, variadicNodeMethodArgv); 5479 v8::Handle<v8::Signature> variadicNodeMethodSignature = v8::Signature::New(d esc, variadicNodeMethodArgc, variadicNodeMethodArgv);
5480 proto->Set(v8::String::NewSymbol("variadicNodeMethod"), v8::FunctionTemplate ::New(TestObjV8Internal::variadicNodeMethodMethodCallback, v8Undefined(), variad icNodeMethodSignature, 2)); 5480 proto->Set(v8::String::NewSymbol("variadicNodeMethod"), v8::FunctionTemplate ::New(TestObjV8Internal::variadicNodeMethodMethodCallback, v8Undefined(), variad icNodeMethodSignature, 2));
5481 desc->Set(v8::String::NewSymbol("deprecatedStaticMethod"), v8::FunctionTempl ate::New(TestObjV8Internal::deprecatedStaticMethodMethodCallback, v8Undefined(), v8::Local<v8::Signature>(), 0)); 5481 desc->Set(v8::String::NewSymbol("deprecatedStaticMethod"), v8::FunctionTempl ate::New(TestObjV8Internal::deprecatedStaticMethodMethodCallback, v8Undefined(), v8::Local<v8::Signature>(), 0));
5482 // Attribute 'staticReadOnlyLongAttr' (Extended Attributes: '')
5483 desc->SetNativeDataProperty(v8::String::NewSymbol("staticReadOnlyLongAttr"), TestObjV8Internal::staticReadOnlyLongAttrAttributeGetterCallback, 0, v8::Extern al::New(0), static_cast<v8::PropertyAttribute>(v8::None), v8::Handle<v8::Accesso rSignature>(), static_cast<v8::AccessControl>(v8::DEFAULT)); 5482 desc->SetNativeDataProperty(v8::String::NewSymbol("staticReadOnlyLongAttr"), TestObjV8Internal::staticReadOnlyLongAttrAttributeGetterCallback, 0, v8::Extern al::New(0), static_cast<v8::PropertyAttribute>(v8::None), v8::Handle<v8::Accesso rSignature>(), static_cast<v8::AccessControl>(v8::DEFAULT));
5484 // Attribute 'staticStringAttr' (Extended Attributes: '')
5485 desc->SetNativeDataProperty(v8::String::NewSymbol("staticStringAttr"), TestO bjV8Internal::staticStringAttrAttributeGetterCallback, TestObjV8Internal::static StringAttrAttributeSetterCallback, v8::External::New(0), static_cast<v8::Propert yAttribute>(v8::None), v8::Handle<v8::AccessorSignature>(), static_cast<v8::Acce ssControl>(v8::DEFAULT)); 5483 desc->SetNativeDataProperty(v8::String::NewSymbol("staticStringAttr"), TestO bjV8Internal::staticStringAttrAttributeGetterCallback, TestObjV8Internal::static StringAttrAttributeSetterCallback, v8::External::New(0), static_cast<v8::Propert yAttribute>(v8::None), v8::Handle<v8::AccessorSignature>(), static_cast<v8::Acce ssControl>(v8::DEFAULT));
5486 // Attribute 'TestSubObj' (Extended Attributes: '')
5487 desc->SetNativeDataProperty(v8::String::NewSymbol("TestSubObj"), TestObjV8In ternal::TestObjConstructorGetter, 0, v8::External::New(&V8TestSubObj::info), sta tic_cast<v8::PropertyAttribute>(v8::None | v8::DontEnum), v8::Handle<v8::Accesso rSignature>(), static_cast<v8::AccessControl>(v8::DEFAULT)); 5484 desc->SetNativeDataProperty(v8::String::NewSymbol("TestSubObj"), TestObjV8In ternal::TestObjConstructorGetter, 0, v8::External::New(&V8TestSubObj::info), sta tic_cast<v8::PropertyAttribute>(v8::None | v8::DontEnum), v8::Handle<v8::Accesso rSignature>(), static_cast<v8::AccessControl>(v8::DEFAULT));
5488 // Attribute 'deprecatedStaticReadOnlyAttr' (Extended Attributes: 'Deprecate As')
5489 desc->SetNativeDataProperty(v8::String::NewSymbol("deprecatedStaticReadOnlyA ttr"), TestObjV8Internal::deprecatedStaticReadOnlyAttrAttributeGetterCallback, 0 , v8::External::New(0), static_cast<v8::PropertyAttribute>(v8::None), v8::Handle <v8::AccessorSignature>(), static_cast<v8::AccessControl>(v8::DEFAULT)); 5485 desc->SetNativeDataProperty(v8::String::NewSymbol("deprecatedStaticReadOnlyA ttr"), TestObjV8Internal::deprecatedStaticReadOnlyAttrAttributeGetterCallback, 0 , v8::External::New(0), static_cast<v8::PropertyAttribute>(v8::None), v8::Handle <v8::AccessorSignature>(), static_cast<v8::AccessControl>(v8::DEFAULT));
5490 // Attribute 'deprecatedStaticAttr' (Extended Attributes: 'DeprecateAs')
5491 desc->SetNativeDataProperty(v8::String::NewSymbol("deprecatedStaticAttr"), T estObjV8Internal::deprecatedStaticAttrAttributeGetterCallback, TestObjV8Internal ::deprecatedStaticAttrAttributeSetterCallback, v8::External::New(0), static_cast <v8::PropertyAttribute>(v8::None), v8::Handle<v8::AccessorSignature>(), static_c ast<v8::AccessControl>(v8::DEFAULT)); 5486 desc->SetNativeDataProperty(v8::String::NewSymbol("deprecatedStaticAttr"), T estObjV8Internal::deprecatedStaticAttrAttributeGetterCallback, TestObjV8Internal ::deprecatedStaticAttrAttributeSetterCallback, v8::External::New(0), static_cast <v8::PropertyAttribute>(v8::None), v8::Handle<v8::AccessorSignature>(), static_c ast<v8::AccessControl>(v8::DEFAULT));
5492 5487
5493 // Custom toString template 5488 // Custom toString template
5494 desc->Set(v8::String::NewSymbol("toString"), V8PerIsolateData::current()->to StringTemplate()); 5489 desc->Set(v8::String::NewSymbol("toString"), V8PerIsolateData::current()->to StringTemplate());
5495 return desc; 5490 return desc;
5496 } 5491 }
5497 5492
5498 v8::Handle<v8::FunctionTemplate> V8TestObject::GetTemplate(v8::Isolate* isolate, WrapperWorldType currentWorldType) 5493 v8::Handle<v8::FunctionTemplate> V8TestObject::GetTemplate(v8::Isolate* isolate, WrapperWorldType currentWorldType)
5499 { 5494 {
5500 V8PerIsolateData* data = V8PerIsolateData::from(isolate); 5495 V8PerIsolateData* data = V8PerIsolateData::from(isolate);
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
5567 V8DOMWrapper::associateObjectWithWrapper<V8TestObject>(impl, &info, wrapper, isolate, WrapperConfiguration::Independent); 5562 V8DOMWrapper::associateObjectWithWrapper<V8TestObject>(impl, &info, wrapper, isolate, WrapperConfiguration::Independent);
5568 return wrapper; 5563 return wrapper;
5569 } 5564 }
5570 5565
5571 void V8TestObject::derefObject(void* object) 5566 void V8TestObject::derefObject(void* object)
5572 { 5567 {
5573 fromInternalPointer(object)->deref(); 5568 fromInternalPointer(object)->deref();
5574 } 5569 }
5575 5570
5576 } // namespace WebCore 5571 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/bindings/tests/results/V8TestInterface.cpp ('k') | Source/bindings/tests/results/V8TestObjectPython.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698