| 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 #include "V8TestInterface2Partial.h" | 7 #include "V8TestInterface2Partial.h" |
| 8 | 8 |
| 9 #include "bindings/core/v8/ExceptionState.h" | 9 #include "bindings/core/v8/ExceptionState.h" |
| 10 #include "bindings/core/v8/V8DOMConfiguration.h" | 10 #include "bindings/core/v8/V8DOMConfiguration.h" |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 ALLOW_UNUSED_LOCAL(prototypeTemplate); | 83 ALLOW_UNUSED_LOCAL(prototypeTemplate); |
| 84 // Register DOM constants, attributes and operations. | 84 // Register DOM constants, attributes and operations. |
| 85 V8DOMConfiguration::installMethods(isolate, world, instanceTemplate, prototy
peTemplate, interfaceTemplate, signature, V8TestInterface2Methods, WTF_ARRAY_LEN
GTH(V8TestInterface2Methods)); | 85 V8DOMConfiguration::installMethods(isolate, world, instanceTemplate, prototy
peTemplate, interfaceTemplate, signature, V8TestInterface2Methods, WTF_ARRAY_LEN
GTH(V8TestInterface2Methods)); |
| 86 | 86 |
| 87 if (RuntimeEnabledFeatures::interface2PartialFeatureNameEnabled()) { | 87 if (RuntimeEnabledFeatures::interface2PartialFeatureNameEnabled()) { |
| 88 const V8DOMConfiguration::MethodConfiguration voidMethodPartial1MethodCo
nfiguration = {"voidMethodPartial1", TestInterface2PartialV8Internal::voidMethod
Partial1MethodCallback, 0, 1, v8::None, V8DOMConfiguration::ExposedToAllScripts,
V8DOMConfiguration::OnPrototype}; | 88 const V8DOMConfiguration::MethodConfiguration voidMethodPartial1MethodCo
nfiguration = {"voidMethodPartial1", TestInterface2PartialV8Internal::voidMethod
Partial1MethodCallback, 0, 1, v8::None, V8DOMConfiguration::ExposedToAllScripts,
V8DOMConfiguration::OnPrototype}; |
| 89 V8DOMConfiguration::installMethod(isolate, world, instanceTemplate, prot
otypeTemplate, interfaceTemplate, signature, voidMethodPartial1MethodConfigurati
on); | 89 V8DOMConfiguration::installMethod(isolate, world, instanceTemplate, prot
otypeTemplate, interfaceTemplate, signature, voidMethodPartial1MethodConfigurati
on); |
| 90 } | 90 } |
| 91 } | 91 } |
| 92 | 92 |
| 93 void V8TestInterface2Partial::preparePrototypeAndInterfaceObject(v8::Local<v8::C
ontext> context, const DOMWrapperWorld& world, v8::Local<v8::Object> prototypeOb
ject, v8::Local<v8::Function> interfaceObject, v8::Local<v8::FunctionTemplate> i
nterfaceTemplate) | |
| 94 { | |
| 95 V8TestInterface2::preparePrototypeAndInterfaceObject(context, world, prototy
peObject, interfaceObject, interfaceTemplate); | |
| 96 } | |
| 97 | |
| 98 void V8TestInterface2Partial::initialize() | 93 void V8TestInterface2Partial::initialize() |
| 99 { | 94 { |
| 100 // Should be invoked from ModulesInitializer. | 95 // Should be invoked from ModulesInitializer. |
| 101 V8TestInterface2::updateWrapperTypeInfo( | 96 V8TestInterface2::updateWrapperTypeInfo( |
| 102 &V8TestInterface2Partial::installV8TestInterface2Template, | 97 &V8TestInterface2Partial::installV8TestInterface2Template, |
| 103 &V8TestInterface2Partial::preparePrototypeAndInterfaceObject); | 98 nullptr); |
| 104 } | 99 } |
| 105 | 100 |
| 106 } // namespace blink | 101 } // namespace blink |
| OLD | NEW |