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

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

Issue 813513004: [bindings] Remove all the usages of Handle<> from binding templates. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 11 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 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 186
187 // Custom toString template 187 // Custom toString template
188 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData: :from(isolate)->toStringTemplate()); 188 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData: :from(isolate)->toStringTemplate());
189 } 189 }
190 190
191 v8::Local<v8::FunctionTemplate> V8TestInterfaceWillBeGarbageCollected::domTempla te(v8::Isolate* isolate) 191 v8::Local<v8::FunctionTemplate> V8TestInterfaceWillBeGarbageCollected::domTempla te(v8::Isolate* isolate)
192 { 192 {
193 return V8DOMConfiguration::domClassTemplate(isolate, const_cast<WrapperTypeI nfo*>(&wrapperTypeInfo), installV8TestInterfaceWillBeGarbageCollectedTemplate); 193 return V8DOMConfiguration::domClassTemplate(isolate, const_cast<WrapperTypeI nfo*>(&wrapperTypeInfo), installV8TestInterfaceWillBeGarbageCollectedTemplate);
194 } 194 }
195 195
196 bool V8TestInterfaceWillBeGarbageCollected::hasInstance(v8::Handle<v8::Value> v8 Value, v8::Isolate* isolate) 196 bool V8TestInterfaceWillBeGarbageCollected::hasInstance(v8::Local<v8::Value> v8V alue, v8::Isolate* isolate)
197 { 197 {
198 return V8PerIsolateData::from(isolate)->hasInstance(&wrapperTypeInfo, v8Valu e); 198 return V8PerIsolateData::from(isolate)->hasInstance(&wrapperTypeInfo, v8Valu e);
199 } 199 }
200 200
201 v8::Handle<v8::Object> V8TestInterfaceWillBeGarbageCollected::findInstanceInProt otypeChain(v8::Handle<v8::Value> v8Value, v8::Isolate* isolate) 201 v8::Local<v8::Object> V8TestInterfaceWillBeGarbageCollected::findInstanceInProto typeChain(v8::Local<v8::Value> v8Value, v8::Isolate* isolate)
202 { 202 {
203 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe rTypeInfo, v8Value); 203 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe rTypeInfo, v8Value);
204 } 204 }
205 205
206 TestInterfaceWillBeGarbageCollected* V8TestInterfaceWillBeGarbageCollected::toIm plWithTypeCheck(v8::Isolate* isolate, v8::Handle<v8::Value> value) 206 TestInterfaceWillBeGarbageCollected* V8TestInterfaceWillBeGarbageCollected::toIm plWithTypeCheck(v8::Isolate* isolate, v8::Local<v8::Value> value)
207 { 207 {
208 return hasInstance(value, isolate) ? toImpl(v8::Handle<v8::Object>::Cast(val ue)) : 0; 208 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(valu e)) : 0;
209 } 209 }
210 210
211 void V8TestInterfaceWillBeGarbageCollected::refObject(ScriptWrappable* scriptWra ppable) 211 void V8TestInterfaceWillBeGarbageCollected::refObject(ScriptWrappable* scriptWra ppable)
212 { 212 {
213 #if !ENABLE(OILPAN) 213 #if !ENABLE(OILPAN)
214 scriptWrappable->toImpl<TestInterfaceWillBeGarbageCollected>()->ref(); 214 scriptWrappable->toImpl<TestInterfaceWillBeGarbageCollected>()->ref();
215 #endif 215 #endif
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

Powered by Google App Engine
This is Rietveld 408576698