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

Side by Side Diff: Source/bindings/tests/results/V8TestInterfaceImplementedAs.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 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 }; 171 };
172 172
173 static v8::Handle<v8::FunctionTemplate> ConfigureV8TestInterfaceImplementedAsTem plate(v8::Handle<v8::FunctionTemplate> desc, v8::Isolate* isolate, WrapperWorldT ype currentWorldType) 173 static v8::Handle<v8::FunctionTemplate> ConfigureV8TestInterfaceImplementedAsTem plate(v8::Handle<v8::FunctionTemplate> desc, v8::Isolate* isolate, WrapperWorldT ype currentWorldType)
174 { 174 {
175 desc->ReadOnlyPrototype(); 175 desc->ReadOnlyPrototype();
176 176
177 v8::Local<v8::Signature> defaultSignature; 177 v8::Local<v8::Signature> defaultSignature;
178 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(desc, "TestIn terfaceImplementedAs", v8::Local<v8::FunctionTemplate>(), V8TestInterfaceImpleme ntedAs::internalFieldCount, 178 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(desc, "TestIn terfaceImplementedAs", v8::Local<v8::FunctionTemplate>(), V8TestInterfaceImpleme ntedAs::internalFieldCount,
179 V8TestInterfaceImplementedAsAttributes, WTF_ARRAY_LENGTH(V8TestInterface ImplementedAsAttributes), 179 V8TestInterfaceImplementedAsAttributes, WTF_ARRAY_LENGTH(V8TestInterface ImplementedAsAttributes),
180 V8TestInterfaceImplementedAsMethods, WTF_ARRAY_LENGTH(V8TestInterfaceImp lementedAsMethods), isolate, currentWorldType); 180 V8TestInterfaceImplementedAsMethods, WTF_ARRAY_LENGTH(V8TestInterfaceImp lementedAsMethods), isolate, currentWorldType);
181 UNUSED_PARAM(defaultSignature); // In some cases, it will not be used. 181 UNUSED_PARAM(defaultSignature);
182 v8::Local<v8::ObjectTemplate> instance = desc->InstanceTemplate(); 182 v8::Local<v8::ObjectTemplate> instance = desc->InstanceTemplate();
183 v8::Local<v8::ObjectTemplate> proto = desc->PrototypeTemplate(); 183 v8::Local<v8::ObjectTemplate> proto = desc->PrototypeTemplate();
184 UNUSED_PARAM(instance); // In some cases, it will not be used. 184 UNUSED_PARAM(instance);
185 UNUSED_PARAM(proto); // In some cases, it will not be used. 185 UNUSED_PARAM(proto);
186 186
187 // Custom Signature 'funcTestInterfaceImplementedAsParam' 187 // Custom Signature 'funcTestInterfaceImplementedAsParam'
188 const int funcTestInterfaceImplementedAsParamArgc = 1; 188 const int funcTestInterfaceImplementedAsParamArgc = 1;
189 v8::Handle<v8::FunctionTemplate> funcTestInterfaceImplementedAsParamArgv[fun cTestInterfaceImplementedAsParamArgc] = { V8PerIsolateData::from(isolate)->rawTe mplate(&V8TestInterfaceImplementedAs::info, currentWorldType) }; 189 v8::Handle<v8::FunctionTemplate> funcTestInterfaceImplementedAsParamArgv[fun cTestInterfaceImplementedAsParamArgc] = { V8PerIsolateData::from(isolate)->rawTe mplate(&V8TestInterfaceImplementedAs::info, currentWorldType) };
190 v8::Handle<v8::Signature> funcTestInterfaceImplementedAsParamSignature = v8: :Signature::New(desc, funcTestInterfaceImplementedAsParamArgc, funcTestInterface ImplementedAsParamArgv); 190 v8::Handle<v8::Signature> funcTestInterfaceImplementedAsParamSignature = v8: :Signature::New(desc, funcTestInterfaceImplementedAsParamArgc, funcTestInterface ImplementedAsParamArgv);
191 proto->Set(v8::String::NewSymbol("funcTestInterfaceImplementedAsParam"), v8: :FunctionTemplate::New(RealClassV8Internal::funcTestInterfaceImplementedAsParamM ethodCallback, v8Undefined(), funcTestInterfaceImplementedAsParamSignature, 1)); 191 proto->Set(v8::String::NewSymbol("funcTestInterfaceImplementedAsParam"), v8: :FunctionTemplate::New(RealClassV8Internal::funcTestInterfaceImplementedAsParamM ethodCallback, v8Undefined(), funcTestInterfaceImplementedAsParamSignature, 1));
192 192
193 // Custom toString template 193 // Custom toString template
194 desc->Set(v8::String::NewSymbol("toString"), V8PerIsolateData::current()->to StringTemplate()); 194 desc->Set(v8::String::NewSymbol("toString"), V8PerIsolateData::current()->to StringTemplate());
195 return desc; 195 return desc;
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 V8DOMWrapper::associateObjectWithWrapper<V8TestInterfaceImplementedAs>(impl, &info, wrapper, isolate, WrapperConfiguration::Independent); 241 V8DOMWrapper::associateObjectWithWrapper<V8TestInterfaceImplementedAs>(impl, &info, wrapper, isolate, WrapperConfiguration::Independent);
242 return wrapper; 242 return wrapper;
243 } 243 }
244 244
245 void V8TestInterfaceImplementedAs::derefObject(void* object) 245 void V8TestInterfaceImplementedAs::derefObject(void* object)
246 { 246 {
247 fromInternalPointer(object)->deref(); 247 fromInternalPointer(object)->deref();
248 } 248 }
249 249
250 } // namespace WebCore 250 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/bindings/tests/results/V8TestInterfaceEmpty.cpp ('k') | Source/bindings/tests/results/V8TestMediaQueryListListener.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698