| 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 "config.h" | 7 #include "config.h" |
| 8 #if ENABLE(CONDITION) | 8 #if ENABLE(CONDITION) |
| 9 #include "V8TestInterfacePartial.h" | 9 #include "V8TestInterfacePartial.h" |
| 10 | 10 |
| (...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 317 ALLOW_UNUSED_LOCAL(instanceTemplate); | 317 ALLOW_UNUSED_LOCAL(instanceTemplate); |
| 318 v8::Local<v8::ObjectTemplate> prototypeTemplate = functionTemplate->Prototyp
eTemplate(); | 318 v8::Local<v8::ObjectTemplate> prototypeTemplate = functionTemplate->Prototyp
eTemplate(); |
| 319 ALLOW_UNUSED_LOCAL(prototypeTemplate); | 319 ALLOW_UNUSED_LOCAL(prototypeTemplate); |
| 320 static const V8DOMConfiguration::ConstantConfiguration V8TestInterfaceConsta
nts[] = { | 320 static const V8DOMConfiguration::ConstantConfiguration V8TestInterfaceConsta
nts[] = { |
| 321 {"PARTIAL3_UNSIGNED_SHORT", 0, 0, 0, V8DOMConfiguration::ConstantTypeUns
ignedShort}, | 321 {"PARTIAL3_UNSIGNED_SHORT", 0, 0, 0, V8DOMConfiguration::ConstantTypeUns
ignedShort}, |
| 322 }; | 322 }; |
| 323 V8DOMConfiguration::installConstants(isolate, functionTemplate, prototypeTem
plate, V8TestInterfaceConstants, WTF_ARRAY_LENGTH(V8TestInterfaceConstants)); | 323 V8DOMConfiguration::installConstants(isolate, functionTemplate, prototypeTem
plate, V8TestInterfaceConstants, WTF_ARRAY_LENGTH(V8TestInterfaceConstants)); |
| 324 functionTemplate->InstanceTemplate()->SetCallAsFunctionHandler(V8TestInterfa
ce::legacyCallCustom); | 324 functionTemplate->InstanceTemplate()->SetCallAsFunctionHandler(V8TestInterfa
ce::legacyCallCustom); |
| 325 } | 325 } |
| 326 | 326 |
| 327 void V8TestInterfacePartial::preparePrototypeObject(v8::Isolate* isolate, v8::Lo
cal<v8::Object> prototypeObject) | 327 void V8TestInterfacePartial::preparePrototypeObject(v8::Isolate* isolate, v8::Lo
cal<v8::Object> prototypeObject, v8::Local<v8::FunctionTemplate> interfaceTempla
te) |
| 328 { | 328 { |
| 329 V8TestInterface::preparePrototypeObject(isolate, prototypeObject); | 329 V8TestInterface::preparePrototypeObject(isolate, prototypeObject, interfaceT
emplate); |
| 330 v8::Local<v8::Context> v8Context(prototypeObject->CreationContext()); | 330 v8::Local<v8::Context> v8Context(prototypeObject->CreationContext()); |
| 331 v8::Local<v8::Name> unscopablesSymbol(v8::Symbol::GetUnscopables(isolate)); | 331 v8::Local<v8::Name> unscopablesSymbol(v8::Symbol::GetUnscopables(isolate)); |
| 332 v8::Local<v8::Object> unscopeables; | 332 v8::Local<v8::Object> unscopeables; |
| 333 if (v8CallBoolean(prototypeObject->HasOwnProperty(v8Context, unscopablesSymb
ol))) | 333 if (v8CallBoolean(prototypeObject->HasOwnProperty(v8Context, unscopablesSymb
ol))) |
| 334 unscopeables = prototypeObject->Get(v8Context, unscopablesSymbol).ToLoca
lChecked().As<v8::Object>(); | 334 unscopeables = prototypeObject->Get(v8Context, unscopablesSymbol).ToLoca
lChecked().As<v8::Object>(); |
| 335 else | 335 else |
| 336 unscopeables = v8::Object::New(isolate); | 336 unscopeables = v8::Object::New(isolate); |
| 337 unscopeables->CreateDataProperty(v8Context, v8AtomicString(isolate, "unscope
ableVoidMethod"), v8::True(isolate)).FromJust(); | 337 unscopeables->CreateDataProperty(v8Context, v8AtomicString(isolate, "unscope
ableVoidMethod"), v8::True(isolate)).FromJust(); |
| 338 prototypeObject->CreateDataProperty(v8Context, unscopablesSymbol, unscopeabl
es).FromJust(); | 338 prototypeObject->CreateDataProperty(v8Context, unscopablesSymbol, unscopeabl
es).FromJust(); |
| 339 } | 339 } |
| 340 | 340 |
| 341 void V8TestInterfacePartial::initialize() | 341 void V8TestInterfacePartial::initialize() |
| 342 { | 342 { |
| 343 // Should be invoked from initModules. | 343 // Should be invoked from initModules. |
| 344 V8TestInterface::updateWrapperTypeInfo( | 344 V8TestInterface::updateWrapperTypeInfo( |
| 345 &V8TestInterfacePartial::installV8TestInterfaceTemplate, | 345 &V8TestInterfacePartial::installV8TestInterfaceTemplate, |
| 346 &V8TestInterfacePartial::preparePrototypeObject); | 346 &V8TestInterfacePartial::preparePrototypeObject); |
| 347 V8TestInterface::registerVoidMethodPartialOverloadMethodForPartialInterface(
&TestInterfaceImplementationPartialV8Internal::voidMethodPartialOverloadMethod); | 347 V8TestInterface::registerVoidMethodPartialOverloadMethodForPartialInterface(
&TestInterfaceImplementationPartialV8Internal::voidMethodPartialOverloadMethod); |
| 348 V8TestInterface::registerStaticVoidMethodPartialOverloadMethodForPartialInte
rface(&TestInterfaceImplementationPartialV8Internal::staticVoidMethodPartialOver
loadMethod); | 348 V8TestInterface::registerStaticVoidMethodPartialOverloadMethodForPartialInte
rface(&TestInterfaceImplementationPartialV8Internal::staticVoidMethodPartialOver
loadMethod); |
| 349 V8TestInterface::registerPromiseMethodPartialOverloadMethodForPartialInterfa
ce(&TestInterfaceImplementationPartialV8Internal::promiseMethodPartialOverloadMe
thod); | 349 V8TestInterface::registerPromiseMethodPartialOverloadMethodForPartialInterfa
ce(&TestInterfaceImplementationPartialV8Internal::promiseMethodPartialOverloadMe
thod); |
| 350 V8TestInterface::registerStaticPromiseMethodPartialOverloadMethodForPartialI
nterface(&TestInterfaceImplementationPartialV8Internal::staticPromiseMethodParti
alOverloadMethod); | 350 V8TestInterface::registerStaticPromiseMethodPartialOverloadMethodForPartialI
nterface(&TestInterfaceImplementationPartialV8Internal::staticPromiseMethodParti
alOverloadMethod); |
| 351 V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(&TestIn
terfaceImplementationPartialV8Internal::partial2VoidMethodMethod); | 351 V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(&TestIn
terfaceImplementationPartialV8Internal::partial2VoidMethodMethod); |
| 352 V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(&
TestInterfaceImplementationPartialV8Internal::partial2StaticVoidMethodMethod); | 352 V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(&
TestInterfaceImplementationPartialV8Internal::partial2StaticVoidMethodMethod); |
| 353 } | 353 } |
| 354 | 354 |
| 355 } // namespace blink | 355 } // namespace blink |
| 356 #endif // ENABLE(CONDITION) | 356 #endif // ENABLE(CONDITION) |
| OLD | NEW |