| 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 // clang-format off | 7 // clang-format off |
| 8 #include "V8TestInterface2Partial.h" | 8 #include "V8TestInterface2Partial.h" |
| 9 | 9 |
| 10 #include "bindings/core/v8/ExceptionState.h" | 10 #include "bindings/core/v8/ExceptionState.h" |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 } | 65 } |
| 66 | 66 |
| 67 void voidMethodPartial2MethodCallback(const v8::FunctionCallbackInfo<v8::Value>&
info) | 67 void voidMethodPartial2MethodCallback(const v8::FunctionCallbackInfo<v8::Value>&
info) |
| 68 { | 68 { |
| 69 TestInterface2PartialV8Internal::voidMethodPartial2Method(info); | 69 TestInterface2PartialV8Internal::voidMethodPartial2Method(info); |
| 70 } | 70 } |
| 71 | 71 |
| 72 } // namespace TestInterface2PartialV8Internal | 72 } // namespace TestInterface2PartialV8Internal |
| 73 | 73 |
| 74 const V8DOMConfiguration::MethodConfiguration V8TestInterface2Methods[] = { | 74 const V8DOMConfiguration::MethodConfiguration V8TestInterface2Methods[] = { |
| 75 {"voidMethodPartial2", TestInterface2PartialV8Internal::voidMethodPartial2Me
thodCallback, 0, 1, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConf
iguration::OnPrototype}, | 75 {"voidMethodPartial2", TestInterface2PartialV8Internal::voidMethodPartial2Me
thodCallback, 0, 1, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConf
iguration::OnPrototype, V8DOMConfiguration::CheckHolder}, |
| 76 }; | 76 }; |
| 77 | 77 |
| 78 void V8TestInterface2Partial::installV8TestInterface2Template(v8::Isolate* isola
te, const DOMWrapperWorld& world, v8::Local<v8::FunctionTemplate> interfaceTempl
ate) | 78 void V8TestInterface2Partial::installV8TestInterface2Template(v8::Isolate* isola
te, const DOMWrapperWorld& world, v8::Local<v8::FunctionTemplate> interfaceTempl
ate) |
| 79 { | 79 { |
| 80 // Initialize the interface object's template. | 80 // Initialize the interface object's template. |
| 81 V8TestInterface2::installV8TestInterface2Template(isolate, world, interfaceT
emplate); | 81 V8TestInterface2::installV8TestInterface2Template(isolate, world, interfaceT
emplate); |
| 82 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTe
mplate); | 82 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTe
mplate); |
| 83 ALLOW_UNUSED_LOCAL(signature); | 83 ALLOW_UNUSED_LOCAL(signature); |
| 84 v8::Local<v8::ObjectTemplate> instanceTemplate = interfaceTemplate->Instance
Template(); | 84 v8::Local<v8::ObjectTemplate> instanceTemplate = interfaceTemplate->Instance
Template(); |
| 85 ALLOW_UNUSED_LOCAL(instanceTemplate); | 85 ALLOW_UNUSED_LOCAL(instanceTemplate); |
| 86 v8::Local<v8::ObjectTemplate> prototypeTemplate = interfaceTemplate->Prototy
peTemplate(); | 86 v8::Local<v8::ObjectTemplate> prototypeTemplate = interfaceTemplate->Prototy
peTemplate(); |
| 87 ALLOW_UNUSED_LOCAL(prototypeTemplate); | 87 ALLOW_UNUSED_LOCAL(prototypeTemplate); |
| 88 // Register DOM constants, attributes and operations. | 88 // Register DOM constants, attributes and operations. |
| 89 V8DOMConfiguration::installMethods(isolate, world, instanceTemplate, prototy
peTemplate, interfaceTemplate, signature, V8TestInterface2Methods, WTF_ARRAY_LEN
GTH(V8TestInterface2Methods)); | 89 V8DOMConfiguration::installMethods(isolate, world, instanceTemplate, prototy
peTemplate, interfaceTemplate, signature, V8TestInterface2Methods, WTF_ARRAY_LEN
GTH(V8TestInterface2Methods)); |
| 90 | 90 |
| 91 if (RuntimeEnabledFeatures::interface2PartialFeatureNameEnabled()) { | 91 if (RuntimeEnabledFeatures::interface2PartialFeatureNameEnabled()) { |
| 92 const V8DOMConfiguration::MethodConfiguration voidMethodPartial1MethodCo
nfiguration = {"voidMethodPartial1", TestInterface2PartialV8Internal::voidMethod
Partial1MethodCallback, 0, 1, v8::None, V8DOMConfiguration::ExposedToAllScripts,
V8DOMConfiguration::OnPrototype}; | 92 const V8DOMConfiguration::MethodConfiguration voidMethodPartial1MethodCo
nfiguration = {"voidMethodPartial1", TestInterface2PartialV8Internal::voidMethod
Partial1MethodCallback, 0, 1, v8::None, V8DOMConfiguration::ExposedToAllScripts,
V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}; |
| 93 V8DOMConfiguration::installMethod(isolate, world, instanceTemplate, prot
otypeTemplate, interfaceTemplate, signature, voidMethodPartial1MethodConfigurati
on); | 93 V8DOMConfiguration::installMethod(isolate, world, instanceTemplate, prot
otypeTemplate, interfaceTemplate, signature, voidMethodPartial1MethodConfigurati
on); |
| 94 } | 94 } |
| 95 } | 95 } |
| 96 | 96 |
| 97 void V8TestInterface2Partial::initialize() | 97 void V8TestInterface2Partial::initialize() |
| 98 { | 98 { |
| 99 // Should be invoked from ModulesInitializer. | 99 // Should be invoked from ModulesInitializer. |
| 100 V8TestInterface2::updateWrapperTypeInfo( | 100 V8TestInterface2::updateWrapperTypeInfo( |
| 101 &V8TestInterface2Partial::installV8TestInterface2Template, | 101 &V8TestInterface2Partial::installV8TestInterface2Template, |
| 102 nullptr); | 102 nullptr); |
| 103 } | 103 } |
| 104 | 104 |
| 105 } // namespace blink | 105 } // namespace blink |
| OLD | NEW |