| 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 // clang-format off | 7 // clang-format off |
| 8 #include "V8TestInterface5.h" | 8 #include "V8TestInterface5.h" |
| 9 | 9 |
| 10 #include "bindings/core/v8/ExceptionState.h" | 10 #include "bindings/core/v8/ExceptionState.h" |
| (...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 369 impl->setWindowExposedAttribute(cppValue); | 369 impl->setWindowExposedAttribute(cppValue); |
| 370 } | 370 } |
| 371 | 371 |
| 372 void windowExposedAttributeAttributeSetterCallback(const v8::FunctionCallbackInf
o<v8::Value>& info) | 372 void windowExposedAttributeAttributeSetterCallback(const v8::FunctionCallbackInf
o<v8::Value>& info) |
| 373 { | 373 { |
| 374 v8::Local<v8::Value> v8Value = info[0]; | 374 v8::Local<v8::Value> v8Value = info[0]; |
| 375 | 375 |
| 376 TestInterface5ImplementationV8Internal::windowExposedAttributeAttributeSette
r(v8Value, info); | 376 TestInterface5ImplementationV8Internal::windowExposedAttributeAttributeSette
r(v8Value, info); |
| 377 } | 377 } |
| 378 | 378 |
| 379 static void voidMethodTestInterfaceEmptyArgMethod(const v8::FunctionCallbackInfo
<v8::Value>& info) | 379 static void voidMethodTestInterfaceEmptyArgMethod(const v8::FunctionCallbackInfo
<v8::Value>& info) { |
| 380 { | 380 TestInterface5Implementation* impl = V8TestInterface5::toImpl(info.Holder()); |
| 381 TestInterface5Implementation* impl = V8TestInterface5::toImpl(info.Holder())
; | 381 |
| 382 | 382 if (UNLIKELY(info.Length() < 1)) { |
| 383 if (UNLIKELY(info.Length() < 1)) { | 383 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::faile
dToExecute("voidMethodTestInterfaceEmptyArg", "TestInterface5", ExceptionMessage
s::notEnoughArguments(1, info.Length()))); |
| 384 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f
ailedToExecute("voidMethodTestInterfaceEmptyArg", "TestInterface5", ExceptionMes
sages::notEnoughArguments(1, info.Length()))); | 384 return; |
| 385 return; | 385 } |
| 386 } | 386 |
| 387 | 387 TestInterfaceEmpty* testInterfaceEmptyArg; |
| 388 TestInterfaceEmpty* testInterfaceEmptyArg; | 388 testInterfaceEmptyArg = V8TestInterfaceEmpty::toImplWithTypeCheck(info.GetIsol
ate(), info[0]); |
| 389 testInterfaceEmptyArg = V8TestInterfaceEmpty::toImplWithTypeCheck(info.GetIs
olate(), info[0]); | 389 if (!testInterfaceEmptyArg) { |
| 390 if (!testInterfaceEmptyArg) { | 390 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::faile
dToExecute("voidMethodTestInterfaceEmptyArg", "TestInterface5", "parameter 1 is
not of type 'TestInterfaceEmpty'.")); |
| 391 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f
ailedToExecute("voidMethodTestInterfaceEmptyArg", "TestInterface5", "parameter 1
is not of type 'TestInterfaceEmpty'.")); | 391 |
| 392 | 392 return; |
| 393 return; | 393 } |
| 394 } | 394 |
| 395 | 395 impl->voidMethodTestInterfaceEmptyArg(testInterfaceEmptyArg); |
| 396 impl->voidMethodTestInterfaceEmptyArg(testInterfaceEmptyArg); | 396 } |
| 397 } | 397 |
| 398 | 398 void voidMethodTestInterfaceEmptyArgMethodCallback(const v8::FunctionCallbackInf
o<v8::Value>& info) { |
| 399 void voidMethodTestInterfaceEmptyArgMethodCallback(const v8::FunctionCallbackInf
o<v8::Value>& info) | 399 TestInterface5ImplementationV8Internal::voidMethodTestInterfaceEmptyArgMethod(
info); |
| 400 { | 400 } |
| 401 TestInterface5ImplementationV8Internal::voidMethodTestInterfaceEmptyArgMetho
d(info); | 401 |
| 402 } | 402 static void voidMethodDoubleArgFloatArgMethod(const v8::FunctionCallbackInfo<v8:
:Value>& info) { |
| 403 | 403 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCont
ext, "TestInterface5", "voidMethodDoubleArgFloatArg"); |
| 404 static void voidMethodDoubleArgFloatArgMethod(const v8::FunctionCallbackInfo<v8:
:Value>& info) | 404 |
| 405 { | 405 TestInterface5Implementation* impl = V8TestInterface5::toImpl(info.Holder()); |
| 406 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo
ntext, "TestInterface5", "voidMethodDoubleArgFloatArg"); | 406 |
| 407 | 407 if (UNLIKELY(info.Length() < 2)) { |
| 408 TestInterface5Implementation* impl = V8TestInterface5::toImpl(info.Holder())
; | 408 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(2, info.
Length())); |
| 409 | 409 return; |
| 410 if (UNLIKELY(info.Length() < 2)) { | 410 } |
| 411 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(2, i
nfo.Length())); | 411 |
| 412 return; | 412 double doubleArg; |
| 413 } | 413 float floatArg; |
| 414 | 414 doubleArg = toRestrictedDouble(info.GetIsolate(), info[0], exceptionState); |
| 415 double doubleArg; | 415 if (exceptionState.hadException()) |
| 416 float floatArg; | 416 return; |
| 417 doubleArg = toRestrictedDouble(info.GetIsolate(), info[0], exceptionState); | 417 |
| 418 if (exceptionState.hadException()) | 418 floatArg = toRestrictedFloat(info.GetIsolate(), info[1], exceptionState); |
| 419 return; | 419 if (exceptionState.hadException()) |
| 420 | 420 return; |
| 421 floatArg = toRestrictedFloat(info.GetIsolate(), info[1], exceptionState); | 421 |
| 422 if (exceptionState.hadException()) | 422 impl->voidMethodDoubleArgFloatArg(doubleArg, floatArg); |
| 423 return; | 423 } |
| 424 | 424 |
| 425 impl->voidMethodDoubleArgFloatArg(doubleArg, floatArg); | 425 void voidMethodDoubleArgFloatArgMethodCallback(const v8::FunctionCallbackInfo<v8
::Value>& info) { |
| 426 } | 426 TestInterface5ImplementationV8Internal::voidMethodDoubleArgFloatArgMethod(info
); |
| 427 | 427 } |
| 428 void voidMethodDoubleArgFloatArgMethodCallback(const v8::FunctionCallbackInfo<v8
::Value>& info) | 428 |
| 429 { | 429 static void voidMethodUnrestrictedDoubleArgUnrestrictedFloatArgMethod(const v8::
FunctionCallbackInfo<v8::Value>& info) { |
| 430 TestInterface5ImplementationV8Internal::voidMethodDoubleArgFloatArgMethod(in
fo); | 430 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCont
ext, "TestInterface5", "voidMethodUnrestrictedDoubleArgUnrestrictedFloatArg"); |
| 431 } | 431 |
| 432 | 432 TestInterface5Implementation* impl = V8TestInterface5::toImpl(info.Holder()); |
| 433 static void voidMethodUnrestrictedDoubleArgUnrestrictedFloatArgMethod(const v8::
FunctionCallbackInfo<v8::Value>& info) | 433 |
| 434 { | 434 if (UNLIKELY(info.Length() < 2)) { |
| 435 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo
ntext, "TestInterface5", "voidMethodUnrestrictedDoubleArgUnrestrictedFloatArg"); | 435 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(2, info.
Length())); |
| 436 | 436 return; |
| 437 TestInterface5Implementation* impl = V8TestInterface5::toImpl(info.Holder())
; | 437 } |
| 438 | 438 |
| 439 if (UNLIKELY(info.Length() < 2)) { | 439 double unrestrictedDoubleArg; |
| 440 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(2, i
nfo.Length())); | 440 float unrestrictedFloatArg; |
| 441 return; | 441 unrestrictedDoubleArg = toDouble(info.GetIsolate(), info[0], exceptionState); |
| 442 } | 442 if (exceptionState.hadException()) |
| 443 | 443 return; |
| 444 double unrestrictedDoubleArg; | 444 |
| 445 float unrestrictedFloatArg; | 445 unrestrictedFloatArg = toFloat(info.GetIsolate(), info[1], exceptionState); |
| 446 unrestrictedDoubleArg = toDouble(info.GetIsolate(), info[0], exceptionState)
; | 446 if (exceptionState.hadException()) |
| 447 if (exceptionState.hadException()) | 447 return; |
| 448 return; | 448 |
| 449 | 449 impl->voidMethodUnrestrictedDoubleArgUnrestrictedFloatArg(unrestrictedDoubleAr
g, unrestrictedFloatArg); |
| 450 unrestrictedFloatArg = toFloat(info.GetIsolate(), info[1], exceptionState); | 450 } |
| 451 if (exceptionState.hadException()) | 451 |
| 452 return; | 452 void voidMethodUnrestrictedDoubleArgUnrestrictedFloatArgMethodCallback(const v8:
:FunctionCallbackInfo<v8::Value>& info) { |
| 453 | 453 TestInterface5ImplementationV8Internal::voidMethodUnrestrictedDoubleArgUnrestr
ictedFloatArgMethod(info); |
| 454 impl->voidMethodUnrestrictedDoubleArgUnrestrictedFloatArg(unrestrictedDouble
Arg, unrestrictedFloatArg); | 454 } |
| 455 } | 455 |
| 456 | 456 static void voidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| 457 void voidMethodUnrestrictedDoubleArgUnrestrictedFloatArgMethodCallback(const v8:
:FunctionCallbackInfo<v8::Value>& info) | 457 TestInterface5Implementation* impl = V8TestInterface5::toImpl(info.Holder()); |
| 458 { | 458 |
| 459 TestInterface5ImplementationV8Internal::voidMethodUnrestrictedDoubleArgUnres
trictedFloatArgMethod(info); | 459 impl->voidMethod(); |
| 460 } | 460 } |
| 461 | 461 |
| 462 static void voidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) | 462 void voidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| 463 { | 463 TestInterface5ImplementationV8Internal::voidMethodMethod(info); |
| 464 TestInterface5Implementation* impl = V8TestInterface5::toImpl(info.Holder())
; | 464 } |
| 465 | 465 |
| 466 impl->voidMethod(); | 466 static void voidMethodMethodForMainWorld(const v8::FunctionCallbackInfo<v8::Valu
e>& info) { |
| 467 } | 467 TestInterface5Implementation* impl = V8TestInterface5::toImpl(info.Holder()); |
| 468 | 468 |
| 469 void voidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) | 469 impl->voidMethod(); |
| 470 { | 470 } |
| 471 TestInterface5ImplementationV8Internal::voidMethodMethod(info); | 471 |
| 472 } | 472 void voidMethodMethodCallbackForMainWorld(const v8::FunctionCallbackInfo<v8::Val
ue>& info) { |
| 473 | 473 TestInterface5ImplementationV8Internal::voidMethodMethodForMainWorld(info); |
| 474 static void voidMethodMethodForMainWorld(const v8::FunctionCallbackInfo<v8::Valu
e>& info) | 474 } |
| 475 { | 475 |
| 476 TestInterface5Implementation* impl = V8TestInterface5::toImpl(info.Holder())
; | 476 static void alwaysExposedMethodMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) { |
| 477 | 477 TestInterface5Implementation* impl = V8TestInterface5::toImpl(info.Holder()); |
| 478 impl->voidMethod(); | 478 |
| 479 } | 479 impl->alwaysExposedMethod(); |
| 480 | 480 } |
| 481 void voidMethodMethodCallbackForMainWorld(const v8::FunctionCallbackInfo<v8::Val
ue>& info) | 481 |
| 482 { | 482 void alwaysExposedMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>
& info) { |
| 483 TestInterface5ImplementationV8Internal::voidMethodMethodForMainWorld(info); | 483 TestInterface5ImplementationV8Internal::alwaysExposedMethodMethod(info); |
| 484 } | 484 } |
| 485 | 485 |
| 486 static void alwaysExposedMethodMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) | 486 static void workerExposedMethodMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) { |
| 487 { | 487 TestInterface5Implementation* impl = V8TestInterface5::toImpl(info.Holder()); |
| 488 TestInterface5Implementation* impl = V8TestInterface5::toImpl(info.Holder())
; | 488 |
| 489 | 489 impl->workerExposedMethod(); |
| 490 impl->alwaysExposedMethod(); | 490 } |
| 491 } | 491 |
| 492 | 492 void workerExposedMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>
& info) { |
| 493 void alwaysExposedMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>
& info) | 493 TestInterface5ImplementationV8Internal::workerExposedMethodMethod(info); |
| 494 { | 494 } |
| 495 TestInterface5ImplementationV8Internal::alwaysExposedMethodMethod(info); | 495 |
| 496 } | 496 static void windowExposedMethodMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) { |
| 497 | 497 TestInterface5Implementation* impl = V8TestInterface5::toImpl(info.Holder()); |
| 498 static void workerExposedMethodMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) | 498 |
| 499 { | 499 impl->windowExposedMethod(); |
| 500 TestInterface5Implementation* impl = V8TestInterface5::toImpl(info.Holder())
; | 500 } |
| 501 | 501 |
| 502 impl->workerExposedMethod(); | 502 void windowExposedMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>
& info) { |
| 503 } | 503 TestInterface5ImplementationV8Internal::windowExposedMethodMethod(info); |
| 504 | 504 } |
| 505 void workerExposedMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>
& info) | 505 |
| 506 { | 506 static void alwaysExposedStaticMethodMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) { |
| 507 TestInterface5ImplementationV8Internal::workerExposedMethodMethod(info); | 507 TestInterface5Implementation::alwaysExposedStaticMethod(); |
| 508 } | 508 } |
| 509 | 509 |
| 510 static void windowExposedMethodMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) | 510 void alwaysExposedStaticMethodMethodCallback(const v8::FunctionCallbackInfo<v8::
Value>& info) { |
| 511 { | 511 TestInterface5ImplementationV8Internal::alwaysExposedStaticMethodMethod(info); |
| 512 TestInterface5Implementation* impl = V8TestInterface5::toImpl(info.Holder())
; | 512 } |
| 513 | 513 |
| 514 impl->windowExposedMethod(); | 514 static void workerExposedStaticMethodMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) { |
| 515 } | 515 TestInterface5Implementation::workerExposedStaticMethod(); |
| 516 | 516 } |
| 517 void windowExposedMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>
& info) | 517 |
| 518 { | 518 void workerExposedStaticMethodMethodCallback(const v8::FunctionCallbackInfo<v8::
Value>& info) { |
| 519 TestInterface5ImplementationV8Internal::windowExposedMethodMethod(info); | 519 TestInterface5ImplementationV8Internal::workerExposedStaticMethodMethod(info); |
| 520 } | 520 } |
| 521 | 521 |
| 522 static void alwaysExposedStaticMethodMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 522 static void windowExposedStaticMethodMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) { |
| 523 { | 523 TestInterface5Implementation::windowExposedStaticMethod(); |
| 524 TestInterface5Implementation::alwaysExposedStaticMethod(); | 524 } |
| 525 } | 525 |
| 526 | 526 void windowExposedStaticMethodMethodCallback(const v8::FunctionCallbackInfo<v8::
Value>& info) { |
| 527 void alwaysExposedStaticMethodMethodCallback(const v8::FunctionCallbackInfo<v8::
Value>& info) | 527 TestInterface5ImplementationV8Internal::windowExposedStaticMethodMethod(info); |
| 528 { | 528 } |
| 529 TestInterface5ImplementationV8Internal::alwaysExposedStaticMethodMethod(info
); | 529 |
| 530 } | 530 static void windowAndServiceWorkerExposedMethodMethod(const v8::FunctionCallback
Info<v8::Value>& info) { |
| 531 | 531 TestInterface5Implementation* impl = V8TestInterface5::toImpl(info.Holder()); |
| 532 static void workerExposedStaticMethodMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 532 |
| 533 { | 533 impl->windowAndServiceWorkerExposedMethod(); |
| 534 TestInterface5Implementation::workerExposedStaticMethod(); | 534 } |
| 535 } | 535 |
| 536 | 536 void windowAndServiceWorkerExposedMethodMethodCallback(const v8::FunctionCallbac
kInfo<v8::Value>& info) { |
| 537 void workerExposedStaticMethodMethodCallback(const v8::FunctionCallbackInfo<v8::
Value>& info) | 537 TestInterface5ImplementationV8Internal::windowAndServiceWorkerExposedMethodMet
hod(info); |
| 538 { | 538 } |
| 539 TestInterface5ImplementationV8Internal::workerExposedStaticMethodMethod(info
); | 539 |
| 540 } | 540 static void voidMethodBooleanOrDOMStringArgMethod(const v8::FunctionCallbackInfo
<v8::Value>& info) { |
| 541 | 541 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCont
ext, "TestInterface5", "voidMethodBooleanOrDOMStringArg"); |
| 542 static void windowExposedStaticMethodMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 542 |
| 543 { | 543 TestInterface5Implementation* impl = V8TestInterface5::toImpl(info.Holder()); |
| 544 TestInterface5Implementation::windowExposedStaticMethod(); | 544 |
| 545 } | 545 if (UNLIKELY(info.Length() < 1)) { |
| 546 | 546 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, info.
Length())); |
| 547 void windowExposedStaticMethodMethodCallback(const v8::FunctionCallbackInfo<v8::
Value>& info) | 547 return; |
| 548 { | 548 } |
| 549 TestInterface5ImplementationV8Internal::windowExposedStaticMethodMethod(info
); | 549 |
| 550 } | 550 BooleanOrString arg; |
| 551 | 551 V8BooleanOrString::toImpl(info.GetIsolate(), info[0], arg, UnionTypeConversion
Mode::NotNullable, exceptionState); |
| 552 static void windowAndServiceWorkerExposedMethodMethod(const v8::FunctionCallback
Info<v8::Value>& info) | 552 if (exceptionState.hadException()) |
| 553 { | 553 return; |
| 554 TestInterface5Implementation* impl = V8TestInterface5::toImpl(info.Holder())
; | 554 |
| 555 | 555 impl->voidMethodBooleanOrDOMStringArg(arg); |
| 556 impl->windowAndServiceWorkerExposedMethod(); | 556 } |
| 557 } | 557 |
| 558 | 558 void voidMethodBooleanOrDOMStringArgMethodCallback(const v8::FunctionCallbackInf
o<v8::Value>& info) { |
| 559 void windowAndServiceWorkerExposedMethodMethodCallback(const v8::FunctionCallbac
kInfo<v8::Value>& info) | 559 TestInterface5ImplementationV8Internal::voidMethodBooleanOrDOMStringArgMethod(
info); |
| 560 { | 560 } |
| 561 TestInterface5ImplementationV8Internal::windowAndServiceWorkerExposedMethodM
ethod(info); | 561 |
| 562 } | 562 static void voidMethodDoubleOrDOMStringArgMethod(const v8::FunctionCallbackInfo<
v8::Value>& info) { |
| 563 | 563 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCont
ext, "TestInterface5", "voidMethodDoubleOrDOMStringArg"); |
| 564 static void voidMethodBooleanOrDOMStringArgMethod(const v8::FunctionCallbackInfo
<v8::Value>& info) | 564 |
| 565 { | 565 TestInterface5Implementation* impl = V8TestInterface5::toImpl(info.Holder()); |
| 566 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo
ntext, "TestInterface5", "voidMethodBooleanOrDOMStringArg"); | 566 |
| 567 | 567 if (UNLIKELY(info.Length() < 1)) { |
| 568 TestInterface5Implementation* impl = V8TestInterface5::toImpl(info.Holder())
; | 568 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, info.
Length())); |
| 569 | 569 return; |
| 570 if (UNLIKELY(info.Length() < 1)) { | 570 } |
| 571 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); | 571 |
| 572 return; | 572 DoubleOrString arg; |
| 573 } | 573 V8DoubleOrString::toImpl(info.GetIsolate(), info[0], arg, UnionTypeConversionM
ode::NotNullable, exceptionState); |
| 574 | 574 if (exceptionState.hadException()) |
| 575 BooleanOrString arg; | 575 return; |
| 576 V8BooleanOrString::toImpl(info.GetIsolate(), info[0], arg, UnionTypeConversi
onMode::NotNullable, exceptionState); | 576 |
| 577 if (exceptionState.hadException()) | 577 impl->voidMethodDoubleOrDOMStringArg(arg); |
| 578 return; | 578 } |
| 579 | 579 |
| 580 impl->voidMethodBooleanOrDOMStringArg(arg); | 580 void voidMethodDoubleOrDOMStringArgMethodCallback(const v8::FunctionCallbackInfo
<v8::Value>& info) { |
| 581 } | 581 TestInterface5ImplementationV8Internal::voidMethodDoubleOrDOMStringArgMethod(i
nfo); |
| 582 | 582 } |
| 583 void voidMethodBooleanOrDOMStringArgMethodCallback(const v8::FunctionCallbackInf
o<v8::Value>& info) | 583 |
| 584 { | 584 static void voidMethodVoidExperimentalCallbackFunctionMethod(const v8::FunctionC
allbackInfo<v8::Value>& info) { |
| 585 TestInterface5ImplementationV8Internal::voidMethodBooleanOrDOMStringArgMetho
d(info); | 585 TestInterface5Implementation* impl = V8TestInterface5::toImpl(info.Holder()); |
| 586 } | 586 |
| 587 | 587 if (UNLIKELY(info.Length() < 1)) { |
| 588 static void voidMethodDoubleOrDOMStringArgMethod(const v8::FunctionCallbackInfo<
v8::Value>& info) | 588 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::faile
dToExecute("voidMethodVoidExperimentalCallbackFunction", "TestInterface5", Excep
tionMessages::notEnoughArguments(1, info.Length()))); |
| 589 { | 589 return; |
| 590 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo
ntext, "TestInterface5", "voidMethodDoubleOrDOMStringArg"); | 590 } |
| 591 | 591 |
| 592 TestInterface5Implementation* impl = V8TestInterface5::toImpl(info.Holder())
; | 592 VoidExperimentalCallbackFunction* arg; |
| 593 | 593 arg = V8VoidExperimentalCallbackFunction::toImplWithTypeCheck(info.GetIsolate(
), info[0]); |
| 594 if (UNLIKELY(info.Length() < 1)) { | 594 if (!arg) { |
| 595 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); | 595 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::faile
dToExecute("voidMethodVoidExperimentalCallbackFunction", "TestInterface5", "para
meter 1 is not of type 'VoidExperimentalCallbackFunction'.")); |
| 596 return; | 596 |
| 597 } | 597 return; |
| 598 | 598 } |
| 599 DoubleOrString arg; | 599 |
| 600 V8DoubleOrString::toImpl(info.GetIsolate(), info[0], arg, UnionTypeConversio
nMode::NotNullable, exceptionState); | 600 impl->voidMethodVoidExperimentalCallbackFunction(arg); |
| 601 if (exceptionState.hadException()) | 601 } |
| 602 return; | 602 |
| 603 | 603 void voidMethodVoidExperimentalCallbackFunctionMethodCallback(const v8::Function
CallbackInfo<v8::Value>& info) { |
| 604 impl->voidMethodDoubleOrDOMStringArg(arg); | 604 TestInterface5ImplementationV8Internal::voidMethodVoidExperimentalCallbackFunc
tionMethod(info); |
| 605 } | 605 } |
| 606 | 606 |
| 607 void voidMethodDoubleOrDOMStringArgMethodCallback(const v8::FunctionCallbackInfo
<v8::Value>& info) | 607 static void voidMethodVoidCallbackFunctionModulesArgMethod(const v8::FunctionCal
lbackInfo<v8::Value>& info) { |
| 608 { | 608 TestInterface5Implementation* impl = V8TestInterface5::toImpl(info.Holder()); |
| 609 TestInterface5ImplementationV8Internal::voidMethodDoubleOrDOMStringArgMethod
(info); | 609 |
| 610 } | 610 if (UNLIKELY(info.Length() < 1)) { |
| 611 | 611 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::faile
dToExecute("voidMethodVoidCallbackFunctionModulesArg", "TestInterface5", Excepti
onMessages::notEnoughArguments(1, info.Length()))); |
| 612 static void voidMethodVoidExperimentalCallbackFunctionMethod(const v8::FunctionC
allbackInfo<v8::Value>& info) | 612 return; |
| 613 { | 613 } |
| 614 TestInterface5Implementation* impl = V8TestInterface5::toImpl(info.Holder())
; | 614 |
| 615 | 615 VoidCallbackFunctionModules* arg; |
| 616 if (UNLIKELY(info.Length() < 1)) { | 616 if (!info[0]->IsFunction()) { |
| 617 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f
ailedToExecute("voidMethodVoidExperimentalCallbackFunction", "TestInterface5", E
xceptionMessages::notEnoughArguments(1, info.Length()))); | 617 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::faile
dToExecute("voidMethodVoidCallbackFunctionModulesArg", "TestInterface5", "The ca
llback provided as parameter 1 is not a function.")); |
| 618 return; | 618 |
| 619 } | 619 return; |
| 620 | 620 } |
| 621 VoidExperimentalCallbackFunction* arg; | 621 arg = VoidCallbackFunctionModules::create(ScriptState::current(info.GetIsolate
()), v8::Local<v8::Function>::Cast(info[0])); |
| 622 arg = V8VoidExperimentalCallbackFunction::toImplWithTypeCheck(info.GetIsolat
e(), info[0]); | 622 |
| 623 if (!arg) { | 623 impl->voidMethodVoidCallbackFunctionModulesArg(arg); |
| 624 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f
ailedToExecute("voidMethodVoidExperimentalCallbackFunction", "TestInterface5", "
parameter 1 is not of type 'VoidExperimentalCallbackFunction'.")); | 624 } |
| 625 | 625 |
| 626 return; | 626 void voidMethodVoidCallbackFunctionModulesArgMethodCallback(const v8::FunctionCa
llbackInfo<v8::Value>& info) { |
| 627 } | 627 TestInterface5ImplementationV8Internal::voidMethodVoidCallbackFunctionModulesA
rgMethod(info); |
| 628 | 628 } |
| 629 impl->voidMethodVoidExperimentalCallbackFunction(arg); | 629 |
| 630 } | 630 static void keysMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| 631 | 631 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCont
ext, "TestInterface5", "keys"); |
| 632 void voidMethodVoidExperimentalCallbackFunctionMethodCallback(const v8::Function
CallbackInfo<v8::Value>& info) | 632 |
| 633 { | 633 TestInterface5Implementation* impl = V8TestInterface5::toImpl(info.Holder()); |
| 634 TestInterface5ImplementationV8Internal::voidMethodVoidExperimentalCallbackFu
nctionMethod(info); | 634 |
| 635 } | 635 ScriptState* scriptState = ScriptState::forReceiverObject(info); |
| 636 | 636 |
| 637 static void voidMethodVoidCallbackFunctionModulesArgMethod(const v8::FunctionCal
lbackInfo<v8::Value>& info) | 637 Iterator* result = impl->keysForBinding(scriptState, exceptionState); |
| 638 { | 638 if (exceptionState.hadException()) { |
| 639 TestInterface5Implementation* impl = V8TestInterface5::toImpl(info.Holder())
; | 639 return; |
| 640 | 640 } |
| 641 if (UNLIKELY(info.Length() < 1)) { | 641 v8SetReturnValue(info, result); |
| 642 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f
ailedToExecute("voidMethodVoidCallbackFunctionModulesArg", "TestInterface5", Exc
eptionMessages::notEnoughArguments(1, info.Length()))); | 642 } |
| 643 return; | 643 |
| 644 } | 644 void keysMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| 645 | 645 TestInterface5ImplementationV8Internal::keysMethod(info); |
| 646 VoidCallbackFunctionModules* arg; | 646 } |
| 647 if (!info[0]->IsFunction()) { | 647 |
| 648 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f
ailedToExecute("voidMethodVoidCallbackFunctionModulesArg", "TestInterface5", "Th
e callback provided as parameter 1 is not a function.")); | 648 static void valuesMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| 649 | 649 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCont
ext, "TestInterface5", "values"); |
| 650 return; | 650 |
| 651 } | 651 TestInterface5Implementation* impl = V8TestInterface5::toImpl(info.Holder()); |
| 652 arg = VoidCallbackFunctionModules::create(ScriptState::current(info.GetIsola
te()), v8::Local<v8::Function>::Cast(info[0])); | 652 |
| 653 | 653 ScriptState* scriptState = ScriptState::forReceiverObject(info); |
| 654 impl->voidMethodVoidCallbackFunctionModulesArg(arg); | 654 |
| 655 } | 655 Iterator* result = impl->valuesForBinding(scriptState, exceptionState); |
| 656 | 656 if (exceptionState.hadException()) { |
| 657 void voidMethodVoidCallbackFunctionModulesArgMethodCallback(const v8::FunctionCa
llbackInfo<v8::Value>& info) | 657 return; |
| 658 { | 658 } |
| 659 TestInterface5ImplementationV8Internal::voidMethodVoidCallbackFunctionModule
sArgMethod(info); | 659 v8SetReturnValue(info, result); |
| 660 } | 660 } |
| 661 | 661 |
| 662 static void keysMethod(const v8::FunctionCallbackInfo<v8::Value>& info) | 662 void valuesMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| 663 { | 663 TestInterface5ImplementationV8Internal::valuesMethod(info); |
| 664 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo
ntext, "TestInterface5", "keys"); | 664 } |
| 665 | 665 |
| 666 TestInterface5Implementation* impl = V8TestInterface5::toImpl(info.Holder())
; | 666 static void entriesMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| 667 | 667 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCont
ext, "TestInterface5", "entries"); |
| 668 ScriptState* scriptState = ScriptState::forReceiverObject(info); | 668 |
| 669 | 669 TestInterface5Implementation* impl = V8TestInterface5::toImpl(info.Holder()); |
| 670 Iterator* result = impl->keysForBinding(scriptState, exceptionState); | 670 |
| 671 if (exceptionState.hadException()) { | 671 ScriptState* scriptState = ScriptState::forReceiverObject(info); |
| 672 return; | 672 |
| 673 } | 673 Iterator* result = impl->entriesForBinding(scriptState, exceptionState); |
| 674 v8SetReturnValue(info, result); | 674 if (exceptionState.hadException()) { |
| 675 } | 675 return; |
| 676 | 676 } |
| 677 void keysMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) | 677 v8SetReturnValue(info, result); |
| 678 { | 678 } |
| 679 TestInterface5ImplementationV8Internal::keysMethod(info); | 679 |
| 680 } | 680 void entriesMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| 681 | 681 TestInterface5ImplementationV8Internal::entriesMethod(info); |
| 682 static void valuesMethod(const v8::FunctionCallbackInfo<v8::Value>& info) | 682 } |
| 683 { | 683 |
| 684 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo
ntext, "TestInterface5", "values"); | 684 static void forEachMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| 685 | 685 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCont
ext, "TestInterface5", "forEach"); |
| 686 TestInterface5Implementation* impl = V8TestInterface5::toImpl(info.Holder())
; | 686 |
| 687 | 687 TestInterface5Implementation* impl = V8TestInterface5::toImpl(info.Holder()); |
| 688 ScriptState* scriptState = ScriptState::forReceiverObject(info); | 688 |
| 689 | 689 ScriptState* scriptState = ScriptState::forReceiverObject(info); |
| 690 Iterator* result = impl->valuesForBinding(scriptState, exceptionState); | 690 |
| 691 if (exceptionState.hadException()) { | 691 if (UNLIKELY(info.Length() < 1)) { |
| 692 return; | 692 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, info.
Length())); |
| 693 } | 693 return; |
| 694 v8SetReturnValue(info, result); | 694 } |
| 695 } | 695 |
| 696 | 696 ScriptValue callback; |
| 697 void valuesMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) | 697 ScriptValue thisArg; |
| 698 { | 698 if (!info[0]->IsFunction()) { |
| 699 TestInterface5ImplementationV8Internal::valuesMethod(info); | 699 exceptionState.throwTypeError("The callback provided as parameter 1 is not a
function."); |
| 700 } | 700 |
| 701 | 701 return; |
| 702 static void entriesMethod(const v8::FunctionCallbackInfo<v8::Value>& info) | 702 } |
| 703 { | 703 callback = ScriptValue(ScriptState::current(info.GetIsolate()), info[0]); |
| 704 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo
ntext, "TestInterface5", "entries"); | 704 |
| 705 | 705 thisArg = ScriptValue(ScriptState::current(info.GetIsolate()), info[1]); |
| 706 TestInterface5Implementation* impl = V8TestInterface5::toImpl(info.Holder())
; | 706 |
| 707 | 707 impl->forEachForBinding(scriptState, ScriptValue(scriptState, info.Holder()),
callback, thisArg, exceptionState); |
| 708 ScriptState* scriptState = ScriptState::forReceiverObject(info); | 708 if (exceptionState.hadException()) { |
| 709 | 709 return; |
| 710 Iterator* result = impl->entriesForBinding(scriptState, exceptionState); | 710 } |
| 711 if (exceptionState.hadException()) { | 711 } |
| 712 return; | 712 |
| 713 } | 713 void forEachMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| 714 v8SetReturnValue(info, result); | 714 TestInterface5ImplementationV8Internal::forEachMethod(info); |
| 715 } | 715 } |
| 716 | 716 |
| 717 void entriesMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) | 717 static void toStringMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| 718 { | 718 TestInterface5Implementation* impl = V8TestInterface5::toImpl(info.Holder()); |
| 719 TestInterface5ImplementationV8Internal::entriesMethod(info); | 719 |
| 720 } | 720 v8SetReturnValueString(info, impl->toString(), info.GetIsolate()); |
| 721 | 721 } |
| 722 static void forEachMethod(const v8::FunctionCallbackInfo<v8::Value>& info) | 722 |
| 723 { | 723 void toStringMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| 724 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo
ntext, "TestInterface5", "forEach"); | 724 TestInterface5ImplementationV8Internal::toStringMethod(info); |
| 725 | 725 } |
| 726 TestInterface5Implementation* impl = V8TestInterface5::toImpl(info.Holder())
; | 726 |
| 727 | 727 static void iteratorMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| 728 ScriptState* scriptState = ScriptState::forReceiverObject(info); | 728 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCont
ext, "TestInterface5", "iterator"); |
| 729 | 729 |
| 730 if (UNLIKELY(info.Length() < 1)) { | 730 TestInterface5Implementation* impl = V8TestInterface5::toImpl(info.Holder()); |
| 731 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); | 731 |
| 732 return; | 732 ScriptState* scriptState = ScriptState::forReceiverObject(info); |
| 733 } | 733 |
| 734 | 734 Iterator* result = impl->iterator(scriptState, exceptionState); |
| 735 ScriptValue callback; | 735 if (exceptionState.hadException()) { |
| 736 ScriptValue thisArg; | 736 return; |
| 737 if (!info[0]->IsFunction()) { | 737 } |
| 738 exceptionState.throwTypeError("The callback provided as parameter 1 is n
ot a function."); | 738 v8SetReturnValue(info, result); |
| 739 | 739 } |
| 740 return; | 740 |
| 741 } | 741 void iteratorMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| 742 callback = ScriptValue(ScriptState::current(info.GetIsolate()), info[0]); | 742 TestInterface5ImplementationV8Internal::iteratorMethod(info); |
| 743 | |
| 744 thisArg = ScriptValue(ScriptState::current(info.GetIsolate()), info[1]); | |
| 745 | |
| 746 impl->forEachForBinding(scriptState, ScriptValue(scriptState, info.Holder())
, callback, thisArg, exceptionState); | |
| 747 if (exceptionState.hadException()) { | |
| 748 return; | |
| 749 } | |
| 750 } | |
| 751 | |
| 752 void forEachMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) | |
| 753 { | |
| 754 TestInterface5ImplementationV8Internal::forEachMethod(info); | |
| 755 } | |
| 756 | |
| 757 static void toStringMethod(const v8::FunctionCallbackInfo<v8::Value>& info) | |
| 758 { | |
| 759 TestInterface5Implementation* impl = V8TestInterface5::toImpl(info.Holder())
; | |
| 760 | |
| 761 v8SetReturnValueString(info, impl->toString(), info.GetIsolate()); | |
| 762 } | |
| 763 | |
| 764 void toStringMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) | |
| 765 { | |
| 766 TestInterface5ImplementationV8Internal::toStringMethod(info); | |
| 767 } | |
| 768 | |
| 769 static void iteratorMethod(const v8::FunctionCallbackInfo<v8::Value>& info) | |
| 770 { | |
| 771 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo
ntext, "TestInterface5", "iterator"); | |
| 772 | |
| 773 TestInterface5Implementation* impl = V8TestInterface5::toImpl(info.Holder())
; | |
| 774 | |
| 775 ScriptState* scriptState = ScriptState::forReceiverObject(info); | |
| 776 | |
| 777 Iterator* result = impl->iterator(scriptState, exceptionState); | |
| 778 if (exceptionState.hadException()) { | |
| 779 return; | |
| 780 } | |
| 781 v8SetReturnValue(info, result); | |
| 782 } | |
| 783 | |
| 784 void iteratorMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) | |
| 785 { | |
| 786 TestInterface5ImplementationV8Internal::iteratorMethod(info); | |
| 787 } | 743 } |
| 788 | 744 |
| 789 static void namedPropertyGetter(const AtomicString& name, const v8::PropertyCall
backInfo<v8::Value>& info) { | 745 static void namedPropertyGetter(const AtomicString& name, const v8::PropertyCall
backInfo<v8::Value>& info) { |
| 790 TestInterface5Implementation* impl = V8TestInterface5::toImpl(info.Holder()); | 746 TestInterface5Implementation* impl = V8TestInterface5::toImpl(info.Holder()); |
| 791 String result = impl->anonymousNamedGetter(name); | 747 String result = impl->anonymousNamedGetter(name); |
| 792 if (result.isNull()) | 748 if (result.isNull()) |
| 793 return; | 749 return; |
| 794 v8SetReturnValueString(info, result, info.GetIsolate()); | 750 v8SetReturnValueString(info, result, info.GetIsolate()); |
| 795 } | 751 } |
| 796 | 752 |
| (...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1031 if (executionContext && (executionContext->isWorkerGlobalScope())) { | 987 if (executionContext && (executionContext->isWorkerGlobalScope())) { |
| 1032 const V8DOMConfiguration::AccessorConfiguration accessorConfiguration = {"
workerExposedAttribute", TestInterface5ImplementationV8Internal::workerExposedAt
tributeAttributeGetterCallback, TestInterface5ImplementationV8Internal::workerEx
posedAttributeAttributeSetterCallback, 0, 0, 0, v8::DEFAULT, static_cast<v8::Pro
pertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfigu
ration::OnPrototype, V8DOMConfiguration::CheckHolder}; | 988 const V8DOMConfiguration::AccessorConfiguration accessorConfiguration = {"
workerExposedAttribute", TestInterface5ImplementationV8Internal::workerExposedAt
tributeAttributeGetterCallback, TestInterface5ImplementationV8Internal::workerEx
posedAttributeAttributeSetterCallback, 0, 0, 0, v8::DEFAULT, static_cast<v8::Pro
pertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfigu
ration::OnPrototype, V8DOMConfiguration::CheckHolder}; |
| 1033 V8DOMConfiguration::installAccessor(isolate, world, v8::Local<v8::Object>(
), prototypeObject, interfaceObject, signature, accessorConfiguration); | 989 V8DOMConfiguration::installAccessor(isolate, world, v8::Local<v8::Object>(
), prototypeObject, interfaceObject, signature, accessorConfiguration); |
| 1034 } | 990 } |
| 1035 if (executionContext && (executionContext->isDocument())) { | 991 if (executionContext && (executionContext->isDocument())) { |
| 1036 const V8DOMConfiguration::AccessorConfiguration accessorConfiguration = {"
windowExposedAttribute", TestInterface5ImplementationV8Internal::windowExposedAt
tributeAttributeGetterCallback, TestInterface5ImplementationV8Internal::windowEx
posedAttributeAttributeSetterCallback, 0, 0, 0, v8::DEFAULT, static_cast<v8::Pro
pertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfigu
ration::OnPrototype, V8DOMConfiguration::CheckHolder}; | 992 const V8DOMConfiguration::AccessorConfiguration accessorConfiguration = {"
windowExposedAttribute", TestInterface5ImplementationV8Internal::windowExposedAt
tributeAttributeGetterCallback, TestInterface5ImplementationV8Internal::windowEx
posedAttributeAttributeSetterCallback, 0, 0, 0, v8::DEFAULT, static_cast<v8::Pro
pertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfigu
ration::OnPrototype, V8DOMConfiguration::CheckHolder}; |
| 1037 V8DOMConfiguration::installAccessor(isolate, world, v8::Local<v8::Object>(
), prototypeObject, interfaceObject, signature, accessorConfiguration); | 993 V8DOMConfiguration::installAccessor(isolate, world, v8::Local<v8::Object>(
), prototypeObject, interfaceObject, signature, accessorConfiguration); |
| 1038 } | 994 } |
| 1039 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTemp
late); | 995 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTemp
late); |
| 1040 ExecutionContext* executionContext = toExecutionContext(prototypeObject->Creat
ionContext()); | 996 ExecutionContext* executionContext = toExecutionContext(prototypeObject->Creat
ionContext()); |
| 1041 ASSERT(executionContext); | 997 DCHECK(executionContext); |
| 1042 if (executionContext && (executionContext->isWorkerGlobalScope())) { | 998 if (executionContext && (executionContext->isWorkerGlobalScope())) { |
| 1043 const V8DOMConfiguration::MethodConfiguration workerExposedMethodMethodCon
figuration = {"workerExposedMethod", TestInterface5ImplementationV8Internal::wor
kerExposedMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedToAll
Scripts, V8DOMConfiguration::OnPrototype}; | 999 const V8DOMConfiguration::MethodConfiguration workerExposedMethodMethodCon
figuration = {"workerExposedMethod", TestInterface5ImplementationV8Internal::wor
kerExposedMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedToAll
Scripts, V8DOMConfiguration::OnPrototype}; |
| 1044 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>(),
prototypeObject, interfaceObject, signature, workerExposedMethodMethodConfigura
tion); | 1000 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>(),
prototypeObject, interfaceObject, signature, workerExposedMethodMethodConfigura
tion); |
| 1045 } | 1001 } |
| 1046 if (executionContext && (executionContext->isDocument())) { | 1002 if (executionContext && (executionContext->isDocument())) { |
| 1047 const V8DOMConfiguration::MethodConfiguration windowExposedMethodMethodCon
figuration = {"windowExposedMethod", TestInterface5ImplementationV8Internal::win
dowExposedMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedToAll
Scripts, V8DOMConfiguration::OnPrototype}; | 1003 const V8DOMConfiguration::MethodConfiguration windowExposedMethodMethodCon
figuration = {"windowExposedMethod", TestInterface5ImplementationV8Internal::win
dowExposedMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedToAll
Scripts, V8DOMConfiguration::OnPrototype}; |
| 1048 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>(),
prototypeObject, interfaceObject, signature, windowExposedMethodMethodConfigura
tion); | 1004 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>(),
prototypeObject, interfaceObject, signature, windowExposedMethodMethodConfigura
tion); |
| 1049 } | 1005 } |
| 1050 if (executionContext && (executionContext->isWorkerGlobalScope())) { | 1006 if (executionContext && (executionContext->isWorkerGlobalScope())) { |
| 1051 const V8DOMConfiguration::MethodConfiguration workerExposedStaticMethodMet
hodConfiguration = {"workerExposedStaticMethod", TestInterface5ImplementationV8I
nternal::workerExposedStaticMethodMethodCallback, 0, 0, v8::None, V8DOMConfigura
tion::ExposedToAllScripts, V8DOMConfiguration::OnInterface}; | 1007 const V8DOMConfiguration::MethodConfiguration workerExposedStaticMethodMet
hodConfiguration = {"workerExposedStaticMethod", TestInterface5ImplementationV8I
nternal::workerExposedStaticMethodMethodCallback, 0, 0, v8::None, V8DOMConfigura
tion::ExposedToAllScripts, V8DOMConfiguration::OnInterface}; |
| 1052 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>(),
prototypeObject, interfaceObject, signature, workerExposedStaticMethodMethodCon
figuration); | 1008 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>(),
prototypeObject, interfaceObject, signature, workerExposedStaticMethodMethodCon
figuration); |
| 1053 } | 1009 } |
| 1054 if (executionContext && (executionContext->isDocument())) { | 1010 if (executionContext && (executionContext->isDocument())) { |
| 1055 const V8DOMConfiguration::MethodConfiguration windowExposedStaticMethodMet
hodConfiguration = {"windowExposedStaticMethod", TestInterface5ImplementationV8I
nternal::windowExposedStaticMethodMethodCallback, 0, 0, v8::None, V8DOMConfigura
tion::ExposedToAllScripts, V8DOMConfiguration::OnInterface}; | 1011 const V8DOMConfiguration::MethodConfiguration windowExposedStaticMethodMet
hodConfiguration = {"windowExposedStaticMethod", TestInterface5ImplementationV8I
nternal::windowExposedStaticMethodMethodCallback, 0, 0, v8::None, V8DOMConfigura
tion::ExposedToAllScripts, V8DOMConfiguration::OnInterface}; |
| 1056 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>(),
prototypeObject, interfaceObject, signature, windowExposedStaticMethodMethodCon
figuration); | 1012 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>(),
prototypeObject, interfaceObject, signature, windowExposedStaticMethodMethodCon
figuration); |
| 1057 } | 1013 } |
| 1058 if (executionContext && (executionContext->isDocument() || executionContext->i
sServiceWorkerGlobalScope())) { | 1014 if (executionContext && (executionContext->isDocument() || executionContext->i
sServiceWorkerGlobalScope())) { |
| 1059 const V8DOMConfiguration::MethodConfiguration windowAndServiceWorkerExpose
dMethodMethodConfiguration = {"windowAndServiceWorkerExposedMethod", TestInterfa
ce5ImplementationV8Internal::windowAndServiceWorkerExposedMethodMethodCallback,
0, 0, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnP
rototype}; | 1015 const V8DOMConfiguration::MethodConfiguration windowAndServiceWorkerExpose
dMethodMethodConfiguration = {"windowAndServiceWorkerExposedMethod", TestInterfa
ce5ImplementationV8Internal::windowAndServiceWorkerExposedMethodMethodCallback,
0, 0, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnP
rototype}; |
| 1060 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>(),
prototypeObject, interfaceObject, signature, windowAndServiceWorkerExposedMetho
dMethodConfiguration); | 1016 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>(),
prototypeObject, interfaceObject, signature, windowAndServiceWorkerExposedMetho
dMethodConfiguration); |
| 1061 } | 1017 } |
| 1062 } | 1018 } |
| 1063 | 1019 |
| 1064 } // namespace blink | 1020 } // namespace blink |
| OLD | NEW |