| 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 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 const V8DOMConfiguration::AccessorConfiguration V8TestIntegerIndexedGlobalAccess
ors[] = { |
| 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, nullptr,
nullptr, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::OnIns
tance, V8DOMConfiguration::CheckHolder}, |
| 165 }; | 165 }; |
| 166 | 166 |
| 167 const V8DOMConfiguration::MethodConfiguration V8TestIntegerIndexedGlobalMethods[
] = { | 167 const V8DOMConfiguration::MethodConfiguration V8TestIntegerIndexedGlobalMethods[
] = { |
| 168 {"voidMethodDocument", V8TestIntegerIndexedGlobal::voidMethodDocumentMethodC
allback, nullptr, 1, v8::None, V8DOMConfiguration::OnInstance, V8DOMConfiguratio
n::CheckHolder, V8DOMConfiguration::DoNotCheckAccess}, | 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(); |
| 178 ALLOW_UNUSED_LOCAL(instanceTemplate); | 178 ALLOW_UNUSED_LOCAL(instanceTemplate); |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 |
| OLD | NEW |