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

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

Issue 1324643005: bindings: Makes installV8FooTemplate thread-safe. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Synced. Created 5 years, 3 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 #include "V8TestInterfaceWillBeGarbageCollected.h" 8 #include "V8TestInterfaceWillBeGarbageCollected.h"
9 9
10 #include "bindings/core/v8/ExceptionState.h" 10 #include "bindings/core/v8/ExceptionState.h"
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 return; 103 return;
104 } 104 }
105 RefPtrWillBeRawPtr<TestInterfaceWillBeGarbageCollected> impl = TestInterface WillBeGarbageCollected::create(str); 105 RefPtrWillBeRawPtr<TestInterfaceWillBeGarbageCollected> impl = TestInterface WillBeGarbageCollected::create(str);
106 v8::Local<v8::Object> wrapper = info.Holder(); 106 v8::Local<v8::Object> wrapper = info.Holder();
107 wrapper = impl->associateWithWrapper(info.GetIsolate(), &V8TestInterfaceWill BeGarbageCollected::wrapperTypeInfo, wrapper); 107 wrapper = impl->associateWithWrapper(info.GetIsolate(), &V8TestInterfaceWill BeGarbageCollected::wrapperTypeInfo, wrapper);
108 v8SetReturnValue(info, wrapper); 108 v8SetReturnValue(info, wrapper);
109 } 109 }
110 110
111 } // namespace TestInterfaceWillBeGarbageCollectedV8Internal 111 } // namespace TestInterfaceWillBeGarbageCollectedV8Internal
112 112
113 static const V8DOMConfiguration::AccessorConfiguration V8TestInterfaceWillBeGarb ageCollectedAccessors[] = { 113 const V8DOMConfiguration::AccessorConfiguration V8TestInterfaceWillBeGarbageColl ectedAccessors[] = {
114 {"attr1", TestInterfaceWillBeGarbageCollectedV8Internal::attr1AttributeGette rCallback, TestInterfaceWillBeGarbageCollectedV8Internal::attr1AttributeSetterCa llback, 0, 0, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::DontDelete) , V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance, V8DOM Configuration::CheckHolder}, 114 {"attr1", TestInterfaceWillBeGarbageCollectedV8Internal::attr1AttributeGette rCallback, TestInterfaceWillBeGarbageCollectedV8Internal::attr1AttributeSetterCa llback, 0, 0, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::DontDelete) , V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance, V8DOM Configuration::CheckHolder},
115 }; 115 };
116 116
117 // Suppress warning: global constructors, because struct WrapperTypeInfo is triv ial 117 // Suppress warning: global constructors, because struct WrapperTypeInfo is triv ial
118 // and does not depend on another global objects. 118 // and does not depend on another global objects.
119 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG) 119 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG)
120 #pragma clang diagnostic push 120 #pragma clang diagnostic push
121 #pragma clang diagnostic ignored "-Wglobal-constructors" 121 #pragma clang diagnostic ignored "-Wglobal-constructors"
122 #endif 122 #endif
123 const WrapperTypeInfo V8TestInterfaceWillBeGarbageCollectedConstructor::wrapperT ypeInfo = { gin::kEmbedderBlink, V8TestInterfaceWillBeGarbageCollectedConstructo r::domTemplate, V8TestInterfaceWillBeGarbageCollected::refObject, V8TestInterfac eWillBeGarbageCollected::derefObject, V8TestInterfaceWillBeGarbageCollected::tra ce, 0, 0, V8TestInterfaceWillBeGarbageCollected::preparePrototypeObject, V8TestI nterfaceWillBeGarbageCollected::installConditionallyEnabledProperties, "TestInte rfaceWillBeGarbageCollected", 0, WrapperTypeInfo::WrapperTypeObjectPrototype, Wr apperTypeInfo::ObjectClassId, WrapperTypeInfo::InheritFromEventTarget, WrapperTy peInfo::Independent, WrapperTypeInfo::WillBeGarbageCollectedObject }; 123 const WrapperTypeInfo V8TestInterfaceWillBeGarbageCollectedConstructor::wrapperT ypeInfo = { gin::kEmbedderBlink, V8TestInterfaceWillBeGarbageCollectedConstructo r::domTemplate, V8TestInterfaceWillBeGarbageCollected::refObject, V8TestInterfac eWillBeGarbageCollected::derefObject, V8TestInterfaceWillBeGarbageCollected::tra ce, 0, 0, V8TestInterfaceWillBeGarbageCollected::preparePrototypeObject, V8TestI nterfaceWillBeGarbageCollected::installConditionallyEnabledProperties, "TestInte rfaceWillBeGarbageCollected", 0, WrapperTypeInfo::WrapperTypeObjectPrototype, Wr apperTypeInfo::ObjectClassId, WrapperTypeInfo::InheritFromEventTarget, WrapperTy peInfo::Independent, WrapperTypeInfo::WillBeGarbageCollectedObject };
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 } 240 }
241 241
242 void V8TestInterfaceWillBeGarbageCollected::derefObject(ScriptWrappable* scriptW rappable) 242 void V8TestInterfaceWillBeGarbageCollected::derefObject(ScriptWrappable* scriptW rappable)
243 { 243 {
244 #if !ENABLE(OILPAN) 244 #if !ENABLE(OILPAN)
245 scriptWrappable->toImpl<TestInterfaceWillBeGarbageCollected>()->deref(); 245 scriptWrappable->toImpl<TestInterfaceWillBeGarbageCollected>()->deref();
246 #endif 246 #endif
247 } 247 }
248 248
249 } // namespace blink 249 } // namespace blink
OLDNEW
« no previous file with comments | « Source/bindings/tests/results/core/V8TestInterfaceNode.cpp ('k') | Source/bindings/tests/results/core/V8TestNode.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698