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

Side by Side Diff: Source/bindings/tests/results/V8Float64Array.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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 } 147 }
148 148
149 static v8::Handle<v8::FunctionTemplate> ConfigureV8Float64ArrayTemplate(v8::Hand le<v8::FunctionTemplate> desc, v8::Isolate* isolate, WrapperWorldType currentWor ldType) 149 static v8::Handle<v8::FunctionTemplate> ConfigureV8Float64ArrayTemplate(v8::Hand le<v8::FunctionTemplate> desc, v8::Isolate* isolate, WrapperWorldType currentWor ldType)
150 { 150 {
151 desc->ReadOnlyPrototype(); 151 desc->ReadOnlyPrototype();
152 152
153 v8::Local<v8::Signature> defaultSignature; 153 v8::Local<v8::Signature> defaultSignature;
154 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(desc, "Float6 4Array", V8ArrayBufferView::GetTemplate(isolate, currentWorldType), V8Float64Arr ay::internalFieldCount, 154 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(desc, "Float6 4Array", V8ArrayBufferView::GetTemplate(isolate, currentWorldType), V8Float64Arr ay::internalFieldCount,
155 0, 0, 155 0, 0,
156 V8Float64ArrayMethods, WTF_ARRAY_LENGTH(V8Float64ArrayMethods), isolate, currentWorldType); 156 V8Float64ArrayMethods, WTF_ARRAY_LENGTH(V8Float64ArrayMethods), isolate, currentWorldType);
157 UNUSED_PARAM(defaultSignature); // In some cases, it will not be used. 157 UNUSED_PARAM(defaultSignature);
158 desc->SetCallHandler(V8Float64Array::constructorCallback); 158 desc->SetCallHandler(V8Float64Array::constructorCallback);
159 desc->SetLength(1); 159 desc->SetLength(1);
160 v8::Local<v8::ObjectTemplate> instance = desc->InstanceTemplate(); 160 v8::Local<v8::ObjectTemplate> instance = desc->InstanceTemplate();
161 v8::Local<v8::ObjectTemplate> proto = desc->PrototypeTemplate(); 161 v8::Local<v8::ObjectTemplate> proto = desc->PrototypeTemplate();
162 UNUSED_PARAM(instance); // In some cases, it will not be used. 162 UNUSED_PARAM(instance);
163 UNUSED_PARAM(proto); // In some cases, it will not be used. 163 UNUSED_PARAM(proto);
164 desc->InstanceTemplate()->SetIndexedPropertyHandler(Float64ArrayV8Internal:: indexedPropertyGetterCallback, Float64ArrayV8Internal::indexedPropertySetterCall back, 0, 0, indexedPropertyEnumerator<Float64Array>); 164 desc->InstanceTemplate()->SetIndexedPropertyHandler(Float64ArrayV8Internal:: indexedPropertyGetterCallback, Float64ArrayV8Internal::indexedPropertySetterCall back, 0, 0, indexedPropertyEnumerator<Float64Array>);
165 165
166 // Custom Signature 'foo' 166 // Custom Signature 'foo'
167 const int fooArgc = 1; 167 const int fooArgc = 1;
168 v8::Handle<v8::FunctionTemplate> fooArgv[fooArgc] = { v8::Handle<v8::Functio nTemplate>() }; 168 v8::Handle<v8::FunctionTemplate> fooArgv[fooArgc] = { v8::Handle<v8::Functio nTemplate>() };
169 v8::Handle<v8::Signature> fooSignature = v8::Signature::New(desc, fooArgc, f ooArgv); 169 v8::Handle<v8::Signature> fooSignature = v8::Signature::New(desc, fooArgc, f ooArgv);
170 proto->Set(v8::String::NewSymbol("foo"), v8::FunctionTemplate::New(Float64Ar rayV8Internal::fooMethodCallback, v8Undefined(), fooSignature, 1)); 170 proto->Set(v8::String::NewSymbol("foo"), v8::FunctionTemplate::New(Float64Ar rayV8Internal::fooMethodCallback, v8Undefined(), fooSignature, 1));
171 171
172 // Custom toString template 172 // Custom toString template
173 desc->Set(v8::String::NewSymbol("toString"), V8PerIsolateData::current()->to StringTemplate()); 173 desc->Set(v8::String::NewSymbol("toString"), V8PerIsolateData::current()->to StringTemplate());
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 V8DOMWrapper::associateObjectWithWrapper<V8Float64Array>(impl, &info, wrappe r, isolate, WrapperConfiguration::Independent); 224 V8DOMWrapper::associateObjectWithWrapper<V8Float64Array>(impl, &info, wrappe r, isolate, WrapperConfiguration::Independent);
225 return wrapper; 225 return wrapper;
226 } 226 }
227 227
228 void V8Float64Array::derefObject(void* object) 228 void V8Float64Array::derefObject(void* object)
229 { 229 {
230 fromInternalPointer(object)->deref(); 230 fromInternalPointer(object)->deref();
231 } 231 }
232 232
233 } // namespace WebCore 233 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/bindings/tests/idls/TestObject.idl ('k') | Source/bindings/tests/results/V8TestActiveDOMObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698