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 "V8TestInterfaceGarbageCollected.h" | 8 #include "V8TestInterfaceGarbageCollected.h" |
9 | 9 |
10 #include "bindings/core/v8/ExceptionState.h" | 10 #include "bindings/core/v8/ExceptionState.h" |
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
374 V8TestInterfaceGarbageCollectedMethods, WTF_ARRAY_LENGTH(V8TestInterface
GarbageCollectedMethods)); | 374 V8TestInterfaceGarbageCollectedMethods, WTF_ARRAY_LENGTH(V8TestInterface
GarbageCollectedMethods)); |
375 functionTemplate->SetCallHandler(V8TestInterfaceGarbageCollected::constructo
rCallback); | 375 functionTemplate->SetCallHandler(V8TestInterfaceGarbageCollected::constructo
rCallback); |
376 functionTemplate->SetLength(1); | 376 functionTemplate->SetLength(1); |
377 v8::Local<v8::ObjectTemplate> instanceTemplate = functionTemplate->InstanceT
emplate(); | 377 v8::Local<v8::ObjectTemplate> instanceTemplate = functionTemplate->InstanceT
emplate(); |
378 ALLOW_UNUSED_LOCAL(instanceTemplate); | 378 ALLOW_UNUSED_LOCAL(instanceTemplate); |
379 v8::Local<v8::ObjectTemplate> prototypeTemplate = functionTemplate->Prototyp
eTemplate(); | 379 v8::Local<v8::ObjectTemplate> prototypeTemplate = functionTemplate->Prototyp
eTemplate(); |
380 ALLOW_UNUSED_LOCAL(prototypeTemplate); | 380 ALLOW_UNUSED_LOCAL(prototypeTemplate); |
381 static const V8DOMConfiguration::SymbolKeyedMethodConfiguration symbolKeyedI
teratorConfiguration = { v8::Symbol::GetIterator, TestInterfaceGarbageCollectedV
8Internal::iteratorMethodCallback, 0, V8DOMConfiguration::ExposedToAllScripts }; | 381 static const V8DOMConfiguration::SymbolKeyedMethodConfiguration symbolKeyedI
teratorConfiguration = { v8::Symbol::GetIterator, TestInterfaceGarbageCollectedV
8Internal::iteratorMethodCallback, 0, V8DOMConfiguration::ExposedToAllScripts }; |
382 V8DOMConfiguration::installMethod(isolate, prototypeTemplate, defaultSignatu
re, v8::DontDelete, symbolKeyedIteratorConfiguration); | 382 V8DOMConfiguration::installMethod(isolate, prototypeTemplate, defaultSignatu
re, v8::DontDelete, symbolKeyedIteratorConfiguration); |
383 | 383 |
| 384 prototypeTemplate->Set(v8::Symbol::GetToStringTag(isolate), v8AtomicString(i
solate, "TestInterfaceGarbageCollected")); |
| 385 |
384 // Custom toString template | 386 // Custom toString template |
385 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData:
:from(isolate)->toStringTemplate()); | 387 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData:
:from(isolate)->toStringTemplate()); |
386 } | 388 } |
387 | 389 |
388 v8::Local<v8::FunctionTemplate> V8TestInterfaceGarbageCollected::domTemplate(v8:
:Isolate* isolate) | 390 v8::Local<v8::FunctionTemplate> V8TestInterfaceGarbageCollected::domTemplate(v8:
:Isolate* isolate) |
389 { | 391 { |
390 return V8DOMConfiguration::domClassTemplate(isolate, const_cast<WrapperTypeI
nfo*>(&wrapperTypeInfo), installV8TestInterfaceGarbageCollectedTemplate); | 392 return V8DOMConfiguration::domClassTemplate(isolate, const_cast<WrapperTypeI
nfo*>(&wrapperTypeInfo), installV8TestInterfaceGarbageCollectedTemplate); |
391 } | 393 } |
392 | 394 |
393 bool V8TestInterfaceGarbageCollected::hasInstance(v8::Local<v8::Value> v8Value,
v8::Isolate* isolate) | 395 bool V8TestInterfaceGarbageCollected::hasInstance(v8::Local<v8::Value> v8Value,
v8::Isolate* isolate) |
(...skipping 13 matching lines...) Expand all Loading... |
407 | 409 |
408 void V8TestInterfaceGarbageCollected::refObject(ScriptWrappable* scriptWrappable
) | 410 void V8TestInterfaceGarbageCollected::refObject(ScriptWrappable* scriptWrappable
) |
409 { | 411 { |
410 } | 412 } |
411 | 413 |
412 void V8TestInterfaceGarbageCollected::derefObject(ScriptWrappable* scriptWrappab
le) | 414 void V8TestInterfaceGarbageCollected::derefObject(ScriptWrappable* scriptWrappab
le) |
413 { | 415 { |
414 } | 416 } |
415 | 417 |
416 } // namespace blink | 418 } // namespace blink |
OLD | NEW |