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

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

Issue 1221193004: Bindings: visitDOMWrapper should not create a new wrapper (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 5 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 | Annotate | Revision Log
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 2199 matching lines...) Expand 10 before | Expand all | Expand 10 after
2210 2210
2211 } // namespace TestInterfaceImplementationV8Internal 2211 } // namespace TestInterfaceImplementationV8Internal
2212 2212
2213 void V8TestInterface::visitDOMWrapper(v8::Isolate* isolate, ScriptWrappable* scr iptWrappable, const v8::Persistent<v8::Object>& wrapper) 2213 void V8TestInterface::visitDOMWrapper(v8::Isolate* isolate, ScriptWrappable* scr iptWrappable, const v8::Persistent<v8::Object>& wrapper)
2214 { 2214 {
2215 TestInterfaceImplementation* impl = scriptWrappable->toImpl<TestInterfaceImp lementation>(); 2215 TestInterfaceImplementation* impl = scriptWrappable->toImpl<TestInterfaceImp lementation>();
2216 v8::Local<v8::Object> creationContext = v8::Local<v8::Object>::New(isolate, wrapper); 2216 v8::Local<v8::Object> creationContext = v8::Local<v8::Object>::New(isolate, wrapper);
2217 V8WrapperInstantiationScope scope(creationContext, isolate); 2217 V8WrapperInstantiationScope scope(creationContext, isolate);
2218 TestInterfaceImplementation* referencedName = impl->referencedName(); 2218 TestInterfaceImplementation* referencedName = impl->referencedName();
2219 if (referencedName) { 2219 if (referencedName) {
2220 if (!DOMDataStore::containsWrapper(referencedName, isolate)) 2220 if (DOMDataStore::containsWrapper(referencedName, isolate))
2221 referencedName->wrap(isolate, creationContext); 2221 DOMDataStore::setWrapperReference(wrapper, referencedName, isolate);
2222 DOMDataStore::setWrapperReference(wrapper, referencedName, isolate);
2223 } 2222 }
2224 } 2223 }
2225 2224
2226 // Suppress warning: global constructors, because AttributeConfiguration is triv ial 2225 // Suppress warning: global constructors, because AttributeConfiguration is triv ial
2227 // and does not depend on another global objects. 2226 // and does not depend on another global objects.
2228 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG) 2227 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG)
2229 #pragma clang diagnostic push 2228 #pragma clang diagnostic push
2230 #pragma clang diagnostic ignored "-Wglobal-constructors" 2229 #pragma clang diagnostic ignored "-Wglobal-constructors"
2231 #endif 2230 #endif
2232 static const V8DOMConfiguration::AttributeConfiguration V8TestInterfaceAttribute s[] = { 2231 static const V8DOMConfiguration::AttributeConfiguration V8TestInterfaceAttribute s[] = {
(...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after
2669 void V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(void ( *method)(const v8::FunctionCallbackInfo<v8::Value>&)) 2668 void V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(void ( *method)(const v8::FunctionCallbackInfo<v8::Value>&))
2670 { 2669 {
2671 TestInterfaceImplementationV8Internal::partial2VoidMethodMethodForPartialInt erface = method; 2670 TestInterfaceImplementationV8Internal::partial2VoidMethodMethodForPartialInt erface = method;
2672 } 2671 }
2673 void V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface( void (*method)(const v8::FunctionCallbackInfo<v8::Value>&)) 2672 void V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface( void (*method)(const v8::FunctionCallbackInfo<v8::Value>&))
2674 { 2673 {
2675 TestInterfaceImplementationV8Internal::partial2StaticVoidMethodMethodForPart ialInterface = method; 2674 TestInterfaceImplementationV8Internal::partial2StaticVoidMethodMethodForPart ialInterface = method;
2676 } 2675 }
2677 } // namespace blink 2676 } // namespace blink
2678 #endif // ENABLE(CONDITION) 2677 #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