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

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

Issue 15943008: [binding] Replace [CustomIndexedGetter] attributes with [Custom] getter (Closed) Base URL: https://chromium.googlesource.com/chromium/blink@master
Patch Set: update tests Created 7 years, 6 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
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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 defaultSignature = V8DOMConfiguration::configureTemplate(desc, "Float64Array ", V8ArrayBufferView::GetTemplate(isolate, currentWorldType), V8Float64Array::in ternalFieldCount, 128 defaultSignature = V8DOMConfiguration::configureTemplate(desc, "Float64Array ", V8ArrayBufferView::GetTemplate(isolate, currentWorldType), V8Float64Array::in ternalFieldCount,
129 0, 0, 129 0, 0,
130 V8Float64ArrayMethods, WTF_ARRAY_LENGTH(V8Float64ArrayMethods), isolate, currentWorldType); 130 V8Float64ArrayMethods, WTF_ARRAY_LENGTH(V8Float64ArrayMethods), isolate, currentWorldType);
131 UNUSED_PARAM(defaultSignature); // In some cases, it will not be used. 131 UNUSED_PARAM(defaultSignature); // In some cases, it will not be used.
132 desc->SetCallHandler(V8Float64Array::constructorCallback); 132 desc->SetCallHandler(V8Float64Array::constructorCallback);
133 desc->SetLength(1); 133 desc->SetLength(1);
134 v8::Local<v8::ObjectTemplate> instance = desc->InstanceTemplate(); 134 v8::Local<v8::ObjectTemplate> instance = desc->InstanceTemplate();
135 v8::Local<v8::ObjectTemplate> proto = desc->PrototypeTemplate(); 135 v8::Local<v8::ObjectTemplate> proto = desc->PrototypeTemplate();
136 UNUSED_PARAM(instance); // In some cases, it will not be used. 136 UNUSED_PARAM(instance); // In some cases, it will not be used.
137 UNUSED_PARAM(proto); // In some cases, it will not be used. 137 UNUSED_PARAM(proto); // In some cases, it will not be used.
138 desc->InstanceTemplate()->SetIndexedPropertyHandler(V8Float64Array::indexedP ropertyGetter, V8Float64Array::indexedPropertySetter, 0, 0, nodeCollectionIndexe dPropertyEnumerator<Float64Array>);
138 139
139 // Custom Signature 'foo' 140 // Custom Signature 'foo'
140 const int fooArgc = 1; 141 const int fooArgc = 1;
141 v8::Handle<v8::FunctionTemplate> fooArgv[fooArgc] = { V8PerIsolateData::from (isolate)->rawTemplate(&V8Float32Array::info, currentWorldType) }; 142 v8::Handle<v8::FunctionTemplate> fooArgv[fooArgc] = { V8PerIsolateData::from (isolate)->rawTemplate(&V8Float32Array::info, currentWorldType) };
142 v8::Handle<v8::Signature> fooSignature = v8::Signature::New(desc, fooArgc, f ooArgv); 143 v8::Handle<v8::Signature> fooSignature = v8::Signature::New(desc, fooArgc, f ooArgv);
143 proto->Set(v8::String::NewSymbol("foo"), v8::FunctionTemplate::New(Float64Ar rayV8Internal::fooMethodCallback, v8Undefined(), fooSignature, 1)); 144 proto->Set(v8::String::NewSymbol("foo"), v8::FunctionTemplate::New(Float64Ar rayV8Internal::fooMethodCallback, v8Undefined(), fooSignature, 1));
144 145
145 // Custom toString template 146 // Custom toString template
146 desc->Set(v8::String::NewSymbol("toString"), V8PerIsolateData::current()->to StringTemplate()); 147 desc->Set(v8::String::NewSymbol("toString"), V8PerIsolateData::current()->to StringTemplate());
147 return desc; 148 return desc;
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 installPerContextProperties(wrapper, impl.get(), isolate); 188 installPerContextProperties(wrapper, impl.get(), isolate);
188 V8DOMWrapper::associateObjectWithWrapper(impl, &info, wrapper, isolate, Wrap perConfiguration::Independent); 189 V8DOMWrapper::associateObjectWithWrapper(impl, &info, wrapper, isolate, Wrap perConfiguration::Independent);
189 return wrapper; 190 return wrapper;
190 } 191 }
191 void V8Float64Array::derefObject(void* object) 192 void V8Float64Array::derefObject(void* object)
192 { 193 {
193 static_cast<Float64Array*>(object)->deref(); 194 static_cast<Float64Array*>(object)->deref();
194 } 195 }
195 196
196 } // namespace WebCore 197 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/bindings/tests/results/V8Float64Array.h ('k') | Source/bindings/tests/results/V8TestCustomAccessors.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698