| 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 "V8TestInterfacePartial.h" | 7 #include "V8TestInterfacePartial.h" |
| 8 | 8 |
| 9 #include "bindings/core/v8/ExceptionState.h" | 9 #include "bindings/core/v8/ExceptionState.h" |
| 10 #include "bindings/core/v8/PrivateScriptRunner.h" | 10 #include "bindings/core/v8/PrivateScriptRunner.h" |
| (...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 302 ALLOW_UNUSED_LOCAL(instanceTemplate); | 302 ALLOW_UNUSED_LOCAL(instanceTemplate); |
| 303 v8::Local<v8::ObjectTemplate> prototypeTemplate = interfaceTemplate->Prototy
peTemplate(); | 303 v8::Local<v8::ObjectTemplate> prototypeTemplate = interfaceTemplate->Prototy
peTemplate(); |
| 304 ALLOW_UNUSED_LOCAL(prototypeTemplate); | 304 ALLOW_UNUSED_LOCAL(prototypeTemplate); |
| 305 // Register DOM constants, attributes and operations. | 305 // Register DOM constants, attributes and operations. |
| 306 if (RuntimeEnabledFeatures::featureNameEnabled()) { | 306 if (RuntimeEnabledFeatures::featureNameEnabled()) { |
| 307 const V8DOMConfiguration::ConstantConfiguration V8TestInterfaceConstants
[] = { | 307 const V8DOMConfiguration::ConstantConfiguration V8TestInterfaceConstants
[] = { |
| 308 {"PARTIAL3_UNSIGNED_SHORT", 0, 0, V8DOMConfiguration::ConstantTypeUn
signedShort}, | 308 {"PARTIAL3_UNSIGNED_SHORT", 0, 0, V8DOMConfiguration::ConstantTypeUn
signedShort}, |
| 309 }; | 309 }; |
| 310 V8DOMConfiguration::installConstants(isolate, interfaceTemplate, prototy
peTemplate, V8TestInterfaceConstants, WTF_ARRAY_LENGTH(V8TestInterfaceConstants)
); | 310 V8DOMConfiguration::installConstants(isolate, interfaceTemplate, prototy
peTemplate, V8TestInterfaceConstants, WTF_ARRAY_LENGTH(V8TestInterfaceConstants)
); |
| 311 V8DOMConfiguration::installMethods(isolate, world, instanceTemplate, pro
totypeTemplate, interfaceTemplate, signature, V8TestInterfaceMethods, WTF_ARRAY_
LENGTH(V8TestInterfaceMethods)); | 311 V8DOMConfiguration::installMethods(isolate, world, instanceTemplate, pro
totypeTemplate, interfaceTemplate, signature, V8TestInterfaceMethods, WTF_ARRAY_
LENGTH(V8TestInterfaceMethods)); |
| 312 } // if (RuntimeEnabledFeatures::featureNameEnabled()) | 312 } |
| 313 } | 313 } |
| 314 | 314 |
| 315 void V8TestInterfacePartial::preparePrototypeAndInterfaceObject(v8::Local<v8::Co
ntext> context, const DOMWrapperWorld& world, v8::Local<v8::Object> prototypeObj
ect, v8::Local<v8::Function> interfaceObject, v8::Local<v8::FunctionTemplate> in
terfaceTemplate) | 315 void V8TestInterfacePartial::preparePrototypeAndInterfaceObject(v8::Local<v8::Co
ntext> context, const DOMWrapperWorld& world, v8::Local<v8::Object> prototypeObj
ect, v8::Local<v8::Function> interfaceObject, v8::Local<v8::FunctionTemplate> in
terfaceTemplate) |
| 316 { | 316 { |
| 317 V8TestInterface::preparePrototypeAndInterfaceObject(context, world, prototyp
eObject, interfaceObject, interfaceTemplate); | 317 V8TestInterface::preparePrototypeAndInterfaceObject(context, world, prototyp
eObject, interfaceObject, interfaceTemplate); |
| 318 v8::Isolate* isolate = context->GetIsolate(); | 318 v8::Isolate* isolate = context->GetIsolate(); |
| 319 v8::Local<v8::Name> unscopablesSymbol(v8::Symbol::GetUnscopables(isolate)); | 319 v8::Local<v8::Name> unscopablesSymbol(v8::Symbol::GetUnscopables(isolate)); |
| 320 v8::Local<v8::Object> unscopeables; | 320 v8::Local<v8::Object> unscopeables; |
| 321 if (v8CallBoolean(prototypeObject->HasOwnProperty(context, unscopablesSymbol
))) | 321 if (v8CallBoolean(prototypeObject->HasOwnProperty(context, unscopablesSymbol
))) |
| 322 unscopeables = prototypeObject->Get(context, unscopablesSymbol).ToLocalC
hecked().As<v8::Object>(); | 322 unscopeables = prototypeObject->Get(context, unscopablesSymbol).ToLocalC
hecked().As<v8::Object>(); |
| (...skipping 11 matching lines...) Expand all Loading... |
| 334 &V8TestInterfacePartial::preparePrototypeAndInterfaceObject); | 334 &V8TestInterfacePartial::preparePrototypeAndInterfaceObject); |
| 335 V8TestInterface::registerVoidMethodPartialOverloadMethodForPartialInterface(
&TestInterfaceImplementationPartialV8Internal::voidMethodPartialOverloadMethod); | 335 V8TestInterface::registerVoidMethodPartialOverloadMethodForPartialInterface(
&TestInterfaceImplementationPartialV8Internal::voidMethodPartialOverloadMethod); |
| 336 V8TestInterface::registerStaticVoidMethodPartialOverloadMethodForPartialInte
rface(&TestInterfaceImplementationPartialV8Internal::staticVoidMethodPartialOver
loadMethod); | 336 V8TestInterface::registerStaticVoidMethodPartialOverloadMethodForPartialInte
rface(&TestInterfaceImplementationPartialV8Internal::staticVoidMethodPartialOver
loadMethod); |
| 337 V8TestInterface::registerPromiseMethodPartialOverloadMethodForPartialInterfa
ce(&TestInterfaceImplementationPartialV8Internal::promiseMethodPartialOverloadMe
thod); | 337 V8TestInterface::registerPromiseMethodPartialOverloadMethodForPartialInterfa
ce(&TestInterfaceImplementationPartialV8Internal::promiseMethodPartialOverloadMe
thod); |
| 338 V8TestInterface::registerStaticPromiseMethodPartialOverloadMethodForPartialI
nterface(&TestInterfaceImplementationPartialV8Internal::staticPromiseMethodParti
alOverloadMethod); | 338 V8TestInterface::registerStaticPromiseMethodPartialOverloadMethodForPartialI
nterface(&TestInterfaceImplementationPartialV8Internal::staticPromiseMethodParti
alOverloadMethod); |
| 339 V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(&TestIn
terfaceImplementationPartialV8Internal::partial2VoidMethodMethod); | 339 V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(&TestIn
terfaceImplementationPartialV8Internal::partial2VoidMethodMethod); |
| 340 V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(&
TestInterfaceImplementationPartialV8Internal::partial2StaticVoidMethodMethod); | 340 V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(&
TestInterfaceImplementationPartialV8Internal::partial2StaticVoidMethodMethod); |
| 341 } | 341 } |
| 342 | 342 |
| 343 } // namespace blink | 343 } // namespace blink |
| OLD | NEW |