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 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 void V8TestInterface3::indexedPropertyDeleterCallback(uint32_t index, const v8::
PropertyCallbackInfo<v8::Boolean>& info) { | 161 void V8TestInterface3::indexedPropertyDeleterCallback(uint32_t index, const v8::
PropertyCallbackInfo<v8::Boolean>& info) { |
162 V8TestInterface3::indexedPropertyDeleterCustom(index, info); | 162 V8TestInterface3::indexedPropertyDeleterCustom(index, info); |
163 } | 163 } |
164 | 164 |
165 const V8DOMConfiguration::AccessorConfiguration V8TestInterface3Accessors[] = { | 165 const V8DOMConfiguration::AccessorConfiguration V8TestInterface3Accessors[] = { |
166 {"length", V8TestInterface3::lengthAttributeGetterCallback, nullptr, nullptr
, nullptr, nullptr, nullptr, static_cast<v8::PropertyAttribute>(v8::ReadOnly), V
8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, | 166 {"length", V8TestInterface3::lengthAttributeGetterCallback, nullptr, nullptr
, nullptr, nullptr, nullptr, static_cast<v8::PropertyAttribute>(v8::ReadOnly), V
8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, |
167 {"readonlyStringifierAttribute", V8TestInterface3::readonlyStringifierAttrib
uteAttributeGetterCallback, nullptr, nullptr, nullptr, nullptr, nullptr, static_
cast<v8::PropertyAttribute>(v8::ReadOnly), V8DOMConfiguration::OnPrototype, V8DO
MConfiguration::CheckHolder}, | 167 {"readonlyStringifierAttribute", V8TestInterface3::readonlyStringifierAttrib
uteAttributeGetterCallback, nullptr, nullptr, nullptr, nullptr, nullptr, static_
cast<v8::PropertyAttribute>(v8::ReadOnly), V8DOMConfiguration::OnPrototype, V8DO
MConfiguration::CheckHolder}, |
168 }; | 168 }; |
169 | 169 |
170 const V8DOMConfiguration::MethodConfiguration V8TestInterface3Methods[] = { | 170 const V8DOMConfiguration::MethodConfiguration V8TestInterface3Methods[] = { |
171 {"voidMethodDocument", V8TestInterface3::voidMethodDocumentMethodCallback, n
ullptr, 1, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckH
older, V8DOMConfiguration::DoNotCheckAccess}, | 171 {"voidMethodDocument", V8TestInterface3::voidMethodDocumentMethodCallback, 1
, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder, V8
DOMConfiguration::DoNotCheckAccess, V8DOMConfiguration::AllWorlds}, |
172 {"toString", V8TestInterface3::toStringMethodCallback, nullptr, 0, v8::None,
V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMConfigur
ation::DoNotCheckAccess}, | 172 {"toString", V8TestInterface3::toStringMethodCallback, 0, v8::None, V8DOMCon
figuration::OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMConfiguration::Do
NotCheckAccess, V8DOMConfiguration::AllWorlds}, |
173 }; | 173 }; |
174 | 174 |
175 static void installV8TestInterface3Template(v8::Isolate* isolate, const DOMWrapp
erWorld& world, v8::Local<v8::FunctionTemplate> interfaceTemplate) { | 175 static void installV8TestInterface3Template(v8::Isolate* isolate, const DOMWrapp
erWorld& world, v8::Local<v8::FunctionTemplate> interfaceTemplate) { |
176 // Initialize the interface object's template. | 176 // Initialize the interface object's template. |
177 V8DOMConfiguration::initializeDOMInterfaceTemplate(isolate, interfaceTemplate,
V8TestInterface3::wrapperTypeInfo.interfaceName, v8::Local<v8::FunctionTemplate
>(), V8TestInterface3::internalFieldCount); | 177 V8DOMConfiguration::initializeDOMInterfaceTemplate(isolate, interfaceTemplate,
V8TestInterface3::wrapperTypeInfo.interfaceName, v8::Local<v8::FunctionTemplate
>(), V8TestInterface3::internalFieldCount); |
178 | 178 |
179 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTemp
late); | 179 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTemp
late); |
180 ALLOW_UNUSED_LOCAL(signature); | 180 ALLOW_UNUSED_LOCAL(signature); |
181 v8::Local<v8::ObjectTemplate> instanceTemplate = interfaceTemplate->InstanceTe
mplate(); | 181 v8::Local<v8::ObjectTemplate> instanceTemplate = interfaceTemplate->InstanceTe
mplate(); |
182 ALLOW_UNUSED_LOCAL(instanceTemplate); | 182 ALLOW_UNUSED_LOCAL(instanceTemplate); |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 | 218 |
219 TestInterface3* V8TestInterface3::toImplWithTypeCheck(v8::Isolate* isolate, v8::
Local<v8::Value> value) { | 219 TestInterface3* V8TestInterface3::toImplWithTypeCheck(v8::Isolate* isolate, v8::
Local<v8::Value> value) { |
220 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(value)
) : nullptr; | 220 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(value)
) : nullptr; |
221 } | 221 } |
222 | 222 |
223 TestInterface3* NativeValueTraits<TestInterface3>::nativeValue(v8::Isolate* isol
ate, v8::Local<v8::Value> value, ExceptionState& exceptionState) { | 223 TestInterface3* NativeValueTraits<TestInterface3>::nativeValue(v8::Isolate* isol
ate, v8::Local<v8::Value> value, ExceptionState& exceptionState) { |
224 return V8TestInterface3::toImplWithTypeCheck(isolate, value); | 224 return V8TestInterface3::toImplWithTypeCheck(isolate, value); |
225 } | 225 } |
226 | 226 |
227 } // namespace blink | 227 } // namespace blink |
OLD | NEW |