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

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

Issue 823093002: [bindings] Make v8_class::install[v8_class]Template use Local<>. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 12 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
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 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 } 161 }
162 162
163 if (ConstructorMode::current(info.GetIsolate()) == ConstructorMode::WrapExis tingObject) { 163 if (ConstructorMode::current(info.GetIsolate()) == ConstructorMode::WrapExis tingObject) {
164 v8SetReturnValue(info, info.Holder()); 164 v8SetReturnValue(info, info.Holder());
165 return; 165 return;
166 } 166 }
167 167
168 TestInterfaceWillBeGarbageCollectedV8Internal::constructor(info); 168 TestInterfaceWillBeGarbageCollectedV8Internal::constructor(info);
169 } 169 }
170 170
171 static void installV8TestInterfaceWillBeGarbageCollectedTemplate(v8::Handle<v8:: FunctionTemplate> functionTemplate, v8::Isolate* isolate) 171 static void installV8TestInterfaceWillBeGarbageCollectedTemplate(v8::Local<v8::F unctionTemplate> functionTemplate, v8::Isolate* isolate)
172 { 172 {
173 functionTemplate->ReadOnlyPrototype(); 173 functionTemplate->ReadOnlyPrototype();
174 174
175 v8::Local<v8::Signature> defaultSignature; 175 v8::Local<v8::Signature> defaultSignature;
176 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(isolate, func tionTemplate, "TestInterfaceWillBeGarbageCollected", V8EventTarget::domTemplate( isolate), V8TestInterfaceWillBeGarbageCollected::internalFieldCount, 176 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(isolate, func tionTemplate, "TestInterfaceWillBeGarbageCollected", V8EventTarget::domTemplate( isolate), V8TestInterfaceWillBeGarbageCollected::internalFieldCount,
177 V8TestInterfaceWillBeGarbageCollectedAttributes, WTF_ARRAY_LENGTH(V8Test InterfaceWillBeGarbageCollectedAttributes), 177 V8TestInterfaceWillBeGarbageCollectedAttributes, WTF_ARRAY_LENGTH(V8Test InterfaceWillBeGarbageCollectedAttributes),
178 0, 0, 178 0, 0,
179 V8TestInterfaceWillBeGarbageCollectedMethods, WTF_ARRAY_LENGTH(V8TestInt erfaceWillBeGarbageCollectedMethods)); 179 V8TestInterfaceWillBeGarbageCollectedMethods, WTF_ARRAY_LENGTH(V8TestInt erfaceWillBeGarbageCollectedMethods));
180 functionTemplate->SetCallHandler(V8TestInterfaceWillBeGarbageCollected::cons tructorCallback); 180 functionTemplate->SetCallHandler(V8TestInterfaceWillBeGarbageCollected::cons tructorCallback);
181 functionTemplate->SetLength(1); 181 functionTemplate->SetLength(1);
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 } 216 }
217 217
218 void V8TestInterfaceWillBeGarbageCollected::derefObject(ScriptWrappable* scriptW rappable) 218 void V8TestInterfaceWillBeGarbageCollected::derefObject(ScriptWrappable* scriptW rappable)
219 { 219 {
220 #if !ENABLE(OILPAN) 220 #if !ENABLE(OILPAN)
221 scriptWrappable->toImpl<TestInterfaceWillBeGarbageCollected>()->deref(); 221 scriptWrappable->toImpl<TestInterfaceWillBeGarbageCollected>()->deref();
222 #endif 222 #endif
223 } 223 }
224 224
225 } // namespace blink 225 } // 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