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 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
338 v8SetReturnValue(info, wrapper); | 338 v8SetReturnValue(info, wrapper); |
339 } | 339 } |
340 | 340 |
341 } // namespace TestInterfaceGarbageCollectedV8Internal | 341 } // namespace TestInterfaceGarbageCollectedV8Internal |
342 | 342 |
343 const V8DOMConfiguration::AccessorConfiguration V8TestInterfaceGarbageCollectedA
ccessors[] = { | 343 const V8DOMConfiguration::AccessorConfiguration V8TestInterfaceGarbageCollectedA
ccessors[] = { |
344 {"attr1", TestInterfaceGarbageCollectedV8Internal::attr1AttributeGetterCallb
ack, TestInterfaceGarbageCollectedV8Internal::attr1AttributeSetterCallback, 0, 0
, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigurati
on::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::Ch
eckHolder}, | 344 {"attr1", TestInterfaceGarbageCollectedV8Internal::attr1AttributeGetterCallb
ack, TestInterfaceGarbageCollectedV8Internal::attr1AttributeSetterCallback, 0, 0
, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigurati
on::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::Ch
eckHolder}, |
345 }; | 345 }; |
346 | 346 |
347 const V8DOMConfiguration::MethodConfiguration V8TestInterfaceGarbageCollectedMet
hods[] = { | 347 const V8DOMConfiguration::MethodConfiguration V8TestInterfaceGarbageCollectedMet
hods[] = { |
348 {"func", TestInterfaceGarbageCollectedV8Internal::funcMethodCallback, 0, 1,
V8DOMConfiguration::ExposedToAllScripts}, | 348 {"func", TestInterfaceGarbageCollectedV8Internal::funcMethodCallback, 0, 1,
V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype}, |
349 {"keys", TestInterfaceGarbageCollectedV8Internal::keysMethodCallback, 0, 0,
V8DOMConfiguration::ExposedToAllScripts}, | 349 {"keys", TestInterfaceGarbageCollectedV8Internal::keysMethodCallback, 0, 0,
V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype}, |
350 {"values", TestInterfaceGarbageCollectedV8Internal::valuesMethodCallback, 0,
0, V8DOMConfiguration::ExposedToAllScripts}, | 350 {"values", TestInterfaceGarbageCollectedV8Internal::valuesMethodCallback, 0,
0, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype}, |
351 {"entries", TestInterfaceGarbageCollectedV8Internal::entriesMethodCallback,
0, 0, V8DOMConfiguration::ExposedToAllScripts}, | 351 {"entries", TestInterfaceGarbageCollectedV8Internal::entriesMethodCallback,
0, 0, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype}, |
352 {"forEach", TestInterfaceGarbageCollectedV8Internal::forEachMethodCallback,
0, 1, V8DOMConfiguration::ExposedToAllScripts}, | 352 {"forEach", TestInterfaceGarbageCollectedV8Internal::forEachMethodCallback,
0, 1, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype}, |
353 {"has", TestInterfaceGarbageCollectedV8Internal::hasMethodCallback, 0, 1, V8
DOMConfiguration::ExposedToAllScripts}, | 353 {"has", TestInterfaceGarbageCollectedV8Internal::hasMethodCallback, 0, 1, V8
DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype}, |
354 {"add", TestInterfaceGarbageCollectedV8Internal::addMethodCallback, 0, 1, V8
DOMConfiguration::ExposedToAllScripts}, | 354 {"add", TestInterfaceGarbageCollectedV8Internal::addMethodCallback, 0, 1, V8
DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype}, |
355 {"clear", TestInterfaceGarbageCollectedV8Internal::clearMethodCallback, 0, 0
, V8DOMConfiguration::ExposedToAllScripts}, | 355 {"clear", TestInterfaceGarbageCollectedV8Internal::clearMethodCallback, 0, 0
, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype}, |
356 {"delete", TestInterfaceGarbageCollectedV8Internal::deleteMethodCallback, 0,
1, V8DOMConfiguration::ExposedToAllScripts}, | 356 {"delete", TestInterfaceGarbageCollectedV8Internal::deleteMethodCallback, 0,
1, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype}, |
357 }; | 357 }; |
358 | 358 |
359 void V8TestInterfaceGarbageCollected::constructorCallback(const v8::FunctionCall
backInfo<v8::Value>& info) | 359 void V8TestInterfaceGarbageCollected::constructorCallback(const v8::FunctionCall
backInfo<v8::Value>& info) |
360 { | 360 { |
361 TRACE_EVENT_SCOPED_SAMPLING_STATE("blink", "DOMConstructor"); | 361 TRACE_EVENT_SCOPED_SAMPLING_STATE("blink", "DOMConstructor"); |
362 if (!info.IsConstructCall()) { | 362 if (!info.IsConstructCall()) { |
363 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::c
onstructorNotCallableAsFunction("TestInterfaceGarbageCollected")); | 363 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::c
onstructorNotCallableAsFunction("TestInterfaceGarbageCollected")); |
364 return; | 364 return; |
365 } | 365 } |
366 | 366 |
(...skipping 13 matching lines...) Expand all Loading... |
380 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(isolate, func
tionTemplate, "TestInterfaceGarbageCollected", V8EventTarget::domTemplate(isolat
e), V8TestInterfaceGarbageCollected::internalFieldCount, | 380 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(isolate, func
tionTemplate, "TestInterfaceGarbageCollected", V8EventTarget::domTemplate(isolat
e), V8TestInterfaceGarbageCollected::internalFieldCount, |
381 0, 0, | 381 0, 0, |
382 V8TestInterfaceGarbageCollectedAccessors, WTF_ARRAY_LENGTH(V8TestInterfa
ceGarbageCollectedAccessors), | 382 V8TestInterfaceGarbageCollectedAccessors, WTF_ARRAY_LENGTH(V8TestInterfa
ceGarbageCollectedAccessors), |
383 V8TestInterfaceGarbageCollectedMethods, WTF_ARRAY_LENGTH(V8TestInterface
GarbageCollectedMethods)); | 383 V8TestInterfaceGarbageCollectedMethods, WTF_ARRAY_LENGTH(V8TestInterface
GarbageCollectedMethods)); |
384 functionTemplate->SetCallHandler(V8TestInterfaceGarbageCollected::constructo
rCallback); | 384 functionTemplate->SetCallHandler(V8TestInterfaceGarbageCollected::constructo
rCallback); |
385 functionTemplate->SetLength(1); | 385 functionTemplate->SetLength(1); |
386 v8::Local<v8::ObjectTemplate> instanceTemplate = functionTemplate->InstanceT
emplate(); | 386 v8::Local<v8::ObjectTemplate> instanceTemplate = functionTemplate->InstanceT
emplate(); |
387 ALLOW_UNUSED_LOCAL(instanceTemplate); | 387 ALLOW_UNUSED_LOCAL(instanceTemplate); |
388 v8::Local<v8::ObjectTemplate> prototypeTemplate = functionTemplate->Prototyp
eTemplate(); | 388 v8::Local<v8::ObjectTemplate> prototypeTemplate = functionTemplate->Prototyp
eTemplate(); |
389 ALLOW_UNUSED_LOCAL(prototypeTemplate); | 389 ALLOW_UNUSED_LOCAL(prototypeTemplate); |
390 const V8DOMConfiguration::SymbolKeyedMethodConfiguration symbolKeyedIterator
Configuration = { v8::Symbol::GetIterator, TestInterfaceGarbageCollectedV8Intern
al::iteratorMethodCallback, 0, V8DOMConfiguration::ExposedToAllScripts }; | 390 const V8DOMConfiguration::SymbolKeyedMethodConfiguration symbolKeyedIterator
Configuration = { v8::Symbol::GetIterator, TestInterfaceGarbageCollectedV8Intern
al::iteratorMethodCallback, 0, V8DOMConfiguration::ExposedToAllScripts, V8DOMCon
figuration::OnPrototype }; |
391 V8DOMConfiguration::installMethod(isolate, prototypeTemplate, defaultSignatu
re, v8::DontDelete, symbolKeyedIteratorConfiguration); | 391 V8DOMConfiguration::installMethod(isolate, prototypeTemplate, defaultSignatu
re, v8::DontDelete, symbolKeyedIteratorConfiguration); |
392 | 392 |
393 // Custom toString template | 393 // Custom toString template |
394 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData:
:from(isolate)->toStringTemplate()); | 394 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData:
:from(isolate)->toStringTemplate()); |
395 } | 395 } |
396 | 396 |
397 v8::Local<v8::FunctionTemplate> V8TestInterfaceGarbageCollected::domTemplate(v8:
:Isolate* isolate) | 397 v8::Local<v8::FunctionTemplate> V8TestInterfaceGarbageCollected::domTemplate(v8:
:Isolate* isolate) |
398 { | 398 { |
399 return V8DOMConfiguration::domClassTemplate(isolate, const_cast<WrapperTypeI
nfo*>(&wrapperTypeInfo), installV8TestInterfaceGarbageCollectedTemplate); | 399 return V8DOMConfiguration::domClassTemplate(isolate, const_cast<WrapperTypeI
nfo*>(&wrapperTypeInfo), installV8TestInterfaceGarbageCollectedTemplate); |
400 } | 400 } |
(...skipping 15 matching lines...) Expand all Loading... |
416 | 416 |
417 void V8TestInterfaceGarbageCollected::refObject(ScriptWrappable* scriptWrappable
) | 417 void V8TestInterfaceGarbageCollected::refObject(ScriptWrappable* scriptWrappable
) |
418 { | 418 { |
419 } | 419 } |
420 | 420 |
421 void V8TestInterfaceGarbageCollected::derefObject(ScriptWrappable* scriptWrappab
le) | 421 void V8TestInterfaceGarbageCollected::derefObject(ScriptWrappable* scriptWrappab
le) |
422 { | 422 { |
423 } | 423 } |
424 | 424 |
425 } // namespace blink | 425 } // namespace blink |
OLD | NEW |