| 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 // This file has been generated from the Jinja2 template in | 8 // This file has been generated from the Jinja2 template in |
| 9 // third_party/WebKit/Source/bindings/templates/partial_interface.cpp.tmpl | 9 // third_party/WebKit/Source/bindings/templates/partial_interface.cpp.tmpl |
| 10 | 10 |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 } | 67 } |
| 68 | 68 |
| 69 void V8TestInterface2Partial::voidMethodPartial2MethodCallback(const v8::Functio
nCallbackInfo<v8::Value>& info) { | 69 void V8TestInterface2Partial::voidMethodPartial2MethodCallback(const v8::Functio
nCallbackInfo<v8::Value>& info) { |
| 70 TestInterface2PartialV8Internal::voidMethodPartial2Method(info); | 70 TestInterface2PartialV8Internal::voidMethodPartial2Method(info); |
| 71 } | 71 } |
| 72 | 72 |
| 73 static const V8DOMConfiguration::MethodConfiguration V8TestInterface2Methods[] =
{ | 73 static const V8DOMConfiguration::MethodConfiguration V8TestInterface2Methods[] =
{ |
| 74 {"voidMethodPartial2", V8TestInterface2Partial::voidMethodPartial2MethodCall
back, 1, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckH
older, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kAllWorlds}, | 74 {"voidMethodPartial2", V8TestInterface2Partial::voidMethodPartial2MethodCall
back, 1, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckH
older, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kAllWorlds}, |
| 75 }; | 75 }; |
| 76 | 76 |
| 77 void V8TestInterface2Partial::installV8TestInterface2Template(v8::Isolate* isola
te, const DOMWrapperWorld& world, v8::Local<v8::FunctionTemplate> interfaceTempl
ate) { | 77 void V8TestInterface2Partial::installV8TestInterface2Template( |
| 78 v8::Isolate* isolate, |
| 79 const DOMWrapperWorld& world, |
| 80 v8::Local<v8::FunctionTemplate> interfaceTemplate) { |
| 78 // Initialize the interface object's template. | 81 // Initialize the interface object's template. |
| 79 V8TestInterface2::installV8TestInterface2Template(isolate, world, interfaceTem
plate); | 82 V8TestInterface2::installV8TestInterface2Template(isolate, world, interfaceTem
plate); |
| 80 | 83 |
| 81 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTemp
late); | 84 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTemp
late); |
| 82 ALLOW_UNUSED_LOCAL(signature); | 85 ALLOW_UNUSED_LOCAL(signature); |
| 83 v8::Local<v8::ObjectTemplate> instanceTemplate = interfaceTemplate->InstanceTe
mplate(); | 86 v8::Local<v8::ObjectTemplate> instanceTemplate = interfaceTemplate->InstanceTe
mplate(); |
| 84 ALLOW_UNUSED_LOCAL(instanceTemplate); | 87 ALLOW_UNUSED_LOCAL(instanceTemplate); |
| 85 v8::Local<v8::ObjectTemplate> prototypeTemplate = interfaceTemplate->Prototype
Template(); | 88 v8::Local<v8::ObjectTemplate> prototypeTemplate = interfaceTemplate->Prototype
Template(); |
| 86 ALLOW_UNUSED_LOCAL(prototypeTemplate); | 89 ALLOW_UNUSED_LOCAL(prototypeTemplate); |
| 87 | 90 |
| 88 // Register DOM constants, attributes and operations. | 91 // Register IDL constants, attributes and operations. |
| 89 V8DOMConfiguration::InstallMethods(isolate, world, instanceTemplate, prototype
Template, interfaceTemplate, signature, V8TestInterface2Methods, WTF_ARRAY_LENGT
H(V8TestInterface2Methods)); | 92 V8DOMConfiguration::InstallMethods(isolate, world, instanceTemplate, prototype
Template, interfaceTemplate, signature, V8TestInterface2Methods, WTF_ARRAY_LENGT
H(V8TestInterface2Methods)); |
| 90 | 93 |
| 91 if (RuntimeEnabledFeatures::Interface2PartialFeatureNameEnabled()) { | 94 if (RuntimeEnabledFeatures::Interface2PartialFeatureNameEnabled()) { |
| 92 const V8DOMConfiguration::MethodConfiguration voidMethodPartial1MethodConfig
uration[] = { | 95 const V8DOMConfiguration::MethodConfiguration voidMethodPartial1MethodConfig
uration[] = { |
| 93 {"voidMethodPartial1", V8TestInterface2Partial::voidMethodPartial1MethodCa
llback, 1, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kChec
kHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kAllWorlds} | 96 {"voidMethodPartial1", V8TestInterface2Partial::voidMethodPartial1MethodCa
llback, 1, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kChec
kHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kAllWorlds} |
| 94 }; | 97 }; |
| 95 for (const auto& methodConfig : voidMethodPartial1MethodConfiguration) | 98 for (const auto& methodConfig : voidMethodPartial1MethodConfiguration) |
| 96 V8DOMConfiguration::InstallMethod(isolate, world, instanceTemplate, protot
ypeTemplate, interfaceTemplate, signature, methodConfig); | 99 V8DOMConfiguration::InstallMethod(isolate, world, instanceTemplate, protot
ypeTemplate, interfaceTemplate, signature, methodConfig); |
| 97 } | 100 } |
| 98 } | 101 } |
| 99 | 102 |
| 100 void V8TestInterface2Partial::initialize() { | 103 void V8TestInterface2Partial::initialize() { |
| 101 // Should be invoked from ModulesInitializer. | 104 // Should be invoked from ModulesInitializer. |
| 102 V8TestInterface2::updateWrapperTypeInfo( | 105 V8TestInterface2::updateWrapperTypeInfo( |
| 103 &V8TestInterface2Partial::installV8TestInterface2Template, | 106 &V8TestInterface2Partial::installV8TestInterface2Template, |
| 104 nullptr, | 107 nullptr, |
| 108 nullptr, |
| 105 nullptr); | 109 nullptr); |
| 106 } | 110 } |
| 107 | 111 |
| 108 } // namespace blink | 112 } // namespace blink |
| OLD | NEW |