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 V8TestIntegerIndexed::indexedPropertySetterCallback(uint32_t index, v8::Loc
al<v8::Value> v8Value, const v8::PropertyCallbackInfo<v8::Value>& info) { | 155 void V8TestIntegerIndexed::indexedPropertySetterCallback(uint32_t index, v8::Loc
al<v8::Value> v8Value, const v8::PropertyCallbackInfo<v8::Value>& info) { |
156 V8TestIntegerIndexed::indexedPropertySetterCustom(index, v8Value, info); | 156 V8TestIntegerIndexed::indexedPropertySetterCustom(index, v8Value, info); |
157 } | 157 } |
158 | 158 |
159 void V8TestIntegerIndexed::indexedPropertyDeleterCallback(uint32_t index, const
v8::PropertyCallbackInfo<v8::Boolean>& info) { | 159 void V8TestIntegerIndexed::indexedPropertyDeleterCallback(uint32_t index, const
v8::PropertyCallbackInfo<v8::Boolean>& info) { |
160 V8TestIntegerIndexed::indexedPropertyDeleterCustom(index, info); | 160 V8TestIntegerIndexed::indexedPropertyDeleterCustom(index, info); |
161 } | 161 } |
162 | 162 |
163 const V8DOMConfiguration::AccessorConfiguration V8TestIntegerIndexedAccessors[]
= { | 163 static const V8DOMConfiguration::AccessorConfiguration V8TestIntegerIndexedAcces
sors[] = { |
164 {"length", V8TestIntegerIndexed::lengthAttributeGetterCallback, V8TestIntege
rIndexed::lengthAttributeSetterCallback, nullptr, nullptr, nullptr, nullptr, sta
tic_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::OnPrototype, V8DO
MConfiguration::CheckHolder}, | 164 {"length", V8TestIntegerIndexed::lengthAttributeGetterCallback, V8TestIntege
rIndexed::lengthAttributeSetterCallback, nullptr, nullptr, static_cast<v8::Prope
rtyAttribute>(v8::None), V8DOMConfiguration::OnPrototype, V8DOMConfiguration::Ch
eckHolder, V8DOMConfiguration::AllWorlds}, |
165 }; | 165 }; |
166 | 166 |
167 const V8DOMConfiguration::MethodConfiguration V8TestIntegerIndexedMethods[] = { | 167 static const V8DOMConfiguration::MethodConfiguration V8TestIntegerIndexedMethods
[] = { |
168 {"voidMethodDocument", V8TestIntegerIndexed::voidMethodDocumentMethodCallbac
k, 1, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder
, V8DOMConfiguration::DoNotCheckAccess, V8DOMConfiguration::AllWorlds}, | 168 {"voidMethodDocument", V8TestIntegerIndexed::voidMethodDocumentMethodCallbac
k, 1, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder
, V8DOMConfiguration::DoNotCheckAccess, V8DOMConfiguration::AllWorlds}, |
169 }; | 169 }; |
170 | 170 |
171 static void installV8TestIntegerIndexedTemplate(v8::Isolate* isolate, const DOMW
rapperWorld& world, v8::Local<v8::FunctionTemplate> interfaceTemplate) { | 171 static void installV8TestIntegerIndexedTemplate(v8::Isolate* isolate, const DOMW
rapperWorld& 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,
V8TestIntegerIndexed::wrapperTypeInfo.interfaceName, v8::Local<v8::FunctionTemp
late>(), V8TestIntegerIndexed::internalFieldCount); | 173 V8DOMConfiguration::initializeDOMInterfaceTemplate(isolate, interfaceTemplate,
V8TestIntegerIndexed::wrapperTypeInfo.interfaceName, v8::Local<v8::FunctionTemp
late>(), V8TestIntegerIndexed::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 30 matching lines...) Expand all Loading... |
208 | 208 |
209 TestIntegerIndexed* V8TestIntegerIndexed::toImplWithTypeCheck(v8::Isolate* isola
te, v8::Local<v8::Value> value) { | 209 TestIntegerIndexed* V8TestIntegerIndexed::toImplWithTypeCheck(v8::Isolate* isola
te, v8::Local<v8::Value> value) { |
210 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(value)
) : nullptr; | 210 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(value)
) : nullptr; |
211 } | 211 } |
212 | 212 |
213 TestIntegerIndexed* NativeValueTraits<TestIntegerIndexed>::nativeValue(v8::Isola
te* isolate, v8::Local<v8::Value> value, ExceptionState& exceptionState) { | 213 TestIntegerIndexed* NativeValueTraits<TestIntegerIndexed>::nativeValue(v8::Isola
te* isolate, v8::Local<v8::Value> value, ExceptionState& exceptionState) { |
214 return V8TestIntegerIndexed::toImplWithTypeCheck(isolate, value); | 214 return V8TestIntegerIndexed::toImplWithTypeCheck(isolate, value); |
215 } | 215 } |
216 | 216 |
217 } // namespace blink | 217 } // namespace blink |
OLD | NEW |