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

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

Issue 772743003: Move the v8::Isolate* parameter to the first parameter of various binding methods in third_party/We… (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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. DO NOT MODIFY! 5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY!
6 6
7 #include "config.h" 7 #include "config.h"
8 #if ENABLE(CONDITION) 8 #if ENABLE(CONDITION)
9 #include "V8TestInterface5.h" 9 #include "V8TestInterface5.h"
10 10
(...skipping 740 matching lines...) Expand 10 before | Expand all | Expand 10 after
751 {"voidMethod", TestInterface5ImplementationV8Internal::voidMethodMethodCallb ack, TestInterface5ImplementationV8Internal::voidMethodMethodCallbackForMainWorl d, 0, V8DOMConfiguration::ExposedToAllScripts}, 751 {"voidMethod", TestInterface5ImplementationV8Internal::voidMethodMethodCallb ack, TestInterface5ImplementationV8Internal::voidMethodMethodCallbackForMainWorl d, 0, V8DOMConfiguration::ExposedToAllScripts},
752 {"alwaysExposedMethod", TestInterface5ImplementationV8Internal::alwaysExpose dMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, 752 {"alwaysExposedMethod", TestInterface5ImplementationV8Internal::alwaysExpose dMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts},
753 }; 753 };
754 754
755 static void installV8TestInterface5Template(v8::Handle<v8::FunctionTemplate> fun ctionTemplate, v8::Isolate* isolate) 755 static void installV8TestInterface5Template(v8::Handle<v8::FunctionTemplate> fun ctionTemplate, v8::Isolate* isolate)
756 { 756 {
757 functionTemplate->ReadOnlyPrototype(); 757 functionTemplate->ReadOnlyPrototype();
758 758
759 v8::Local<v8::Signature> defaultSignature; 759 v8::Local<v8::Signature> defaultSignature;
760 if (!RuntimeEnabledFeatures::featureNameEnabled()) 760 if (!RuntimeEnabledFeatures::featureNameEnabled())
761 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(functionT emplate, "", V8TestInterfaceEmpty::domTemplate(isolate), V8TestInterface5::inter nalFieldCount, 0, 0, 0, 0, 0, 0, isolate); 761 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(isolate, functionTemplate, "", V8TestInterfaceEmpty::domTemplate(isolate), V8TestInterfac e5::internalFieldCount, 0, 0, 0, 0, 0, 0);
762 else 762 else
763 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(functionT emplate, "TestInterface5", V8TestInterfaceEmpty::domTemplate(isolate), V8TestInt erface5::internalFieldCount, 763 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(isolate, functionTemplate, "TestInterface5", V8TestInterfaceEmpty::domTemplate(isolate), V8TestInterface5::internalFieldCount,
764 V8TestInterface5Attributes, WTF_ARRAY_LENGTH(V8TestInterface5Attribu tes), 764 V8TestInterface5Attributes, WTF_ARRAY_LENGTH(V8TestInterface5Attribu tes),
765 0, 0, 765 0, 0,
766 V8TestInterface5Methods, WTF_ARRAY_LENGTH(V8TestInterface5Methods), 766 V8TestInterface5Methods, WTF_ARRAY_LENGTH(V8TestInterface5Methods));
767 isolate);
768 v8::Local<v8::ObjectTemplate> instanceTemplate = functionTemplate->InstanceT emplate(); 767 v8::Local<v8::ObjectTemplate> instanceTemplate = functionTemplate->InstanceT emplate();
769 ALLOW_UNUSED_LOCAL(instanceTemplate); 768 ALLOW_UNUSED_LOCAL(instanceTemplate);
770 v8::Local<v8::ObjectTemplate> prototypeTemplate = functionTemplate->Prototyp eTemplate(); 769 v8::Local<v8::ObjectTemplate> prototypeTemplate = functionTemplate->Prototyp eTemplate();
771 ALLOW_UNUSED_LOCAL(prototypeTemplate); 770 ALLOW_UNUSED_LOCAL(prototypeTemplate);
772 static const V8DOMConfiguration::ConstantConfiguration V8TestInterface5Const ants[] = { 771 static const V8DOMConfiguration::ConstantConfiguration V8TestInterface5Const ants[] = {
773 {"UNSIGNED_LONG", 0, 0, 0, V8DOMConfiguration::ConstantTypeUnsignedLong} , 772 {"UNSIGNED_LONG", 0, 0, 0, V8DOMConfiguration::ConstantTypeUnsignedLong} ,
774 {"CONST_JAVASCRIPT", 1, 0, 0, V8DOMConfiguration::ConstantTypeShort}, 773 {"CONST_JAVASCRIPT", 1, 0, 0, V8DOMConfiguration::ConstantTypeShort},
775 }; 774 };
776 V8DOMConfiguration::installConstants(isolate, functionTemplate, prototypeTem plate, V8TestInterface5Constants, WTF_ARRAY_LENGTH(V8TestInterface5Constants)); 775 V8DOMConfiguration::installConstants(isolate, functionTemplate, prototypeTem plate, V8TestInterface5Constants, WTF_ARRAY_LENGTH(V8TestInterface5Constants));
777 functionTemplate->InstanceTemplate()->SetIndexedPropertyHandler(TestInterfac e5ImplementationV8Internal::indexedPropertyGetterCallback, TestInterface5Impleme ntationV8Internal::indexedPropertySetterCallback, 0, TestInterface5Implementatio nV8Internal::indexedPropertyDeleterCallback, indexedPropertyEnumerator<TestInter face5Implementation>); 776 functionTemplate->InstanceTemplate()->SetIndexedPropertyHandler(TestInterfac e5ImplementationV8Internal::indexedPropertyGetterCallback, TestInterface5Impleme ntationV8Internal::indexedPropertySetterCallback, 0, TestInterface5Implementatio nV8Internal::indexedPropertyDeleterCallback, indexedPropertyEnumerator<TestInter face5Implementation>);
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
869 } 868 }
870 869
871 template<> 870 template<>
872 v8::Handle<v8::Value> toV8NoInline(TestInterface5Implementation* impl, v8::Handl e<v8::Object> creationContext, v8::Isolate* isolate) 871 v8::Handle<v8::Value> toV8NoInline(TestInterface5Implementation* impl, v8::Handl e<v8::Object> creationContext, v8::Isolate* isolate)
873 { 872 {
874 return toV8(impl, creationContext, isolate); 873 return toV8(impl, creationContext, isolate);
875 } 874 }
876 875
877 } // namespace blink 876 } // namespace blink
878 #endif // ENABLE(CONDITION) 877 #endif // ENABLE(CONDITION)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698