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

Side by Side Diff: Source/bindings/tests/results/V8TestEventConstructor.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 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 } 140 }
141 141
142 static v8::Handle<v8::FunctionTemplate> ConfigureV8TestEventConstructorTemplate( v8::Handle<v8::FunctionTemplate> desc, v8::Isolate* isolate, WrapperWorldType cu rrentWorldType) 142 static v8::Handle<v8::FunctionTemplate> ConfigureV8TestEventConstructorTemplate( v8::Handle<v8::FunctionTemplate> desc, v8::Isolate* isolate, WrapperWorldType cu rrentWorldType)
143 { 143 {
144 desc->ReadOnlyPrototype(); 144 desc->ReadOnlyPrototype();
145 145
146 v8::Local<v8::Signature> defaultSignature; 146 v8::Local<v8::Signature> defaultSignature;
147 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(desc, "TestEv entConstructor", v8::Local<v8::FunctionTemplate>(), V8TestEventConstructor::inte rnalFieldCount, 147 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(desc, "TestEv entConstructor", v8::Local<v8::FunctionTemplate>(), V8TestEventConstructor::inte rnalFieldCount,
148 V8TestEventConstructorAttributes, WTF_ARRAY_LENGTH(V8TestEventConstructo rAttributes), 148 V8TestEventConstructorAttributes, WTF_ARRAY_LENGTH(V8TestEventConstructo rAttributes),
149 0, 0, isolate, currentWorldType); 149 0, 0, isolate, currentWorldType);
150 UNUSED_PARAM(defaultSignature); // In some cases, it will not be used. 150 UNUSED_PARAM(defaultSignature);
151 desc->SetCallHandler(V8TestEventConstructor::constructorCallback); 151 desc->SetCallHandler(V8TestEventConstructor::constructorCallback);
152 desc->SetLength(1); 152 desc->SetLength(1);
153 153
154 // Custom toString template 154 // Custom toString template
155 desc->Set(v8::String::NewSymbol("toString"), V8PerIsolateData::current()->to StringTemplate()); 155 desc->Set(v8::String::NewSymbol("toString"), V8PerIsolateData::current()->to StringTemplate());
156 return desc; 156 return desc;
157 } 157 }
158 158
159 v8::Handle<v8::FunctionTemplate> V8TestEventConstructor::GetTemplate(v8::Isolate * isolate, WrapperWorldType currentWorldType) 159 v8::Handle<v8::FunctionTemplate> V8TestEventConstructor::GetTemplate(v8::Isolate * isolate, WrapperWorldType currentWorldType)
160 { 160 {
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 V8DOMWrapper::associateObjectWithWrapper<V8TestEventConstructor>(impl, &info , wrapper, isolate, WrapperConfiguration::Independent); 202 V8DOMWrapper::associateObjectWithWrapper<V8TestEventConstructor>(impl, &info , wrapper, isolate, WrapperConfiguration::Independent);
203 return wrapper; 203 return wrapper;
204 } 204 }
205 205
206 void V8TestEventConstructor::derefObject(void* object) 206 void V8TestEventConstructor::derefObject(void* object)
207 { 207 {
208 fromInternalPointer(object)->deref(); 208 fromInternalPointer(object)->deref();
209 } 209 }
210 210
211 } // namespace WebCore 211 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/bindings/tests/results/V8TestEvent.cpp ('k') | Source/bindings/tests/results/V8TestEventTarget.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698