| 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 "V8TestInterface2Partial.h" | 9 #include "V8TestInterface2Partial.h" |
| 10 | 10 |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 | 74 |
| 75 void V8TestInterface2Partial::installV8TestInterface2Template(v8::Isolate* isola
te, const DOMWrapperWorld& world, v8::Local<v8::FunctionTemplate> interfaceTempl
ate) { | 75 void V8TestInterface2Partial::installV8TestInterface2Template(v8::Isolate* isola
te, const DOMWrapperWorld& world, v8::Local<v8::FunctionTemplate> interfaceTempl
ate) { |
| 76 // Initialize the interface object's template. | 76 // Initialize the interface object's template. |
| 77 V8TestInterface2::installV8TestInterface2Template(isolate, world, interfaceTem
plate); | 77 V8TestInterface2::installV8TestInterface2Template(isolate, world, interfaceTem
plate); |
| 78 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTemp
late); | 78 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTemp
late); |
| 79 ALLOW_UNUSED_LOCAL(signature); | 79 ALLOW_UNUSED_LOCAL(signature); |
| 80 v8::Local<v8::ObjectTemplate> instanceTemplate = interfaceTemplate->InstanceTe
mplate(); | 80 v8::Local<v8::ObjectTemplate> instanceTemplate = interfaceTemplate->InstanceTe
mplate(); |
| 81 ALLOW_UNUSED_LOCAL(instanceTemplate); | 81 ALLOW_UNUSED_LOCAL(instanceTemplate); |
| 82 v8::Local<v8::ObjectTemplate> prototypeTemplate = interfaceTemplate->Prototype
Template(); | 82 v8::Local<v8::ObjectTemplate> prototypeTemplate = interfaceTemplate->Prototype
Template(); |
| 83 ALLOW_UNUSED_LOCAL(prototypeTemplate); | 83 ALLOW_UNUSED_LOCAL(prototypeTemplate); |
| 84 |
| 84 // Register DOM constants, attributes and operations. | 85 // Register DOM constants, attributes and operations. |
| 85 V8DOMConfiguration::installMethods(isolate, world, instanceTemplate, prototype
Template, interfaceTemplate, signature, V8TestInterface2Methods, WTF_ARRAY_LENGT
H(V8TestInterface2Methods)); | 86 V8DOMConfiguration::installMethods(isolate, world, instanceTemplate, prototype
Template, interfaceTemplate, signature, V8TestInterface2Methods, WTF_ARRAY_LENGT
H(V8TestInterface2Methods)); |
| 86 | 87 |
| 87 if (RuntimeEnabledFeatures::interface2PartialFeatureNameEnabled()) { | 88 if (RuntimeEnabledFeatures::interface2PartialFeatureNameEnabled()) { |
| 88 const V8DOMConfiguration::MethodConfiguration voidMethodPartial1MethodConf
iguration = {"voidMethodPartial1", TestInterface2PartialV8Internal::voidMethodPa
rtial1MethodCallback, 0, 1, v8::None, V8DOMConfiguration::ExposedToAllScripts, V
8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}; | 89 const V8DOMConfiguration::MethodConfiguration voidMethodPartial1MethodConf
iguration = {"voidMethodPartial1", TestInterface2PartialV8Internal::voidMethodPa
rtial1MethodCallback, 0, 1, v8::None, V8DOMConfiguration::ExposedToAllScripts, V
8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}; |
| 89 V8DOMConfiguration::installMethod(isolate, world, instanceTemplate, protot
ypeTemplate, interfaceTemplate, signature, voidMethodPartial1MethodConfiguration
); | 90 V8DOMConfiguration::installMethod(isolate, world, instanceTemplate, protot
ypeTemplate, interfaceTemplate, signature, voidMethodPartial1MethodConfiguration
); |
| 90 } | 91 } |
| 91 } | 92 } |
| 92 | 93 |
| 93 void V8TestInterface2Partial::initialize() { | 94 void V8TestInterface2Partial::initialize() { |
| 94 // Should be invoked from ModulesInitializer. | 95 // Should be invoked from ModulesInitializer. |
| 95 V8TestInterface2::updateWrapperTypeInfo( | 96 V8TestInterface2::updateWrapperTypeInfo( |
| 96 &V8TestInterface2Partial::installV8TestInterface2Template, | 97 &V8TestInterface2Partial::installV8TestInterface2Template, |
| 97 nullptr); | 98 nullptr); |
| 98 } | 99 } |
| 99 | 100 |
| 100 } // namespace blink | 101 } // namespace blink |
| OLD | NEW |