OLD | NEW |
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 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 0, 0); | 175 0, 0); |
176 functionTemplate->SetCallHandler(V8TestInterfaceWillBeGarbageCollected::cons
tructorCallback); | 176 functionTemplate->SetCallHandler(V8TestInterfaceWillBeGarbageCollected::cons
tructorCallback); |
177 functionTemplate->SetLength(1); | 177 functionTemplate->SetLength(1); |
178 v8::Local<v8::ObjectTemplate> instanceTemplate = functionTemplate->InstanceT
emplate(); | 178 v8::Local<v8::ObjectTemplate> instanceTemplate = functionTemplate->InstanceT
emplate(); |
179 ALLOW_UNUSED_LOCAL(instanceTemplate); | 179 ALLOW_UNUSED_LOCAL(instanceTemplate); |
180 v8::Local<v8::ObjectTemplate> prototypeTemplate = functionTemplate->Prototyp
eTemplate(); | 180 v8::Local<v8::ObjectTemplate> prototypeTemplate = functionTemplate->Prototyp
eTemplate(); |
181 ALLOW_UNUSED_LOCAL(prototypeTemplate); | 181 ALLOW_UNUSED_LOCAL(prototypeTemplate); |
182 const V8DOMConfiguration::MethodConfiguration funcMethodConfiguration = { | 182 const V8DOMConfiguration::MethodConfiguration funcMethodConfiguration = { |
183 "func", TestInterfaceWillBeGarbageCollectedV8Internal::funcMethodCallbac
k, 0, 1, V8DOMConfiguration::ExposedToAllScripts, | 183 "func", TestInterfaceWillBeGarbageCollectedV8Internal::funcMethodCallbac
k, 0, 1, V8DOMConfiguration::ExposedToAllScripts, |
184 }; | 184 }; |
185 V8DOMConfiguration::installMethod(instanceTemplate, defaultSignature, static
_cast<v8::PropertyAttribute>(v8::DontDelete | v8::ReadOnly), funcMethodConfigura
tion, isolate); | 185 V8DOMConfiguration::installMethod(isolate, instanceTemplate, defaultSignatur
e, static_cast<v8::PropertyAttribute>(v8::DontDelete | v8::ReadOnly), funcMethod
Configuration); |
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 |
(...skipping 20 matching lines...) Expand all Loading... |
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 |
OLD | NEW |