| 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 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 163 | 163 |
| 164 TestSpecialOperationsV8Internal::namedPropertyGetter(propertyName, info); | 164 TestSpecialOperationsV8Internal::namedPropertyGetter(propertyName, info); |
| 165 } | 165 } |
| 166 | 166 |
| 167 void V8TestSpecialOperations::indexedPropertySetterCallback(uint32_t index, v8::
Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<v8::Value>& info) { | 167 void V8TestSpecialOperations::indexedPropertySetterCallback(uint32_t index, v8::
Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<v8::Value>& info) { |
| 168 const AtomicString& propertyName = AtomicString::number(index); | 168 const AtomicString& propertyName = AtomicString::number(index); |
| 169 | 169 |
| 170 TestSpecialOperationsV8Internal::namedPropertySetter(propertyName, v8Value, in
fo); | 170 TestSpecialOperationsV8Internal::namedPropertySetter(propertyName, v8Value, in
fo); |
| 171 } | 171 } |
| 172 | 172 |
| 173 const V8DOMConfiguration::MethodConfiguration V8TestSpecialOperationsMethods[] =
{ | 173 static const V8DOMConfiguration::MethodConfiguration V8TestSpecialOperationsMeth
ods[] = { |
| 174 {"namedItem", V8TestSpecialOperations::namedItemMethodCallback, 1, v8::None,
V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMConfigur
ation::DoNotCheckAccess, V8DOMConfiguration::AllWorlds}, | 174 {"namedItem", V8TestSpecialOperations::namedItemMethodCallback, 1, v8::None,
V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMConfigur
ation::DoNotCheckAccess, V8DOMConfiguration::AllWorlds}, |
| 175 }; | 175 }; |
| 176 | 176 |
| 177 static void installV8TestSpecialOperationsTemplate(v8::Isolate* isolate, const D
OMWrapperWorld& world, v8::Local<v8::FunctionTemplate> interfaceTemplate) { | 177 static void installV8TestSpecialOperationsTemplate(v8::Isolate* isolate, const D
OMWrapperWorld& world, v8::Local<v8::FunctionTemplate> interfaceTemplate) { |
| 178 // Initialize the interface object's template. | 178 // Initialize the interface object's template. |
| 179 V8DOMConfiguration::initializeDOMInterfaceTemplate(isolate, interfaceTemplate,
V8TestSpecialOperations::wrapperTypeInfo.interfaceName, v8::Local<v8::FunctionT
emplate>(), V8TestSpecialOperations::internalFieldCount); | 179 V8DOMConfiguration::initializeDOMInterfaceTemplate(isolate, interfaceTemplate,
V8TestSpecialOperations::wrapperTypeInfo.interfaceName, v8::Local<v8::FunctionT
emplate>(), V8TestSpecialOperations::internalFieldCount); |
| 180 | 180 |
| 181 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTemp
late); | 181 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTemp
late); |
| 182 ALLOW_UNUSED_LOCAL(signature); | 182 ALLOW_UNUSED_LOCAL(signature); |
| 183 v8::Local<v8::ObjectTemplate> instanceTemplate = interfaceTemplate->InstanceTe
mplate(); | 183 v8::Local<v8::ObjectTemplate> instanceTemplate = interfaceTemplate->InstanceTe
mplate(); |
| (...skipping 26 matching lines...) Expand all Loading... |
| 210 | 210 |
| 211 TestSpecialOperations* V8TestSpecialOperations::toImplWithTypeCheck(v8::Isolate*
isolate, v8::Local<v8::Value> value) { | 211 TestSpecialOperations* V8TestSpecialOperations::toImplWithTypeCheck(v8::Isolate*
isolate, v8::Local<v8::Value> value) { |
| 212 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(value)
) : nullptr; | 212 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(value)
) : nullptr; |
| 213 } | 213 } |
| 214 | 214 |
| 215 TestSpecialOperations* NativeValueTraits<TestSpecialOperations>::nativeValue(v8:
:Isolate* isolate, v8::Local<v8::Value> value, ExceptionState& exceptionState) { | 215 TestSpecialOperations* NativeValueTraits<TestSpecialOperations>::nativeValue(v8:
:Isolate* isolate, v8::Local<v8::Value> value, ExceptionState& exceptionState) { |
| 216 return V8TestSpecialOperations::toImplWithTypeCheck(isolate, value); | 216 return V8TestSpecialOperations::toImplWithTypeCheck(isolate, value); |
| 217 } | 217 } |
| 218 | 218 |
| 219 } // namespace blink | 219 } // namespace blink |
| OLD | NEW |