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 // clang-format off | 8 // clang-format off |
9 #include "V8TestSpecialOperations.h" | 9 #include "V8TestSpecialOperations.h" |
10 | 10 |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 | 161 |
162 void indexedPropertySetterCallback(uint32_t index, v8::Local<v8::Value> v8Value,
const v8::PropertyCallbackInfo<v8::Value>& info) { | 162 void indexedPropertySetterCallback(uint32_t index, v8::Local<v8::Value> v8Value,
const v8::PropertyCallbackInfo<v8::Value>& info) { |
163 const AtomicString& propertyName = AtomicString::number(index); | 163 const AtomicString& propertyName = AtomicString::number(index); |
164 | 164 |
165 TestSpecialOperationsV8Internal::namedPropertySetter(propertyName, v8Value, in
fo); | 165 TestSpecialOperationsV8Internal::namedPropertySetter(propertyName, v8Value, in
fo); |
166 } | 166 } |
167 | 167 |
168 } // namespace TestSpecialOperationsV8Internal | 168 } // namespace TestSpecialOperationsV8Internal |
169 | 169 |
170 const V8DOMConfiguration::MethodConfiguration V8TestSpecialOperationsMethods[] =
{ | 170 const V8DOMConfiguration::MethodConfiguration V8TestSpecialOperationsMethods[] =
{ |
171 {"namedItem", TestSpecialOperationsV8Internal::namedItemMethodCallback, 0, 1
, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnProto
type, V8DOMConfiguration::CheckHolder}, | 171 {"namedItem", TestSpecialOperationsV8Internal::namedItemMethodCallback, 0, 1
, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, |
172 }; | 172 }; |
173 | 173 |
174 static void installV8TestSpecialOperationsTemplate(v8::Isolate* isolate, const D
OMWrapperWorld& world, v8::Local<v8::FunctionTemplate> interfaceTemplate) { | 174 static void installV8TestSpecialOperationsTemplate(v8::Isolate* isolate, const D
OMWrapperWorld& world, v8::Local<v8::FunctionTemplate> interfaceTemplate) { |
175 // Initialize the interface object's template. | 175 // Initialize the interface object's template. |
176 V8DOMConfiguration::initializeDOMInterfaceTemplate(isolate, interfaceTemplate,
V8TestSpecialOperations::wrapperTypeInfo.interfaceName, v8::Local<v8::FunctionT
emplate>(), V8TestSpecialOperations::internalFieldCount); | 176 V8DOMConfiguration::initializeDOMInterfaceTemplate(isolate, interfaceTemplate,
V8TestSpecialOperations::wrapperTypeInfo.interfaceName, v8::Local<v8::FunctionT
emplate>(), V8TestSpecialOperations::internalFieldCount); |
177 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTemp
late); | 177 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTemp
late); |
178 ALLOW_UNUSED_LOCAL(signature); | 178 ALLOW_UNUSED_LOCAL(signature); |
179 v8::Local<v8::ObjectTemplate> instanceTemplate = interfaceTemplate->InstanceTe
mplate(); | 179 v8::Local<v8::ObjectTemplate> instanceTemplate = interfaceTemplate->InstanceTe
mplate(); |
180 ALLOW_UNUSED_LOCAL(instanceTemplate); | 180 ALLOW_UNUSED_LOCAL(instanceTemplate); |
181 v8::Local<v8::ObjectTemplate> prototypeTemplate = interfaceTemplate->Prototype
Template(); | 181 v8::Local<v8::ObjectTemplate> prototypeTemplate = interfaceTemplate->Prototype
Template(); |
(...skipping 20 matching lines...) Expand all Loading... |
202 | 202 |
203 v8::Local<v8::Object> V8TestSpecialOperations::findInstanceInPrototypeChain(v8::
Local<v8::Value> v8Value, v8::Isolate* isolate) { | 203 v8::Local<v8::Object> V8TestSpecialOperations::findInstanceInPrototypeChain(v8::
Local<v8::Value> v8Value, v8::Isolate* isolate) { |
204 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrapperT
ypeInfo, v8Value); | 204 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrapperT
ypeInfo, v8Value); |
205 } | 205 } |
206 | 206 |
207 TestSpecialOperations* V8TestSpecialOperations::toImplWithTypeCheck(v8::Isolate*
isolate, v8::Local<v8::Value> value) { | 207 TestSpecialOperations* V8TestSpecialOperations::toImplWithTypeCheck(v8::Isolate*
isolate, v8::Local<v8::Value> value) { |
208 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(value)
) : nullptr; | 208 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(value)
) : nullptr; |
209 } | 209 } |
210 | 210 |
211 } // namespace blink | 211 } // namespace blink |
OLD | NEW |