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

Side by Side Diff: third_party/WebKit/Source/bindings/tests/results/core/V8TestIntegerIndexedGlobal.cpp

Issue 2758893002: Slim V8DOMConfiguration structs for attributes and accessors. (Closed)
Patch Set: Created 3 years, 9 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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This file has been auto-generated by code_generator_v8.py. 5 // This file has been auto-generated by code_generator_v8.py.
6 // DO NOT MODIFY! 6 // DO NOT MODIFY!
7 7
8 // This file has been generated from the Jinja2 template in 8 // This file has been generated from the Jinja2 template in
9 // third_party/WebKit/Source/bindings/templates/interface.cpp.tmpl 9 // third_party/WebKit/Source/bindings/templates/interface.cpp.tmpl
10 10
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 } 153 }
154 154
155 void V8TestIntegerIndexedGlobal::indexedPropertySetterCallback(uint32_t index, v 8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<v8::Value>& info) { 155 void V8TestIntegerIndexedGlobal::indexedPropertySetterCallback(uint32_t index, v 8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<v8::Value>& info) {
156 V8TestIntegerIndexedGlobal::indexedPropertySetterCustom(index, v8Value, info); 156 V8TestIntegerIndexedGlobal::indexedPropertySetterCustom(index, v8Value, info);
157 } 157 }
158 158
159 void V8TestIntegerIndexedGlobal::indexedPropertyDeleterCallback(uint32_t index, const v8::PropertyCallbackInfo<v8::Boolean>& info) { 159 void V8TestIntegerIndexedGlobal::indexedPropertyDeleterCallback(uint32_t index, const v8::PropertyCallbackInfo<v8::Boolean>& info) {
160 V8TestIntegerIndexedGlobal::indexedPropertyDeleterCustom(index, info); 160 V8TestIntegerIndexedGlobal::indexedPropertyDeleterCustom(index, info);
161 } 161 }
162 162
163 const V8DOMConfiguration::AccessorConfiguration V8TestIntegerIndexedGlobalAccess ors[] = { 163 static const V8DOMConfiguration::AccessorConfiguration V8TestIntegerIndexedGloba lAccessors[] = {
164 {"length", V8TestIntegerIndexedGlobal::lengthAttributeGetterCallback, V8Test IntegerIndexedGlobal::lengthAttributeSetterCallback, nullptr, nullptr, nullptr, nullptr, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::OnIns tance, V8DOMConfiguration::CheckHolder}, 164 {"length", V8TestIntegerIndexedGlobal::lengthAttributeGetterCallback, V8Test IntegerIndexedGlobal::lengthAttributeSetterCallback, nullptr, nullptr, static_ca st<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::OnInstance, V8DOMConfig uration::CheckHolder, V8DOMConfiguration::AllWorlds},
165 }; 165 };
166 166
167 const V8DOMConfiguration::MethodConfiguration V8TestIntegerIndexedGlobalMethods[ ] = { 167 static const V8DOMConfiguration::MethodConfiguration V8TestIntegerIndexedGlobalM ethods[] = {
168 {"voidMethodDocument", V8TestIntegerIndexedGlobal::voidMethodDocumentMethodC allback, 1, v8::None, V8DOMConfiguration::OnInstance, V8DOMConfiguration::CheckH older, V8DOMConfiguration::DoNotCheckAccess, V8DOMConfiguration::AllWorlds}, 168 {"voidMethodDocument", V8TestIntegerIndexedGlobal::voidMethodDocumentMethodC allback, 1, v8::None, V8DOMConfiguration::OnInstance, V8DOMConfiguration::CheckH older, V8DOMConfiguration::DoNotCheckAccess, V8DOMConfiguration::AllWorlds},
169 }; 169 };
170 170
171 static void installV8TestIntegerIndexedGlobalTemplate(v8::Isolate* isolate, cons t DOMWrapperWorld& world, v8::Local<v8::FunctionTemplate> interfaceTemplate) { 171 static void installV8TestIntegerIndexedGlobalTemplate(v8::Isolate* isolate, cons t DOMWrapperWorld& world, v8::Local<v8::FunctionTemplate> interfaceTemplate) {
172 // Initialize the interface object's template. 172 // Initialize the interface object's template.
173 V8DOMConfiguration::initializeDOMInterfaceTemplate(isolate, interfaceTemplate, V8TestIntegerIndexedGlobal::wrapperTypeInfo.interfaceName, V8TestIntegerIndexed Global::domTemplateForNamedPropertiesObject(isolate, world), V8TestIntegerIndexe dGlobal::internalFieldCount); 173 V8DOMConfiguration::initializeDOMInterfaceTemplate(isolate, interfaceTemplate, V8TestIntegerIndexedGlobal::wrapperTypeInfo.interfaceName, V8TestIntegerIndexed Global::domTemplateForNamedPropertiesObject(isolate, world), V8TestIntegerIndexe dGlobal::internalFieldCount);
174 174
175 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTemp late); 175 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTemp late);
176 ALLOW_UNUSED_LOCAL(signature); 176 ALLOW_UNUSED_LOCAL(signature);
177 v8::Local<v8::ObjectTemplate> instanceTemplate = interfaceTemplate->InstanceTe mplate(); 177 v8::Local<v8::ObjectTemplate> instanceTemplate = interfaceTemplate->InstanceTe mplate();
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 229
230 TestIntegerIndexedGlobal* V8TestIntegerIndexedGlobal::toImplWithTypeCheck(v8::Is olate* isolate, v8::Local<v8::Value> value) { 230 TestIntegerIndexedGlobal* V8TestIntegerIndexedGlobal::toImplWithTypeCheck(v8::Is olate* isolate, v8::Local<v8::Value> value) {
231 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(value) ) : nullptr; 231 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(value) ) : nullptr;
232 } 232 }
233 233
234 TestIntegerIndexedGlobal* NativeValueTraits<TestIntegerIndexedGlobal>::nativeVal ue(v8::Isolate* isolate, v8::Local<v8::Value> value, ExceptionState& exceptionSt ate) { 234 TestIntegerIndexedGlobal* NativeValueTraits<TestIntegerIndexedGlobal>::nativeVal ue(v8::Isolate* isolate, v8::Local<v8::Value> value, ExceptionState& exceptionSt ate) {
235 return V8TestIntegerIndexedGlobal::toImplWithTypeCheck(isolate, value); 235 return V8TestIntegerIndexedGlobal::toImplWithTypeCheck(isolate, value);
236 } 236 }
237 237
238 } // namespace blink 238 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698