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

Side by Side Diff: Source/bindings/tests/results/V8TestInterfaceGarbageCollected.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 "V8TestInterfaceGarbageCollected.h" 8 #include "V8TestInterfaceGarbageCollected.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("TestInterfaceGarbageCollected", 1, info.Length(), info.GetIsolate()), info.G etIsolate()); 105 V8ThrowException::throwException(createMinimumArityTypeErrorForConstruct or("TestInterfaceGarbageCollected", 1, info.Length(), info.GetIsolate()), info.G etIsolate());
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 RawPtr<TestInterfaceGarbageCollected> impl = TestInterfaceGarbageCollected:: create(str); 112 RawPtr<TestInterfaceGarbageCollected> impl = TestInterfaceGarbageCollected:: create(str);
113 v8::Handle<v8::Object> wrapper = info.Holder(); 113 v8::Handle<v8::Object> wrapper = info.Holder();
114 V8DOMWrapper::associateObjectWithWrapper<V8TestInterfaceGarbageCollected>(im pl.release(), &V8TestInterfaceGarbageCollected::wrapperTypeInfo, wrapper, info.G etIsolate()); 114 impl.get()->associateWithWrapper(&V8TestInterfaceGarbageCollected::wrapperTy peInfo, wrapper, info.GetIsolate());
115 v8SetReturnValue(info, wrapper); 115 v8SetReturnValue(info, wrapper);
116 } 116 }
117 117
118 } // namespace TestInterfaceGarbageCollectedV8Internal 118 } // namespace TestInterfaceGarbageCollectedV8Internal
119 119
120 static const V8DOMConfiguration::AttributeConfiguration V8TestInterfaceGarbageCo llectedAttributes[] = { 120 static const V8DOMConfiguration::AttributeConfiguration V8TestInterfaceGarbageCo llectedAttributes[] = {
121 {"attr1", TestInterfaceGarbageCollectedV8Internal::attr1AttributeGetterCallb ack, TestInterfaceGarbageCollectedV8Internal::attr1AttributeSetterCallback, 0, 0 , 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttrib ute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnI nstance}, 121 {"attr1", TestInterfaceGarbageCollectedV8Internal::attr1AttributeGetterCallb ack, TestInterfaceGarbageCollectedV8Internal::attr1AttributeSetterCallback, 0, 0 , 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttrib ute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnI nstance},
122 }; 122 };
123 123
124 static const V8DOMConfiguration::MethodConfiguration V8TestInterfaceGarbageColle ctedMethods[] = { 124 static const V8DOMConfiguration::MethodConfiguration V8TestInterfaceGarbageColle ctedMethods[] = {
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 return new WrapperPersistent<TestInterfaceGarbageCollected>(internalPointer- >toImpl<TestInterfaceGarbageCollected>()); 199 return new WrapperPersistent<TestInterfaceGarbageCollected>(internalPointer- >toImpl<TestInterfaceGarbageCollected>());
200 } 200 }
201 201
202 template<> 202 template<>
203 v8::Handle<v8::Value> toV8NoInline(TestInterfaceGarbageCollected* impl, v8::Hand le<v8::Object> creationContext, v8::Isolate* isolate) 203 v8::Handle<v8::Value> toV8NoInline(TestInterfaceGarbageCollected* impl, v8::Hand le<v8::Object> creationContext, v8::Isolate* isolate)
204 { 204 {
205 return toV8(impl, creationContext, isolate); 205 return toV8(impl, creationContext, isolate);
206 } 206 }
207 207
208 } // namespace blink 208 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698