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. DO NOT MODIFY! | 5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY! |
6 | 6 |
7 #include "V8TestIntegerIndexedGlobal.h" | 7 #include "V8TestIntegerIndexedGlobal.h" |
8 | 8 |
9 #include "bindings/core/v8/ExceptionState.h" | 9 #include "bindings/core/v8/ExceptionState.h" |
10 #include "bindings/core/v8/V8DOMConfiguration.h" | 10 #include "bindings/core/v8/V8DOMConfiguration.h" |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 | 179 |
180 v8::Local<v8::FunctionTemplate> V8TestIntegerIndexedGlobal::domTemplate(v8::Isol
ate* isolate, const DOMWrapperWorld& world) | 180 v8::Local<v8::FunctionTemplate> V8TestIntegerIndexedGlobal::domTemplate(v8::Isol
ate* isolate, const DOMWrapperWorld& world) |
181 { | 181 { |
182 return V8DOMConfiguration::domClassTemplate(isolate, world, const_cast<Wrapp
erTypeInfo*>(&wrapperTypeInfo), installV8TestIntegerIndexedGlobalTemplate); | 182 return V8DOMConfiguration::domClassTemplate(isolate, world, const_cast<Wrapp
erTypeInfo*>(&wrapperTypeInfo), installV8TestIntegerIndexedGlobalTemplate); |
183 } | 183 } |
184 | 184 |
185 v8::Local<v8::FunctionTemplate> V8TestIntegerIndexedGlobal::domTemplateForNamedP
ropertiesObject(v8::Isolate* isolate, const DOMWrapperWorld& world) | 185 v8::Local<v8::FunctionTemplate> V8TestIntegerIndexedGlobal::domTemplateForNamedP
ropertiesObject(v8::Isolate* isolate, const DOMWrapperWorld& world) |
186 { | 186 { |
187 v8::Local<v8::FunctionTemplate> parentTemplate = V8None::domTemplate(isolate
, world); | 187 v8::Local<v8::FunctionTemplate> parentTemplate = V8None::domTemplate(isolate
, world); |
188 | 188 |
189 v8::Local<v8::FunctionTemplate> namedPropertiesObjectFunctionTemplate = v8::
FunctionTemplate::New(isolate); | 189 v8::Local<v8::FunctionTemplate> namedPropertiesObjectFunctionTemplate = v8::
FunctionTemplate::New(isolate, V8ObjectConstructor::isValidConstructorMode); |
190 namedPropertiesObjectFunctionTemplate->SetClassName(v8AtomicString(isolate,
"TestIntegerIndexedGlobalProperties")); | 190 namedPropertiesObjectFunctionTemplate->SetClassName(v8AtomicString(isolate,
"TestIntegerIndexedGlobalProperties")); |
191 namedPropertiesObjectFunctionTemplate->Inherit(parentTemplate); | 191 namedPropertiesObjectFunctionTemplate->Inherit(parentTemplate); |
192 | 192 |
193 v8::Local<v8::ObjectTemplate> namedPropertiesObjectTemplate = namedPropertie
sObjectFunctionTemplate->PrototypeTemplate(); | 193 v8::Local<v8::ObjectTemplate> namedPropertiesObjectTemplate = namedPropertie
sObjectFunctionTemplate->PrototypeTemplate(); |
194 namedPropertiesObjectTemplate->SetInternalFieldCount(V8TestIntegerIndexedGlo
bal::internalFieldCount); | 194 namedPropertiesObjectTemplate->SetInternalFieldCount(V8TestIntegerIndexedGlo
bal::internalFieldCount); |
195 V8DOMConfiguration::setClassString(isolate, namedPropertiesObjectTemplate, "
TestIntegerIndexedGlobalProperties"); | 195 V8DOMConfiguration::setClassString(isolate, namedPropertiesObjectTemplate, "
TestIntegerIndexedGlobalProperties"); |
196 v8::NamedPropertyHandlerConfiguration namedPropertyHandlerConfig(TestInteger
IndexedGlobalV8Internal::namedPropertyGetterCallback, TestIntegerIndexedGlobalV8
Internal::namedPropertySetterCallback, TestIntegerIndexedGlobalV8Internal::named
PropertyQueryCallback, TestIntegerIndexedGlobalV8Internal::namedPropertyDeleterC
allback, TestIntegerIndexedGlobalV8Internal::namedPropertyEnumeratorCallback, v8
::Local<v8::Value>(), static_cast<v8::PropertyHandlerFlags>(int(v8::PropertyHand
lerFlags::kOnlyInterceptStrings) | int(v8::PropertyHandlerFlags::kNonMasking))); | 196 v8::NamedPropertyHandlerConfiguration namedPropertyHandlerConfig(TestInteger
IndexedGlobalV8Internal::namedPropertyGetterCallback, TestIntegerIndexedGlobalV8
Internal::namedPropertySetterCallback, TestIntegerIndexedGlobalV8Internal::named
PropertyQueryCallback, TestIntegerIndexedGlobalV8Internal::namedPropertyDeleterC
allback, TestIntegerIndexedGlobalV8Internal::namedPropertyEnumeratorCallback, v8
::Local<v8::Value>(), static_cast<v8::PropertyHandlerFlags>(int(v8::PropertyHand
lerFlags::kOnlyInterceptStrings) | int(v8::PropertyHandlerFlags::kNonMasking))); |
197 namedPropertiesObjectTemplate->SetHandler(namedPropertyHandlerConfig); | 197 namedPropertiesObjectTemplate->SetHandler(namedPropertyHandlerConfig); |
198 | 198 |
199 return namedPropertiesObjectFunctionTemplate; | 199 return namedPropertiesObjectFunctionTemplate; |
200 } | 200 } |
201 | 201 |
202 bool V8TestIntegerIndexedGlobal::hasInstance(v8::Local<v8::Value> v8Value, v8::I
solate* isolate) | 202 bool V8TestIntegerIndexedGlobal::hasInstance(v8::Local<v8::Value> v8Value, v8::I
solate* isolate) |
203 { | 203 { |
204 return V8PerIsolateData::from(isolate)->hasInstance(&wrapperTypeInfo, v8Valu
e); | 204 return V8PerIsolateData::from(isolate)->hasInstance(&wrapperTypeInfo, v8Valu
e); |
205 } | 205 } |
206 | 206 |
207 v8::Local<v8::Object> V8TestIntegerIndexedGlobal::findInstanceInPrototypeChain(v
8::Local<v8::Value> v8Value, v8::Isolate* isolate) | 207 v8::Local<v8::Object> V8TestIntegerIndexedGlobal::findInstanceInPrototypeChain(v
8::Local<v8::Value> v8Value, v8::Isolate* isolate) |
208 { | 208 { |
209 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe
rTypeInfo, v8Value); | 209 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe
rTypeInfo, v8Value); |
210 } | 210 } |
211 | 211 |
212 TestIntegerIndexedGlobal* V8TestIntegerIndexedGlobal::toImplWithTypeCheck(v8::Is
olate* isolate, v8::Local<v8::Value> value) | 212 TestIntegerIndexedGlobal* V8TestIntegerIndexedGlobal::toImplWithTypeCheck(v8::Is
olate* isolate, v8::Local<v8::Value> value) |
213 { | 213 { |
214 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(valu
e)) : nullptr; | 214 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(valu
e)) : nullptr; |
215 } | 215 } |
216 | 216 |
217 } // namespace blink | 217 } // namespace blink |
OLD | NEW |