| 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 TestInterface2Partial2::voidMethodPartial2(*impl, value); | 62 TestInterface2Partial2::voidMethodPartial2(*impl, value); |
| 63 } | 63 } |
| 64 | 64 |
| 65 void voidMethodPartial2MethodCallback(const v8::FunctionCallbackInfo<v8::Value>&
info) { | 65 void voidMethodPartial2MethodCallback(const v8::FunctionCallbackInfo<v8::Value>&
info) { |
| 66 TestInterface2PartialV8Internal::voidMethodPartial2Method(info); | 66 TestInterface2PartialV8Internal::voidMethodPartial2Method(info); |
| 67 } | 67 } |
| 68 | 68 |
| 69 } // namespace TestInterface2PartialV8Internal | 69 } // namespace TestInterface2PartialV8Internal |
| 70 | 70 |
| 71 const V8DOMConfiguration::MethodConfiguration V8TestInterface2Methods[] = { | 71 const V8DOMConfiguration::MethodConfiguration V8TestInterface2Methods[] = { |
| 72 {"voidMethodPartial2", TestInterface2PartialV8Internal::voidMethodPartial2Me
thodCallback, 0, 1, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConf
iguration::OnPrototype, V8DOMConfiguration::CheckHolder}, | 72 {"voidMethodPartial2", TestInterface2PartialV8Internal::voidMethodPartial2Me
thodCallback, 0, 1, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguratio
n::CheckHolder}, |
| 73 }; | 73 }; |
| 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 |
| 85 // Register DOM constants, attributes and operations. | 85 // Register DOM constants, attributes and operations. |
| 86 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)); |
| 87 | 87 |
| 88 if (RuntimeEnabledFeatures::interface2PartialFeatureNameEnabled()) { | 88 if (RuntimeEnabledFeatures::interface2PartialFeatureNameEnabled()) { |
| 89 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::OnPrototype, V8DOMConf
iguration::CheckHolder}; |
| 90 V8DOMConfiguration::installMethod(isolate, world, instanceTemplate, protot
ypeTemplate, interfaceTemplate, signature, voidMethodPartial1MethodConfiguration
); | 90 V8DOMConfiguration::installMethod(isolate, world, instanceTemplate, protot
ypeTemplate, interfaceTemplate, signature, voidMethodPartial1MethodConfiguration
); |
| 91 } | 91 } |
| 92 } | 92 } |
| 93 | 93 |
| 94 void V8TestInterface2Partial::initialize() { | 94 void V8TestInterface2Partial::initialize() { |
| 95 // Should be invoked from ModulesInitializer. | 95 // Should be invoked from ModulesInitializer. |
| 96 V8TestInterface2::updateWrapperTypeInfo( | 96 V8TestInterface2::updateWrapperTypeInfo( |
| 97 &V8TestInterface2Partial::installV8TestInterface2Template, | 97 &V8TestInterface2Partial::installV8TestInterface2Template, |
| 98 nullptr); | 98 nullptr); |
| 99 } | 99 } |
| 100 | 100 |
| 101 } // namespace blink | 101 } // namespace blink |
| OLD | NEW |