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

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

Issue 425853006: Introduce V8DOMConfiguration::InstanceOrPrototype enum (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 } 108 }
109 RawPtr<TestInterfaceGarbageCollected> impl = TestInterfaceGarbageCollected:: create(str); 109 RawPtr<TestInterfaceGarbageCollected> impl = TestInterfaceGarbageCollected:: create(str);
110 v8::Handle<v8::Object> wrapper = info.Holder(); 110 v8::Handle<v8::Object> wrapper = info.Holder();
111 V8DOMWrapper::associateObjectWithWrapper<V8TestInterfaceGarbageCollected>(im pl.release(), &V8TestInterfaceGarbageCollected::wrapperTypeInfo, wrapper, info.G etIsolate(), WrapperConfiguration::Independent); 111 V8DOMWrapper::associateObjectWithWrapper<V8TestInterfaceGarbageCollected>(im pl.release(), &V8TestInterfaceGarbageCollected::wrapperTypeInfo, wrapper, info.G etIsolate(), WrapperConfiguration::Independent);
112 v8SetReturnValue(info, wrapper); 112 v8SetReturnValue(info, wrapper);
113 } 113 }
114 114
115 } // namespace TestInterfaceGarbageCollectedV8Internal 115 } // namespace TestInterfaceGarbageCollectedV8Internal
116 116
117 static const V8DOMConfiguration::AttributeConfiguration V8TestInterfaceGarbageCo llectedAttributes[] = { 117 static const V8DOMConfiguration::AttributeConfiguration V8TestInterfaceGarbageCo llectedAttributes[] = {
118 {"attr1", TestInterfaceGarbageCollectedV8Internal::attr1AttributeGetterCallb ack, TestInterfaceGarbageCollectedV8Internal::attr1AttributeSetterCallback, 0, 0 , 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttrib ute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, 0 /* on instance */}, 118 {"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},
119 }; 119 };
120 120
121 static const V8DOMConfiguration::MethodConfiguration V8TestInterfaceGarbageColle ctedMethods[] = { 121 static const V8DOMConfiguration::MethodConfiguration V8TestInterfaceGarbageColle ctedMethods[] = {
122 {"func", TestInterfaceGarbageCollectedV8Internal::funcMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, 122 {"func", TestInterfaceGarbageCollectedV8Internal::funcMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts},
123 }; 123 };
124 124
125 void V8TestInterfaceGarbageCollected::constructorCallback(const v8::FunctionCall backInfo<v8::Value>& info) 125 void V8TestInterfaceGarbageCollected::constructorCallback(const v8::FunctionCall backInfo<v8::Value>& info)
126 { 126 {
127 TRACE_EVENT_SCOPED_SAMPLING_STATE("blink", "DOMConstructor"); 127 TRACE_EVENT_SCOPED_SAMPLING_STATE("blink", "DOMConstructor");
128 if (!info.IsConstructCall()) { 128 if (!info.IsConstructCall()) {
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 { 213 {
214 } 214 }
215 215
216 template<> 216 template<>
217 v8::Handle<v8::Value> toV8NoInline(TestInterfaceGarbageCollected* impl, v8::Hand le<v8::Object> creationContext, v8::Isolate* isolate) 217 v8::Handle<v8::Value> toV8NoInline(TestInterfaceGarbageCollected* impl, v8::Hand le<v8::Object> creationContext, v8::Isolate* isolate)
218 { 218 {
219 return toV8(impl, creationContext, isolate); 219 return toV8(impl, creationContext, isolate);
220 } 220 }
221 221
222 } // namespace blink 222 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698