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

Side by Side Diff: Source/bindings/tests/results/V8TestNamedConstructor.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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 } 126 }
127 127
128 static v8::Handle<v8::FunctionTemplate> ConfigureV8TestNamedConstructorTemplate( v8::Handle<v8::FunctionTemplate> desc, v8::Isolate* isolate, WrapperWorldType cu rrentWorldType) 128 static v8::Handle<v8::FunctionTemplate> ConfigureV8TestNamedConstructorTemplate( v8::Handle<v8::FunctionTemplate> desc, v8::Isolate* isolate, WrapperWorldType cu rrentWorldType)
129 { 129 {
130 desc->ReadOnlyPrototype(); 130 desc->ReadOnlyPrototype();
131 131
132 v8::Local<v8::Signature> defaultSignature; 132 v8::Local<v8::Signature> defaultSignature;
133 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(desc, "TestNa medConstructor", v8::Local<v8::FunctionTemplate>(), V8TestNamedConstructor::inte rnalFieldCount, 133 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(desc, "TestNa medConstructor", v8::Local<v8::FunctionTemplate>(), V8TestNamedConstructor::inte rnalFieldCount,
134 0, 0, 134 0, 0,
135 0, 0, isolate, currentWorldType); 135 0, 0, isolate, currentWorldType);
136 UNUSED_PARAM(defaultSignature); // In some cases, it will not be used. 136 UNUSED_PARAM(defaultSignature);
137 137
138 // Custom toString template 138 // Custom toString template
139 desc->Set(v8::String::NewSymbol("toString"), V8PerIsolateData::current()->to StringTemplate()); 139 desc->Set(v8::String::NewSymbol("toString"), V8PerIsolateData::current()->to StringTemplate());
140 return desc; 140 return desc;
141 } 141 }
142 142
143 v8::Handle<v8::FunctionTemplate> V8TestNamedConstructor::GetTemplate(v8::Isolate * isolate, WrapperWorldType currentWorldType) 143 v8::Handle<v8::FunctionTemplate> V8TestNamedConstructor::GetTemplate(v8::Isolate * isolate, WrapperWorldType currentWorldType)
144 { 144 {
145 V8PerIsolateData* data = V8PerIsolateData::from(isolate); 145 V8PerIsolateData* data = V8PerIsolateData::from(isolate);
146 V8PerIsolateData::TemplateMap::iterator result = data->templateMap(currentWo rldType).find(&info); 146 V8PerIsolateData::TemplateMap::iterator result = data->templateMap(currentWo rldType).find(&info);
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 V8DOMWrapper::associateObjectWithWrapper<V8TestNamedConstructor>(impl, &info , wrapper, isolate, WrapperConfiguration::Dependent); 191 V8DOMWrapper::associateObjectWithWrapper<V8TestNamedConstructor>(impl, &info , wrapper, isolate, WrapperConfiguration::Dependent);
192 return wrapper; 192 return wrapper;
193 } 193 }
194 194
195 void V8TestNamedConstructor::derefObject(void* object) 195 void V8TestNamedConstructor::derefObject(void* object)
196 { 196 {
197 fromInternalPointer(object)->deref(); 197 fromInternalPointer(object)->deref();
198 } 198 }
199 199
200 } // namespace WebCore 200 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/bindings/tests/results/V8TestMediaQueryListListener.cpp ('k') | Source/bindings/tests/results/V8TestNode.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698