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

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

Issue 698023005: Move the v8::Isolate* parameter to the first parameter of various binding methods in third_party/We… (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 1 month 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
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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 if (UNLIKELY(info.Length() < 1)) { 86 if (UNLIKELY(info.Length() < 1)) {
87 V8ThrowException::throwException(createMinimumArityTypeErrorForConstruct or(info.GetIsolate(), "TestInterfaceWillBeGarbageCollected", 1, info.Length()), info.GetIsolate()); 87 V8ThrowException::throwException(createMinimumArityTypeErrorForConstruct or(info.GetIsolate(), "TestInterfaceWillBeGarbageCollected", 1, info.Length()), info.GetIsolate());
88 return; 88 return;
89 } 89 }
90 V8StringResource<> str; 90 V8StringResource<> str;
91 { 91 {
92 TOSTRING_VOID_INTERNAL(str, info[0]); 92 TOSTRING_VOID_INTERNAL(str, info[0]);
93 } 93 }
94 RefPtrWillBeRawPtr<TestInterfaceWillBeGarbageCollected> impl = TestInterface WillBeGarbageCollected::create(str); 94 RefPtrWillBeRawPtr<TestInterfaceWillBeGarbageCollected> impl = TestInterface WillBeGarbageCollected::create(str);
95 v8::Handle<v8::Object> wrapper = info.Holder(); 95 v8::Handle<v8::Object> wrapper = info.Holder();
96 impl->associateWithWrapper(&V8TestInterfaceWillBeGarbageCollected::wrapperTy peInfo, wrapper, info.GetIsolate()); 96 impl->associateWithWrapper(info.GetIsolate(), &V8TestInterfaceWillBeGarbageC ollected::wrapperTypeInfo, wrapper);
97 v8SetReturnValue(info, wrapper); 97 v8SetReturnValue(info, wrapper);
98 } 98 }
99 99
100 } // namespace TestInterfaceWillBeGarbageCollectedV8Internal 100 } // namespace TestInterfaceWillBeGarbageCollectedV8Internal
101 101
102 static const V8DOMConfiguration::AttributeConfiguration V8TestInterfaceWillBeGar bageCollectedAttributes[] = { 102 static const V8DOMConfiguration::AttributeConfiguration V8TestInterfaceWillBeGar bageCollectedAttributes[] = {
103 {"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}, 103 {"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},
104 }; 104 };
105 105
106 static const V8DOMConfiguration::MethodConfiguration V8TestInterfaceWillBeGarbag eCollectedMethods[] = { 106 static const V8DOMConfiguration::MethodConfiguration V8TestInterfaceWillBeGarbag eCollectedMethods[] = {
(...skipping 16 matching lines...) Expand all
123 if (UNLIKELY(info.Length() < 1)) { 123 if (UNLIKELY(info.Length() < 1)) {
124 V8ThrowException::throwException(createMinimumArityTypeErrorForConstruct or(info.GetIsolate(), "TestInterfaceWillBeGarbageCollected", 1, info.Length()), info.GetIsolate()); 124 V8ThrowException::throwException(createMinimumArityTypeErrorForConstruct or(info.GetIsolate(), "TestInterfaceWillBeGarbageCollected", 1, info.Length()), info.GetIsolate());
125 return; 125 return;
126 } 126 }
127 V8StringResource<> str; 127 V8StringResource<> str;
128 { 128 {
129 TOSTRING_VOID_INTERNAL(str, info[0]); 129 TOSTRING_VOID_INTERNAL(str, info[0]);
130 } 130 }
131 RefPtrWillBeRawPtr<TestInterfaceWillBeGarbageCollected> impl = TestInterface WillBeGarbageCollected::createForJSConstructor(str); 131 RefPtrWillBeRawPtr<TestInterfaceWillBeGarbageCollected> impl = TestInterface WillBeGarbageCollected::createForJSConstructor(str);
132 v8::Handle<v8::Object> wrapper = info.Holder(); 132 v8::Handle<v8::Object> wrapper = info.Holder();
133 impl->associateWithWrapper(&V8TestInterfaceWillBeGarbageCollectedConstructor ::wrapperTypeInfo, wrapper, info.GetIsolate()); 133 impl->associateWithWrapper(info.GetIsolate(), &V8TestInterfaceWillBeGarbageC ollectedConstructor::wrapperTypeInfo, wrapper);
134 v8SetReturnValue(info, wrapper); 134 v8SetReturnValue(info, wrapper);
135 } 135 }
136 136
137 v8::Handle<v8::FunctionTemplate> V8TestInterfaceWillBeGarbageCollectedConstructo r::domTemplate(v8::Isolate* isolate) 137 v8::Handle<v8::FunctionTemplate> V8TestInterfaceWillBeGarbageCollectedConstructo r::domTemplate(v8::Isolate* isolate)
138 { 138 {
139 static int domTemplateKey; // This address is used for a key to look up the dom template. 139 static int domTemplateKey; // This address is used for a key to look up the dom template.
140 V8PerIsolateData* data = V8PerIsolateData::from(isolate); 140 V8PerIsolateData* data = V8PerIsolateData::from(isolate);
141 v8::Local<v8::FunctionTemplate> result = data->existingDOMTemplate(&domTempl ateKey); 141 v8::Local<v8::FunctionTemplate> result = data->existingDOMTemplate(&domTempl ateKey);
142 if (!result.IsEmpty()) 142 if (!result.IsEmpty())
143 return result; 143 return result;
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 #endif 223 #endif
224 } 224 }
225 225
226 template<> 226 template<>
227 v8::Handle<v8::Value> toV8NoInline(TestInterfaceWillBeGarbageCollected* impl, v8 ::Handle<v8::Object> creationContext, v8::Isolate* isolate) 227 v8::Handle<v8::Value> toV8NoInline(TestInterfaceWillBeGarbageCollected* impl, v8 ::Handle<v8::Object> creationContext, v8::Isolate* isolate)
228 { 228 {
229 return toV8(impl, creationContext, isolate); 229 return toV8(impl, creationContext, isolate);
230 } 230 }
231 231
232 } // namespace blink 232 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698