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 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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::Handle<v8::
FunctionTemplate> 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(functionTempl
ate, "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 isolate); | |
181 functionTemplate->SetCallHandler(V8TestInterfaceWillBeGarbageCollected::cons
tructorCallback); | 180 functionTemplate->SetCallHandler(V8TestInterfaceWillBeGarbageCollected::cons
tructorCallback); |
182 functionTemplate->SetLength(1); | 181 functionTemplate->SetLength(1); |
183 v8::Local<v8::ObjectTemplate> instanceTemplate = functionTemplate->InstanceT
emplate(); | 182 v8::Local<v8::ObjectTemplate> instanceTemplate = functionTemplate->InstanceT
emplate(); |
184 ALLOW_UNUSED_LOCAL(instanceTemplate); | 183 ALLOW_UNUSED_LOCAL(instanceTemplate); |
185 v8::Local<v8::ObjectTemplate> prototypeTemplate = functionTemplate->Prototyp
eTemplate(); | 184 v8::Local<v8::ObjectTemplate> prototypeTemplate = functionTemplate->Prototyp
eTemplate(); |
186 ALLOW_UNUSED_LOCAL(prototypeTemplate); | 185 ALLOW_UNUSED_LOCAL(prototypeTemplate); |
187 | 186 |
188 // Custom toString template | 187 // Custom toString template |
189 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData:
:from(isolate)->toStringTemplate()); | 188 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData:
:from(isolate)->toStringTemplate()); |
190 } | 189 } |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
223 #endif | 222 #endif |
224 } | 223 } |
225 | 224 |
226 template<> | 225 template<> |
227 v8::Handle<v8::Value> toV8NoInline(TestInterfaceWillBeGarbageCollected* impl, v8
::Handle<v8::Object> creationContext, v8::Isolate* isolate) | 226 v8::Handle<v8::Value> toV8NoInline(TestInterfaceWillBeGarbageCollected* impl, v8
::Handle<v8::Object> creationContext, v8::Isolate* isolate) |
228 { | 227 { |
229 return toV8(impl, creationContext, isolate); | 228 return toV8(impl, creationContext, isolate); |
230 } | 229 } |
231 | 230 |
232 } // namespace blink | 231 } // namespace blink |
OLD | NEW |