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

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

Issue 2558383003: [Refactoring] Remove newline hacks from V8 binding template (Closed)
Patch Set: rebase Created 4 years 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 // clang-format off 8 // clang-format off
9 #include "V8TestInterface5.h" 9 #include "V8TestInterface5.h"
10 10
(...skipping 885 matching lines...) Expand 10 before | Expand all | Expand 10 after
896 896
897 static void installV8TestInterface5Template(v8::Isolate* isolate, const DOMWrapp erWorld& world, v8::Local<v8::FunctionTemplate> interfaceTemplate) { 897 static void installV8TestInterface5Template(v8::Isolate* isolate, const DOMWrapp erWorld& world, v8::Local<v8::FunctionTemplate> interfaceTemplate) {
898 // Initialize the interface object's template. 898 // Initialize the interface object's template.
899 V8DOMConfiguration::initializeDOMInterfaceTemplate(isolate, interfaceTemplate, V8TestInterface5::wrapperTypeInfo.interfaceName, V8TestInterfaceEmpty::domTempl ate(isolate, world), V8TestInterface5::internalFieldCount); 899 V8DOMConfiguration::initializeDOMInterfaceTemplate(isolate, interfaceTemplate, V8TestInterface5::wrapperTypeInfo.interfaceName, V8TestInterfaceEmpty::domTempl ate(isolate, world), V8TestInterface5::internalFieldCount);
900 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTemp late); 900 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTemp late);
901 ALLOW_UNUSED_LOCAL(signature); 901 ALLOW_UNUSED_LOCAL(signature);
902 v8::Local<v8::ObjectTemplate> instanceTemplate = interfaceTemplate->InstanceTe mplate(); 902 v8::Local<v8::ObjectTemplate> instanceTemplate = interfaceTemplate->InstanceTe mplate();
903 ALLOW_UNUSED_LOCAL(instanceTemplate); 903 ALLOW_UNUSED_LOCAL(instanceTemplate);
904 v8::Local<v8::ObjectTemplate> prototypeTemplate = interfaceTemplate->Prototype Template(); 904 v8::Local<v8::ObjectTemplate> prototypeTemplate = interfaceTemplate->Prototype Template();
905 ALLOW_UNUSED_LOCAL(prototypeTemplate); 905 ALLOW_UNUSED_LOCAL(prototypeTemplate);
906
906 // Register DOM constants, attributes and operations. 907 // Register DOM constants, attributes and operations.
907 if (RuntimeEnabledFeatures::featureNameEnabled()) { 908 if (RuntimeEnabledFeatures::featureNameEnabled()) {
908 const V8DOMConfiguration::ConstantConfiguration V8TestInterface5Constants[ ] = { 909 const V8DOMConfiguration::ConstantConfiguration V8TestInterface5Constants[ ] = {
909 {"UNSIGNED_LONG", 0, 0, V8DOMConfiguration::ConstantTypeUnsignedLong}, 910 {"UNSIGNED_LONG", 0, 0, V8DOMConfiguration::ConstantTypeUnsignedLong},
910 {"CONST_JAVASCRIPT", 1, 0, V8DOMConfiguration::ConstantTypeShort}, 911 {"CONST_JAVASCRIPT", 1, 0, V8DOMConfiguration::ConstantTypeShort},
911 }; 912 };
912 V8DOMConfiguration::installConstants(isolate, interfaceTemplate, prototype Template, V8TestInterface5Constants, WTF_ARRAY_LENGTH(V8TestInterface5Constants) ); 913 V8DOMConfiguration::installConstants(isolate, interfaceTemplate, prototype Template, V8TestInterface5Constants, WTF_ARRAY_LENGTH(V8TestInterface5Constants) );
913 V8DOMConfiguration::installLazyDataAttributes(isolate, world, instanceTemp late, prototypeTemplate, V8TestInterface5LazyDataAttributes, WTF_ARRAY_LENGTH(V8 TestInterface5LazyDataAttributes)); 914 V8DOMConfiguration::installLazyDataAttributes(isolate, world, instanceTemp late, prototypeTemplate, V8TestInterface5LazyDataAttributes, WTF_ARRAY_LENGTH(V8 TestInterface5LazyDataAttributes));
914 V8DOMConfiguration::installAccessors(isolate, world, instanceTemplate, pro totypeTemplate, interfaceTemplate, signature, V8TestInterface5Accessors, WTF_ARR AY_LENGTH(V8TestInterface5Accessors)); 915 V8DOMConfiguration::installAccessors(isolate, world, instanceTemplate, pro totypeTemplate, interfaceTemplate, signature, V8TestInterface5Accessors, WTF_ARR AY_LENGTH(V8TestInterface5Accessors));
915 V8DOMConfiguration::installMethods(isolate, world, instanceTemplate, proto typeTemplate, interfaceTemplate, signature, V8TestInterface5Methods, WTF_ARRAY_L ENGTH(V8TestInterface5Methods)); 916 V8DOMConfiguration::installMethods(isolate, world, instanceTemplate, proto typeTemplate, interfaceTemplate, signature, V8TestInterface5Methods, WTF_ARRAY_L ENGTH(V8TestInterface5Methods));
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
976 const V8DOMConfiguration::MethodConfiguration windowExposedStaticMethodMet hodConfiguration = {"windowExposedStaticMethod", TestInterface5ImplementationV8I nternal::windowExposedStaticMethodMethodCallback, 0, 0, v8::None, V8DOMConfigura tion::ExposedToAllScripts, V8DOMConfiguration::OnInterface, V8DOMConfiguration:: CheckHolder}; 977 const V8DOMConfiguration::MethodConfiguration windowExposedStaticMethodMet hodConfiguration = {"windowExposedStaticMethod", TestInterface5ImplementationV8I nternal::windowExposedStaticMethodMethodCallback, 0, 0, v8::None, V8DOMConfigura tion::ExposedToAllScripts, V8DOMConfiguration::OnInterface, V8DOMConfiguration:: CheckHolder};
977 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>(), prototypeObject, interfaceObject, signature, windowExposedStaticMethodMethodCon figuration); 978 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>(), prototypeObject, interfaceObject, signature, windowExposedStaticMethodMethodCon figuration);
978 } 979 }
979 if (executionContext && (executionContext->isDocument() || executionContext->i sServiceWorkerGlobalScope())) { 980 if (executionContext && (executionContext->isDocument() || executionContext->i sServiceWorkerGlobalScope())) {
980 const V8DOMConfiguration::MethodConfiguration windowAndServiceWorkerExpose dMethodMethodConfiguration = {"windowAndServiceWorkerExposedMethod", TestInterfa ce5ImplementationV8Internal::windowAndServiceWorkerExposedMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnP rototype, V8DOMConfiguration::CheckHolder}; 981 const V8DOMConfiguration::MethodConfiguration windowAndServiceWorkerExpose dMethodMethodConfiguration = {"windowAndServiceWorkerExposedMethod", TestInterfa ce5ImplementationV8Internal::windowAndServiceWorkerExposedMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnP rototype, V8DOMConfiguration::CheckHolder};
981 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>(), prototypeObject, interfaceObject, signature, windowAndServiceWorkerExposedMetho dMethodConfiguration); 982 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>(), prototypeObject, interfaceObject, signature, windowAndServiceWorkerExposedMetho dMethodConfiguration);
982 } 983 }
983 } 984 }
984 985
985 } // namespace blink 986 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698