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

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

Issue 2454133002: [Bindings] Reformat template files for Interface (1/4) (Closed)
Patch Set: Rebase Created 4 years, 1 month 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. 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
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},
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 // Initialize the interface object's template.
80 // Initialize the interface object's template. 80 V8TestInterface2::installV8TestInterface2Template(isolate, world, interfaceTem plate);
81 V8TestInterface2::installV8TestInterface2Template(isolate, world, interfaceT emplate); 81 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTemp late);
82 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTe mplate); 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->Instance Template(); 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->Prototy peTemplate(); 86 ALLOW_UNUSED_LOCAL(prototypeTemplate);
87 ALLOW_UNUSED_LOCAL(prototypeTemplate); 87 // Register DOM constants, attributes and operations.
88 // Register DOM constants, attributes and operations. 88 V8DOMConfiguration::installMethods(isolate, world, instanceTemplate, prototype Template, interfaceTemplate, signature, V8TestInterface2Methods, WTF_ARRAY_LENGT H(V8TestInterface2Methods));
89 V8DOMConfiguration::installMethods(isolate, world, instanceTemplate, prototy peTemplate, interfaceTemplate, signature, V8TestInterface2Methods, WTF_ARRAY_LEN GTH(V8TestInterface2Methods));
90 89
91 if (RuntimeEnabledFeatures::interface2PartialFeatureNameEnabled()) { 90 if (RuntimeEnabledFeatures::interface2PartialFeatureNameEnabled()) {
92 const V8DOMConfiguration::MethodConfiguration voidMethodPartial1MethodCo nfiguration = {"voidMethodPartial1", TestInterface2PartialV8Internal::voidMethod Partial1MethodCallback, 0, 1, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype}; 91 const V8DOMConfiguration::MethodConfiguration voidMethodPartial1MethodConf iguration = {"voidMethodPartial1", TestInterface2PartialV8Internal::voidMethodPa rtial1MethodCallback, 0, 1, v8::None, V8DOMConfiguration::ExposedToAllScripts, V 8DOMConfiguration::OnPrototype};
93 V8DOMConfiguration::installMethod(isolate, world, instanceTemplate, prot otypeTemplate, interfaceTemplate, signature, voidMethodPartial1MethodConfigurati on); 92 V8DOMConfiguration::installMethod(isolate, world, instanceTemplate, protot ypeTemplate, interfaceTemplate, signature, voidMethodPartial1MethodConfiguration );
94 } 93 }
95 } 94 }
96 95
97 void V8TestInterface2Partial::initialize() 96 void V8TestInterface2Partial::initialize() {
98 { 97 // Should be invoked from ModulesInitializer.
99 // Should be invoked from ModulesInitializer. 98 V8TestInterface2::updateWrapperTypeInfo(
100 V8TestInterface2::updateWrapperTypeInfo( 99 &V8TestInterface2Partial::installV8TestInterface2Template,
101 &V8TestInterface2Partial::installV8TestInterface2Template, 100 nullptr);
102 nullptr);
103 } 101 }
104 102
105 } // namespace blink 103 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698