Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(82)

Side by Side Diff: third_party/WebKit/Source/bindings/tests/results/modules/V8TestInterface2Partial.cpp

Issue 2620153004: [Bindings] Code cleanup: Early return if funtime enabled interface is false (Closed)
Patch Set: . Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
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::OnPrototype, V8DOMConfiguratio n::CheckHolder}, 75 {"voidMethodPartial2", TestInterface2PartialV8Internal::voidMethodPartial2Me thodCallback, 0, 1, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguratio n::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 // Initialize the interface object's template. 79 // Initialize the interface object's template.
80 V8TestInterface2::installV8TestInterface2Template(isolate, world, interfaceTem plate); 80 V8TestInterface2::installV8TestInterface2Template(isolate, world, interfaceTem plate);
81
81 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTemp late); 82 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTemp late);
82 ALLOW_UNUSED_LOCAL(signature); 83 ALLOW_UNUSED_LOCAL(signature);
83 v8::Local<v8::ObjectTemplate> instanceTemplate = interfaceTemplate->InstanceTe mplate(); 84 v8::Local<v8::ObjectTemplate> instanceTemplate = interfaceTemplate->InstanceTe mplate();
84 ALLOW_UNUSED_LOCAL(instanceTemplate); 85 ALLOW_UNUSED_LOCAL(instanceTemplate);
85 v8::Local<v8::ObjectTemplate> prototypeTemplate = interfaceTemplate->Prototype Template(); 86 v8::Local<v8::ObjectTemplate> prototypeTemplate = interfaceTemplate->Prototype Template();
86 ALLOW_UNUSED_LOCAL(prototypeTemplate); 87 ALLOW_UNUSED_LOCAL(prototypeTemplate);
87 88
88 // Register DOM constants, attributes and operations. 89 // Register DOM constants, attributes and operations.
89 V8DOMConfiguration::installMethods(isolate, world, instanceTemplate, prototype Template, interfaceTemplate, signature, V8TestInterface2Methods, WTF_ARRAY_LENGT H(V8TestInterface2Methods)); 90 V8DOMConfiguration::installMethods(isolate, world, instanceTemplate, prototype Template, interfaceTemplate, signature, V8TestInterface2Methods, WTF_ARRAY_LENGT H(V8TestInterface2Methods));
90 91
91 if (RuntimeEnabledFeatures::interface2PartialFeatureNameEnabled()) { 92 if (RuntimeEnabledFeatures::interface2PartialFeatureNameEnabled()) {
92 const V8DOMConfiguration::MethodConfiguration voidMethodPartial1MethodConfig uration = {"voidMethodPartial1", TestInterface2PartialV8Internal::voidMethodPart ial1MethodCallback, 0, 1, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfig uration::CheckHolder}; 93 const V8DOMConfiguration::MethodConfiguration voidMethodPartial1MethodConfig uration = {"voidMethodPartial1", TestInterface2PartialV8Internal::voidMethodPart ial1MethodCallback, 0, 1, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfig uration::CheckHolder};
93 V8DOMConfiguration::installMethod(isolate, world, instanceTemplate, prototyp eTemplate, interfaceTemplate, signature, voidMethodPartial1MethodConfiguration); 94 V8DOMConfiguration::installMethod(isolate, world, instanceTemplate, prototyp eTemplate, interfaceTemplate, signature, voidMethodPartial1MethodConfiguration);
94 } 95 }
95 } 96 }
96 97
97 void V8TestInterface2Partial::initialize() { 98 void V8TestInterface2Partial::initialize() {
98 // Should be invoked from ModulesInitializer. 99 // Should be invoked from ModulesInitializer.
99 V8TestInterface2::updateWrapperTypeInfo( 100 V8TestInterface2::updateWrapperTypeInfo(
100 &V8TestInterface2Partial::installV8TestInterface2Template, 101 &V8TestInterface2Partial::installV8TestInterface2Template,
101 nullptr); 102 nullptr);
102 } 103 }
103 104
104 } // namespace blink 105 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698