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

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

Issue 542113003: bindings: Introduces ScriptWrappable::associateWithWrapper in addition to wrap. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 if (UNLIKELY(info.Length() < 1)) { 104 if (UNLIKELY(info.Length() < 1)) {
105 V8ThrowException::throwException(createMinimumArityTypeErrorForConstruct or("TestInterfaceWillBeGarbageCollected", 1, info.Length(), info.GetIsolate()), info.GetIsolate()); 105 V8ThrowException::throwException(createMinimumArityTypeErrorForConstruct or("TestInterfaceWillBeGarbageCollected", 1, info.Length(), info.GetIsolate()), info.GetIsolate());
106 return; 106 return;
107 } 107 }
108 V8StringResource<> str; 108 V8StringResource<> str;
109 { 109 {
110 TOSTRING_VOID_INTERNAL(str, info[0]); 110 TOSTRING_VOID_INTERNAL(str, info[0]);
111 } 111 }
112 RefPtrWillBeRawPtr<TestInterfaceWillBeGarbageCollected> impl = TestInterface WillBeGarbageCollected::create(str); 112 RefPtrWillBeRawPtr<TestInterfaceWillBeGarbageCollected> impl = TestInterface WillBeGarbageCollected::create(str);
113 v8::Handle<v8::Object> wrapper = info.Holder(); 113 v8::Handle<v8::Object> wrapper = info.Holder();
114 V8DOMWrapper::associateObjectWithWrapper<V8TestInterfaceWillBeGarbageCollect ed>(impl.release(), &V8TestInterfaceWillBeGarbageCollected::wrapperTypeInfo, wra pper, info.GetIsolate()); 114 impl.get()->associateWithWrapper(&V8TestInterfaceWillBeGarbageCollected::wra pperTypeInfo, wrapper, info.GetIsolate());
115 v8SetReturnValue(info, wrapper); 115 v8SetReturnValue(info, wrapper);
116 } 116 }
117 117
118 } // namespace TestInterfaceWillBeGarbageCollectedV8Internal 118 } // namespace TestInterfaceWillBeGarbageCollectedV8Internal
119 119
120 static const V8DOMConfiguration::AttributeConfiguration V8TestInterfaceWillBeGar bageCollectedAttributes[] = { 120 static const V8DOMConfiguration::AttributeConfiguration V8TestInterfaceWillBeGar bageCollectedAttributes[] = {
121 {"attr1", TestInterfaceWillBeGarbageCollectedV8Internal::attr1AttributeGette rCallback, TestInterfaceWillBeGarbageCollectedV8Internal::attr1AttributeSetterCa llback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Pr opertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfig uration::OnInstance}, 121 {"attr1", TestInterfaceWillBeGarbageCollectedV8Internal::attr1AttributeGette rCallback, TestInterfaceWillBeGarbageCollectedV8Internal::attr1AttributeSetterCa llback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Pr opertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfig uration::OnInstance},
122 }; 122 };
123 123
124 static const V8DOMConfiguration::MethodConfiguration V8TestInterfaceWillBeGarbag eCollectedMethods[] = { 124 static const V8DOMConfiguration::MethodConfiguration V8TestInterfaceWillBeGarbag eCollectedMethods[] = {
(...skipping 16 matching lines...) Expand all
141 if (UNLIKELY(info.Length() < 1)) { 141 if (UNLIKELY(info.Length() < 1)) {
142 V8ThrowException::throwException(createMinimumArityTypeErrorForConstruct or("TestInterfaceWillBeGarbageCollected", 1, info.Length(), info.GetIsolate()), info.GetIsolate()); 142 V8ThrowException::throwException(createMinimumArityTypeErrorForConstruct or("TestInterfaceWillBeGarbageCollected", 1, info.Length(), info.GetIsolate()), info.GetIsolate());
143 return; 143 return;
144 } 144 }
145 V8StringResource<> str; 145 V8StringResource<> str;
146 { 146 {
147 TOSTRING_VOID_INTERNAL(str, info[0]); 147 TOSTRING_VOID_INTERNAL(str, info[0]);
148 } 148 }
149 RefPtrWillBeRawPtr<TestInterfaceWillBeGarbageCollected> impl = TestInterface WillBeGarbageCollected::createForJSConstructor(str); 149 RefPtrWillBeRawPtr<TestInterfaceWillBeGarbageCollected> impl = TestInterface WillBeGarbageCollected::createForJSConstructor(str);
150 v8::Handle<v8::Object> wrapper = info.Holder(); 150 v8::Handle<v8::Object> wrapper = info.Holder();
151 V8DOMWrapper::associateObjectWithWrapper<V8TestInterfaceWillBeGarbageCollect ed>(impl.release(), &V8TestInterfaceWillBeGarbageCollectedConstructor::wrapperTy peInfo, wrapper, info.GetIsolate()); 151 impl.get()->associateWithWrapper(&V8TestInterfaceWillBeGarbageCollectedConst ructor::wrapperTypeInfo, wrapper, info.GetIsolate());
152 v8SetReturnValue(info, wrapper); 152 v8SetReturnValue(info, wrapper);
153 } 153 }
154 154
155 v8::Handle<v8::FunctionTemplate> V8TestInterfaceWillBeGarbageCollectedConstructo r::domTemplate(v8::Isolate* isolate) 155 v8::Handle<v8::FunctionTemplate> V8TestInterfaceWillBeGarbageCollectedConstructo r::domTemplate(v8::Isolate* isolate)
156 { 156 {
157 static int domTemplateKey; // This address is used for a key to look up the dom template. 157 static int domTemplateKey; // This address is used for a key to look up the dom template.
158 V8PerIsolateData* data = V8PerIsolateData::from(isolate); 158 V8PerIsolateData* data = V8PerIsolateData::from(isolate);
159 v8::Local<v8::FunctionTemplate> result = data->existingDOMTemplate(&domTempl ateKey); 159 v8::Local<v8::FunctionTemplate> result = data->existingDOMTemplate(&domTempl ateKey);
160 if (!result.IsEmpty()) 160 if (!result.IsEmpty())
161 return result; 161 return result;
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 #endif 255 #endif
256 } 256 }
257 257
258 template<> 258 template<>
259 v8::Handle<v8::Value> toV8NoInline(TestInterfaceWillBeGarbageCollected* impl, v8 ::Handle<v8::Object> creationContext, v8::Isolate* isolate) 259 v8::Handle<v8::Value> toV8NoInline(TestInterfaceWillBeGarbageCollected* impl, v8 ::Handle<v8::Object> creationContext, v8::Isolate* isolate)
260 { 260 {
261 return toV8(impl, creationContext, isolate); 261 return toV8(impl, creationContext, isolate);
262 } 262 }
263 263
264 } // namespace blink 264 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698