OLD | NEW |
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 Loading... |
153 } | 153 } |
154 | 154 |
155 void V8TestIntegerIndexedPrimaryGlobal::indexedPropertySetterCallback(uint32_t i
ndex, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<v8::Value>& i
nfo) { | 155 void V8TestIntegerIndexedPrimaryGlobal::indexedPropertySetterCallback(uint32_t i
ndex, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<v8::Value>& i
nfo) { |
156 V8TestIntegerIndexedPrimaryGlobal::indexedPropertySetterCustom(index, v8Value,
info); | 156 V8TestIntegerIndexedPrimaryGlobal::indexedPropertySetterCustom(index, v8Value,
info); |
157 } | 157 } |
158 | 158 |
159 void V8TestIntegerIndexedPrimaryGlobal::indexedPropertyDeleterCallback(uint32_t
index, const v8::PropertyCallbackInfo<v8::Boolean>& info) { | 159 void V8TestIntegerIndexedPrimaryGlobal::indexedPropertyDeleterCallback(uint32_t
index, const v8::PropertyCallbackInfo<v8::Boolean>& info) { |
160 V8TestIntegerIndexedPrimaryGlobal::indexedPropertyDeleterCustom(index, info); | 160 V8TestIntegerIndexedPrimaryGlobal::indexedPropertyDeleterCustom(index, info); |
161 } | 161 } |
162 | 162 |
163 const V8DOMConfiguration::AccessorConfiguration V8TestIntegerIndexedPrimaryGloba
lAccessors[] = { | 163 static const V8DOMConfiguration::AccessorConfiguration V8TestIntegerIndexedPrima
ryGlobalAccessors[] = { |
164 {"length", V8TestIntegerIndexedPrimaryGlobal::lengthAttributeGetterCallback,
V8TestIntegerIndexedPrimaryGlobal::lengthAttributeSetterCallback, nullptr, null
ptr, nullptr, nullptr, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfig
uration::OnInstance, V8DOMConfiguration::CheckHolder}, | 164 {"length", V8TestIntegerIndexedPrimaryGlobal::lengthAttributeGetterCallback,
V8TestIntegerIndexedPrimaryGlobal::lengthAttributeSetterCallback, nullptr, null
ptr, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::OnInstanc
e, V8DOMConfiguration::CheckHolder, V8DOMConfiguration::AllWorlds}, |
165 }; | 165 }; |
166 | 166 |
167 const V8DOMConfiguration::MethodConfiguration V8TestIntegerIndexedPrimaryGlobalM
ethods[] = { | 167 static const V8DOMConfiguration::MethodConfiguration V8TestIntegerIndexedPrimary
GlobalMethods[] = { |
168 {"voidMethodDocument", V8TestIntegerIndexedPrimaryGlobal::voidMethodDocument
MethodCallback, 1, v8::None, V8DOMConfiguration::OnInstance, V8DOMConfiguration:
:CheckHolder, V8DOMConfiguration::DoNotCheckAccess, V8DOMConfiguration::AllWorld
s}, | 168 {"voidMethodDocument", V8TestIntegerIndexedPrimaryGlobal::voidMethodDocument
MethodCallback, 1, v8::None, V8DOMConfiguration::OnInstance, V8DOMConfiguration:
:CheckHolder, V8DOMConfiguration::DoNotCheckAccess, V8DOMConfiguration::AllWorld
s}, |
169 }; | 169 }; |
170 | 170 |
171 static void installV8TestIntegerIndexedPrimaryGlobalTemplate(v8::Isolate* isolat
e, const DOMWrapperWorld& world, v8::Local<v8::FunctionTemplate> interfaceTempla
te) { | 171 static void installV8TestIntegerIndexedPrimaryGlobalTemplate(v8::Isolate* isolat
e, const DOMWrapperWorld& world, v8::Local<v8::FunctionTemplate> interfaceTempla
te) { |
172 // Initialize the interface object's template. | 172 // Initialize the interface object's template. |
173 V8DOMConfiguration::initializeDOMInterfaceTemplate(isolate, interfaceTemplate,
V8TestIntegerIndexedPrimaryGlobal::wrapperTypeInfo.interfaceName, V8TestInteger
IndexedPrimaryGlobal::domTemplateForNamedPropertiesObject(isolate, world), V8Tes
tIntegerIndexedPrimaryGlobal::internalFieldCount); | 173 V8DOMConfiguration::initializeDOMInterfaceTemplate(isolate, interfaceTemplate,
V8TestIntegerIndexedPrimaryGlobal::wrapperTypeInfo.interfaceName, V8TestInteger
IndexedPrimaryGlobal::domTemplateForNamedPropertiesObject(isolate, world), V8Tes
tIntegerIndexedPrimaryGlobal::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 Loading... |
229 | 229 |
230 TestIntegerIndexedPrimaryGlobal* V8TestIntegerIndexedPrimaryGlobal::toImplWithTy
peCheck(v8::Isolate* isolate, v8::Local<v8::Value> value) { | 230 TestIntegerIndexedPrimaryGlobal* V8TestIntegerIndexedPrimaryGlobal::toImplWithTy
peCheck(v8::Isolate* 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 TestIntegerIndexedPrimaryGlobal* NativeValueTraits<TestIntegerIndexedPrimaryGlob
al>::nativeValue(v8::Isolate* isolate, v8::Local<v8::Value> value, ExceptionStat
e& exceptionState) { | 234 TestIntegerIndexedPrimaryGlobal* NativeValueTraits<TestIntegerIndexedPrimaryGlob
al>::nativeValue(v8::Isolate* isolate, v8::Local<v8::Value> value, ExceptionStat
e& exceptionState) { |
235 return V8TestIntegerIndexedPrimaryGlobal::toImplWithTypeCheck(isolate, value); | 235 return V8TestIntegerIndexedPrimaryGlobal::toImplWithTypeCheck(isolate, value); |
236 } | 236 } |
237 | 237 |
238 } // namespace blink | 238 } // namespace blink |
OLD | NEW |