| 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 | 62 |
| 63 void V8TestInterface2Partial::voidMethodPartial1MethodCallback(const v8::Functio
nCallbackInfo<v8::Value>& info) { | 63 void V8TestInterface2Partial::voidMethodPartial1MethodCallback(const v8::Functio
nCallbackInfo<v8::Value>& info) { |
| 64 TestInterface2PartialV8Internal::voidMethodPartial1Method(info); | 64 TestInterface2PartialV8Internal::voidMethodPartial1Method(info); |
| 65 } | 65 } |
| 66 | 66 |
| 67 void V8TestInterface2Partial::voidMethodPartial2MethodCallback(const v8::Functio
nCallbackInfo<v8::Value>& info) { | 67 void V8TestInterface2Partial::voidMethodPartial2MethodCallback(const v8::Functio
nCallbackInfo<v8::Value>& info) { |
| 68 TestInterface2PartialV8Internal::voidMethodPartial2Method(info); | 68 TestInterface2PartialV8Internal::voidMethodPartial2Method(info); |
| 69 } | 69 } |
| 70 | 70 |
| 71 const V8DOMConfiguration::MethodConfiguration V8TestInterface2Methods[] = { | 71 const V8DOMConfiguration::MethodConfiguration V8TestInterface2Methods[] = { |
| 72 {"voidMethodPartial2", V8TestInterface2Partial::voidMethodPartial2MethodCall
back, nullptr, 1, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration:
:CheckHolder}, | 72 {"voidMethodPartial2", V8TestInterface2Partial::voidMethodPartial2MethodCall
back, nullptr, 1, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration:
:CheckHolder, V8DOMConfiguration::DoNotCheckAccess}, |
| 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 | 78 |
| 79 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTemp
late); | 79 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTemp
late); |
| 80 ALLOW_UNUSED_LOCAL(signature); | 80 ALLOW_UNUSED_LOCAL(signature); |
| 81 v8::Local<v8::ObjectTemplate> instanceTemplate = interfaceTemplate->InstanceTe
mplate(); | 81 v8::Local<v8::ObjectTemplate> instanceTemplate = interfaceTemplate->InstanceTe
mplate(); |
| 82 ALLOW_UNUSED_LOCAL(instanceTemplate); | 82 ALLOW_UNUSED_LOCAL(instanceTemplate); |
| 83 v8::Local<v8::ObjectTemplate> prototypeTemplate = interfaceTemplate->Prototype
Template(); | 83 v8::Local<v8::ObjectTemplate> prototypeTemplate = interfaceTemplate->Prototype
Template(); |
| 84 ALLOW_UNUSED_LOCAL(prototypeTemplate); | 84 ALLOW_UNUSED_LOCAL(prototypeTemplate); |
| 85 | 85 |
| 86 // Register DOM constants, attributes and operations. | 86 // Register DOM constants, attributes and operations. |
| 87 V8DOMConfiguration::installMethods(isolate, world, instanceTemplate, prototype
Template, interfaceTemplate, signature, V8TestInterface2Methods, WTF_ARRAY_LENGT
H(V8TestInterface2Methods)); | 87 V8DOMConfiguration::installMethods(isolate, world, instanceTemplate, prototype
Template, interfaceTemplate, signature, V8TestInterface2Methods, WTF_ARRAY_LENGT
H(V8TestInterface2Methods)); |
| 88 | 88 |
| 89 if (RuntimeEnabledFeatures::interface2PartialFeatureNameEnabled()) { | 89 if (RuntimeEnabledFeatures::interface2PartialFeatureNameEnabled()) { |
| 90 const V8DOMConfiguration::MethodConfiguration voidMethodPartial1MethodConfig
uration = {"voidMethodPartial1", V8TestInterface2Partial::voidMethodPartial1Meth
odCallback, nullptr, 1, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfigur
ation::CheckHolder}; | 90 const V8DOMConfiguration::MethodConfiguration voidMethodPartial1MethodConfig
uration = {"voidMethodPartial1", V8TestInterface2Partial::voidMethodPartial1Meth
odCallback, nullptr, 1, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfigur
ation::CheckHolder, V8DOMConfiguration::DoNotCheckAccess}; |
| 91 V8DOMConfiguration::installMethod(isolate, world, instanceTemplate, prototyp
eTemplate, interfaceTemplate, signature, voidMethodPartial1MethodConfiguration); | 91 V8DOMConfiguration::installMethod(isolate, world, instanceTemplate, prototyp
eTemplate, interfaceTemplate, signature, voidMethodPartial1MethodConfiguration); |
| 92 } | 92 } |
| 93 } | 93 } |
| 94 | 94 |
| 95 void V8TestInterface2Partial::initialize() { | 95 void V8TestInterface2Partial::initialize() { |
| 96 // Should be invoked from ModulesInitializer. | 96 // Should be invoked from ModulesInitializer. |
| 97 V8TestInterface2::updateWrapperTypeInfo( | 97 V8TestInterface2::updateWrapperTypeInfo( |
| 98 &V8TestInterface2Partial::installV8TestInterface2Template, | 98 &V8TestInterface2Partial::installV8TestInterface2Template, |
| 99 nullptr, | 99 nullptr, |
| 100 nullptr); | 100 nullptr); |
| 101 } | 101 } |
| 102 | 102 |
| 103 } // namespace blink | 103 } // namespace blink |
| OLD | NEW |