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

Side by Side Diff: Source/bindings/tests/results/core/V8TestInterface.cpp

Issue 1126013003: v8::Isolate* should be the first parameter (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Wrap function Change for v8::Isolate* , as it is no more optional argument Created 5 years, 7 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. 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 "V8TestInterface.h" 9 #include "V8TestInterface.h"
10 10
(...skipping 2107 matching lines...) Expand 10 before | Expand all | Expand 10 after
2118 } // namespace TestInterfaceImplementationV8Internal 2118 } // namespace TestInterfaceImplementationV8Internal
2119 2119
2120 void V8TestInterface::visitDOMWrapper(v8::Isolate* isolate, ScriptWrappable* scr iptWrappable, const v8::Persistent<v8::Object>& wrapper) 2120 void V8TestInterface::visitDOMWrapper(v8::Isolate* isolate, ScriptWrappable* scr iptWrappable, const v8::Persistent<v8::Object>& wrapper)
2121 { 2121 {
2122 TestInterfaceImplementation* impl = scriptWrappable->toImpl<TestInterfaceImp lementation>(); 2122 TestInterfaceImplementation* impl = scriptWrappable->toImpl<TestInterfaceImp lementation>();
2123 v8::Local<v8::Object> creationContext = v8::Local<v8::Object>::New(isolate, wrapper); 2123 v8::Local<v8::Object> creationContext = v8::Local<v8::Object>::New(isolate, wrapper);
2124 V8WrapperInstantiationScope scope(creationContext, isolate); 2124 V8WrapperInstantiationScope scope(creationContext, isolate);
2125 TestInterfaceImplementation* referencedName = impl->referencedName(); 2125 TestInterfaceImplementation* referencedName = impl->referencedName();
2126 if (referencedName) { 2126 if (referencedName) {
2127 if (!DOMDataStore::containsWrapper(referencedName, isolate)) 2127 if (!DOMDataStore::containsWrapper(referencedName, isolate))
2128 referencedName->wrap(creationContext, isolate); 2128 referencedName->wrap(isolate, creationContext);
2129 DOMDataStore::setWrapperReference(wrapper, referencedName, isolate); 2129 DOMDataStore::setWrapperReference(wrapper, referencedName, isolate);
2130 } 2130 }
2131 setObjectGroup(isolate, scriptWrappable, wrapper); 2131 setObjectGroup(isolate, scriptWrappable, wrapper);
2132 } 2132 }
2133 2133
2134 static const V8DOMConfiguration::AttributeConfiguration V8TestInterfaceAttribute s[] = { 2134 static const V8DOMConfiguration::AttributeConfiguration V8TestInterfaceAttribute s[] = {
2135 {"testInterfaceConstructorAttribute", v8ConstructorAttributeGetter, TestInte rfaceImplementationV8Internal::testInterfaceConstructorAttributeAttributeSetterC allback, 0, 0, const_cast<WrapperTypeInfo*>(&V8TestInterface::wrapperTypeInfo), static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>( v8::DontEnum), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnIn stance}, 2135 {"testInterfaceConstructorAttribute", v8ConstructorAttributeGetter, TestInte rfaceImplementationV8Internal::testInterfaceConstructorAttributeAttributeSetterC allback, 0, 0, const_cast<WrapperTypeInfo*>(&V8TestInterface::wrapperTypeInfo), static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>( v8::DontEnum), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnIn stance},
2136 {"TestInterface", v8ConstructorAttributeGetter, TestInterfaceImplementationV 8Internal::TestInterfaceImplementationConstructorAttributeSetterCallback, 0, 0, const_cast<WrapperTypeInfo*>(&V8TestInterface::wrapperTypeInfo), static_cast<v8: :AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::DontEnum), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}, 2136 {"TestInterface", v8ConstructorAttributeGetter, TestInterfaceImplementationV 8Internal::TestInterfaceImplementationConstructorAttributeSetterCallback, 0, 0, const_cast<WrapperTypeInfo*>(&V8TestInterface::wrapperTypeInfo), static_cast<v8: :AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::DontEnum), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance},
2137 {"TestInterface2", v8ConstructorAttributeGetter, TestInterfaceImplementation V8Internal::TestInterfaceImplementationConstructorAttributeSetterCallback, 0, 0, const_cast<WrapperTypeInfo*>(&V8TestInterface2::wrapperTypeInfo), static_cast<v 8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::DontEnum) , V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}, 2137 {"TestInterface2", v8ConstructorAttributeGetter, TestInterfaceImplementation V8Internal::TestInterfaceImplementationConstructorAttributeSetterCallback, 0, 0, const_cast<WrapperTypeInfo*>(&V8TestInterface2::wrapperTypeInfo), static_cast<v 8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::DontEnum) , V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance},
2138 }; 2138 };
(...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after
2552 void V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(void ( *method)(const v8::FunctionCallbackInfo<v8::Value>&)) 2552 void V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(void ( *method)(const v8::FunctionCallbackInfo<v8::Value>&))
2553 { 2553 {
2554 TestInterfaceImplementationV8Internal::partial2VoidMethodMethodForPartialInt erface = method; 2554 TestInterfaceImplementationV8Internal::partial2VoidMethodMethodForPartialInt erface = method;
2555 } 2555 }
2556 void V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface( void (*method)(const v8::FunctionCallbackInfo<v8::Value>&)) 2556 void V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface( void (*method)(const v8::FunctionCallbackInfo<v8::Value>&))
2557 { 2557 {
2558 TestInterfaceImplementationV8Internal::partial2StaticVoidMethodMethodForPart ialInterface = method; 2558 TestInterfaceImplementationV8Internal::partial2StaticVoidMethodMethodForPart ialInterface = method;
2559 } 2559 }
2560 } // namespace blink 2560 } // namespace blink
2561 #endif // ENABLE(CONDITION) 2561 #endif // ENABLE(CONDITION)
OLDNEW
« no previous file with comments | « Source/bindings/templates/interface.cpp ('k') | Source/bindings/tests/results/modules/V8TestInterface5.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698