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

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

Issue 24867002: Add static attributes to IDL compiler (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Revised, fix Perl 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 1129 matching lines...) Expand 10 before | Expand all | Expand 10 after
1140 // Custom Signature 'supplementalMethod2' 1140 // Custom Signature 'supplementalMethod2'
1141 const int supplementalMethod2Argc = 2; 1141 const int supplementalMethod2Argc = 2;
1142 v8::Handle<v8::FunctionTemplate> supplementalMethod2Argv[supplementalMethod2 Argc] = { v8::Handle<v8::FunctionTemplate>(), V8PerIsolateData::from(isolate)->r awTemplate(&V8TestObject::info, currentWorldType) }; 1142 v8::Handle<v8::FunctionTemplate> supplementalMethod2Argv[supplementalMethod2 Argc] = { v8::Handle<v8::FunctionTemplate>(), V8PerIsolateData::from(isolate)->r awTemplate(&V8TestObject::info, currentWorldType) };
1143 v8::Handle<v8::Signature> supplementalMethod2Signature = v8::Signature::New( desc, supplementalMethod2Argc, supplementalMethod2Argv); 1143 v8::Handle<v8::Signature> supplementalMethod2Signature = v8::Signature::New( desc, supplementalMethod2Argc, supplementalMethod2Argv);
1144 proto->Set(v8::String::NewSymbol("supplementalMethod2"), v8::FunctionTemplat e::New(TestInterfaceV8Internal::supplementalMethod2MethodCallback, v8Undefined() , supplementalMethod2Signature, 2)); 1144 proto->Set(v8::String::NewSymbol("supplementalMethod2"), v8::FunctionTemplat e::New(TestInterfaceV8Internal::supplementalMethod2MethodCallback, v8Undefined() , supplementalMethod2Signature, 2));
1145 #endif // ENABLE(Condition11) || ENABLE(Condition12) 1145 #endif // ENABLE(Condition11) || ENABLE(Condition12)
1146 #if ENABLE(Condition11) || ENABLE(Condition12) 1146 #if ENABLE(Condition11) || ENABLE(Condition12)
1147 desc->Set(v8::String::NewSymbol("supplementalMethod4"), v8::FunctionTemplate ::New(TestInterfaceV8Internal::supplementalMethod4MethodCallback, v8Undefined(), v8::Local<v8::Signature>(), 0)); 1147 desc->Set(v8::String::NewSymbol("supplementalMethod4"), v8::FunctionTemplate ::New(TestInterfaceV8Internal::supplementalMethod4MethodCallback, v8Undefined(), v8::Local<v8::Signature>(), 0));
1148 #endif // ENABLE(Condition11) || ENABLE(Condition12) 1148 #endif // ENABLE(Condition11) || ENABLE(Condition12)
1149 #if ENABLE(Condition22) || ENABLE(Condition23) 1149 #if ENABLE(Condition22) || ENABLE(Condition23)
1150 // Attribute 'implementsStaticReadOnlyAttr' (Extended Attributes: 'Condition al ImplementedBy')
1151 desc->SetNativeDataProperty(v8::String::NewSymbol("implementsStaticReadOnlyA ttr"), TestInterfaceV8Internal::implementsStaticReadOnlyAttrAttributeGetterCallb ack, 0, v8::External::New(0), static_cast<v8::PropertyAttribute>(v8::None), v8:: Handle<v8::AccessorSignature>(), static_cast<v8::AccessControl>(v8::DEFAULT)); 1150 desc->SetNativeDataProperty(v8::String::NewSymbol("implementsStaticReadOnlyA ttr"), TestInterfaceV8Internal::implementsStaticReadOnlyAttrAttributeGetterCallb ack, 0, v8::External::New(0), static_cast<v8::PropertyAttribute>(v8::None), v8:: Handle<v8::AccessorSignature>(), static_cast<v8::AccessControl>(v8::DEFAULT));
1152 #endif // ENABLE(Condition22) || ENABLE(Condition23) 1151 #endif // ENABLE(Condition22) || ENABLE(Condition23)
1153 #if ENABLE(Condition22) || ENABLE(Condition23) 1152 #if ENABLE(Condition22) || ENABLE(Condition23)
1154 // Attribute 'implementsStaticAttr' (Extended Attributes: 'Conditional Imple mentedBy')
1155 desc->SetNativeDataProperty(v8::String::NewSymbol("implementsStaticAttr"), T estInterfaceV8Internal::implementsStaticAttrAttributeGetterCallback, TestInterfa ceV8Internal::implementsStaticAttrAttributeSetterCallback, v8::External::New(0), static_cast<v8::PropertyAttribute>(v8::None), v8::Handle<v8::AccessorSignature> (), static_cast<v8::AccessControl>(v8::DEFAULT)); 1153 desc->SetNativeDataProperty(v8::String::NewSymbol("implementsStaticAttr"), T estInterfaceV8Internal::implementsStaticAttrAttributeGetterCallback, TestInterfa ceV8Internal::implementsStaticAttrAttributeSetterCallback, v8::External::New(0), static_cast<v8::PropertyAttribute>(v8::None), v8::Handle<v8::AccessorSignature> (), static_cast<v8::AccessControl>(v8::DEFAULT));
1156 #endif // ENABLE(Condition22) || ENABLE(Condition23) 1154 #endif // ENABLE(Condition22) || ENABLE(Condition23)
1157 #if ENABLE(Condition11) || ENABLE(Condition12) 1155 #if ENABLE(Condition11) || ENABLE(Condition12)
1158 // Attribute 'supplementalStaticReadOnlyAttr' (Extended Attributes: 'Conditi onal ImplementedBy')
1159 desc->SetNativeDataProperty(v8::String::NewSymbol("supplementalStaticReadOnl yAttr"), TestInterfaceV8Internal::supplementalStaticReadOnlyAttrAttributeGetterC allback, 0, v8::External::New(0), static_cast<v8::PropertyAttribute>(v8::None), v8::Handle<v8::AccessorSignature>(), static_cast<v8::AccessControl>(v8::DEFAULT) ); 1156 desc->SetNativeDataProperty(v8::String::NewSymbol("supplementalStaticReadOnl yAttr"), TestInterfaceV8Internal::supplementalStaticReadOnlyAttrAttributeGetterC allback, 0, v8::External::New(0), static_cast<v8::PropertyAttribute>(v8::None), v8::Handle<v8::AccessorSignature>(), static_cast<v8::AccessControl>(v8::DEFAULT) );
1160 #endif // ENABLE(Condition11) || ENABLE(Condition12) 1157 #endif // ENABLE(Condition11) || ENABLE(Condition12)
1161 #if ENABLE(Condition11) || ENABLE(Condition12) 1158 #if ENABLE(Condition11) || ENABLE(Condition12)
1162 // Attribute 'supplementalStaticAttr' (Extended Attributes: 'Conditional Imp lementedBy')
1163 desc->SetNativeDataProperty(v8::String::NewSymbol("supplementalStaticAttr"), TestInterfaceV8Internal::supplementalStaticAttrAttributeGetterCallback, TestInt erfaceV8Internal::supplementalStaticAttrAttributeSetterCallback, v8::External::N ew(0), static_cast<v8::PropertyAttribute>(v8::None), v8::Handle<v8::AccessorSign ature>(), static_cast<v8::AccessControl>(v8::DEFAULT)); 1159 desc->SetNativeDataProperty(v8::String::NewSymbol("supplementalStaticAttr"), TestInterfaceV8Internal::supplementalStaticAttrAttributeGetterCallback, TestInt erfaceV8Internal::supplementalStaticAttrAttributeSetterCallback, v8::External::N ew(0), static_cast<v8::PropertyAttribute>(v8::None), v8::Handle<v8::AccessorSign ature>(), static_cast<v8::AccessControl>(v8::DEFAULT));
1164 #endif // ENABLE(Condition11) || ENABLE(Condition12) 1160 #endif // ENABLE(Condition11) || ENABLE(Condition12)
1165 1161
1166 // Custom toString template 1162 // Custom toString template
1167 desc->Set(v8::String::NewSymbol("toString"), V8PerIsolateData::current()->to StringTemplate()); 1163 desc->Set(v8::String::NewSymbol("toString"), V8PerIsolateData::current()->to StringTemplate());
1168 return desc; 1164 return desc;
1169 } 1165 }
1170 1166
1171 v8::Handle<v8::FunctionTemplate> V8TestInterface::GetTemplate(v8::Isolate* isola te, WrapperWorldType currentWorldType) 1167 v8::Handle<v8::FunctionTemplate> V8TestInterface::GetTemplate(v8::Isolate* isola te, WrapperWorldType currentWorldType)
1172 { 1168 {
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
1258 } 1254 }
1259 1255
1260 void V8TestInterface::derefObject(void* object) 1256 void V8TestInterface::derefObject(void* object)
1261 { 1257 {
1262 fromInternalPointer(object)->deref(); 1258 fromInternalPointer(object)->deref();
1263 } 1259 }
1264 1260
1265 } // namespace WebCore 1261 } // namespace WebCore
1266 1262
1267 #endif // ENABLE(Condition1) || ENABLE(Condition2) 1263 #endif // ENABLE(Condition1) || ENABLE(Condition2)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698