| 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 #if ENABLE(CONDITION) | 8 #if ENABLE(CONDITION) |
| 9 #include "V8TestInterface.h" | 9 #include "V8TestInterface.h" |
| 10 | 10 |
| (...skipping 1396 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1407 } | 1407 } |
| 1408 } | 1408 } |
| 1409 v8SetReturnValue(info, impl->promiseMethodPartialOverload(window).v8Value())
; | 1409 v8SetReturnValue(info, impl->promiseMethodPartialOverload(window).v8Value())
; |
| 1410 } | 1410 } |
| 1411 | 1411 |
| 1412 static void staticPromiseMethodPartialOverload1Method(const v8::FunctionCallback
Info<v8::Value>& info) | 1412 static void staticPromiseMethodPartialOverload1Method(const v8::FunctionCallback
Info<v8::Value>& info) |
| 1413 { | 1413 { |
| 1414 v8SetReturnValue(info, TestInterfaceImplementation::staticPromiseMethodParti
alOverload().v8Value()); | 1414 v8SetReturnValue(info, TestInterfaceImplementation::staticPromiseMethodParti
alOverload().v8Value()); |
| 1415 } | 1415 } |
| 1416 | 1416 |
| 1417 static void methodWithExplicitNullableArgumentMethod(const v8::FunctionCallbackI
nfo<v8::Value>& info) |
| 1418 { |
| 1419 ExceptionState exceptionState(ExceptionState::ExecutionContext, "methodWithE
xplicitNullableArgument", "TestInterface", info.Holder(), info.GetIsolate()); |
| 1420 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); |
| 1421 Nullable<Vector<ScriptValue>> arguments; |
| 1422 { |
| 1423 if (UNLIKELY(info.Length() <= 0)) { |
| 1424 impl->methodWithExplicitNullableArgument(); |
| 1425 return; |
| 1426 } |
| 1427 if (!info[0]->IsNull()) { |
| 1428 arguments = toImplArray<ScriptValue>(info[0], 1, info.GetIsolate(),
exceptionState); |
| 1429 if (exceptionState.throwIfNeeded()) |
| 1430 return; |
| 1431 } |
| 1432 } |
| 1433 impl->methodWithExplicitNullableArgument(arguments); |
| 1434 } |
| 1435 |
| 1436 static void methodWithExplicitNullableArgumentMethodCallback(const v8::FunctionC
allbackInfo<v8::Value>& info) |
| 1437 { |
| 1438 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 1439 TestInterfaceImplementationV8Internal::methodWithExplicitNullableArgumentMet
hod(info); |
| 1440 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 1441 } |
| 1442 |
| 1417 static void implementsVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>
& info) | 1443 static void implementsVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>
& info) |
| 1418 { | 1444 { |
| 1419 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); | 1445 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); |
| 1420 impl->implementsVoidMethod(); | 1446 impl->implementsVoidMethod(); |
| 1421 } | 1447 } |
| 1422 | 1448 |
| 1423 static void implementsVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8
::Value>& info) | 1449 static void implementsVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8
::Value>& info) |
| 1424 { | 1450 { |
| 1425 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 1451 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 1426 TestInterfaceImplementationV8Internal::implementsVoidMethodMethod(info); | 1452 TestInterfaceImplementationV8Internal::implementsVoidMethodMethod(info); |
| (...skipping 641 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2068 {"implements3StringAttribute", TestInterfaceImplementationV8Internal::implem
ents3StringAttributeAttributeGetterCallback, TestInterfaceImplementationV8Intern
al::implements3StringAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::
AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOM
Configuration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}, | 2094 {"implements3StringAttribute", TestInterfaceImplementationV8Internal::implem
ents3StringAttributeAttributeGetterCallback, TestInterfaceImplementationV8Intern
al::implements3StringAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::
AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOM
Configuration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}, |
| 2069 }; | 2095 }; |
| 2070 | 2096 |
| 2071 static const V8DOMConfiguration::MethodConfiguration V8TestInterfaceMethods[] =
{ | 2097 static const V8DOMConfiguration::MethodConfiguration V8TestInterfaceMethods[] =
{ |
| 2072 {"voidMethodTestInterfaceEmptyArg", TestInterfaceImplementationV8Internal::v
oidMethodTestInterfaceEmptyArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedT
oAllScripts}, | 2098 {"voidMethodTestInterfaceEmptyArg", TestInterfaceImplementationV8Internal::v
oidMethodTestInterfaceEmptyArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedT
oAllScripts}, |
| 2073 {"voidMethodDoubleArgFloatArg", TestInterfaceImplementationV8Internal::voidM
ethodDoubleArgFloatArgMethodCallback, 0, 2, V8DOMConfiguration::ExposedToAllScri
pts}, | 2099 {"voidMethodDoubleArgFloatArg", TestInterfaceImplementationV8Internal::voidM
ethodDoubleArgFloatArgMethodCallback, 0, 2, V8DOMConfiguration::ExposedToAllScri
pts}, |
| 2074 {"voidMethodUnrestrictedDoubleArgUnrestrictedFloatArg", TestInterfaceImpleme
ntationV8Internal::voidMethodUnrestrictedDoubleArgUnrestrictedFloatArgMethodCall
back, 0, 2, V8DOMConfiguration::ExposedToAllScripts}, | 2100 {"voidMethodUnrestrictedDoubleArgUnrestrictedFloatArg", TestInterfaceImpleme
ntationV8Internal::voidMethodUnrestrictedDoubleArgUnrestrictedFloatArgMethodCall
back, 0, 2, V8DOMConfiguration::ExposedToAllScripts}, |
| 2075 {"voidMethodTestEnumArg", TestInterfaceImplementationV8Internal::voidMethodT
estEnumArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, | 2101 {"voidMethodTestEnumArg", TestInterfaceImplementationV8Internal::voidMethodT
estEnumArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, |
| 2076 {"voidMethod", TestInterfaceImplementationV8Internal::voidMethodMethodCallba
ck, TestInterfaceImplementationV8Internal::voidMethodMethodCallbackForMainWorld,
0, V8DOMConfiguration::ExposedToAllScripts}, | 2102 {"voidMethod", TestInterfaceImplementationV8Internal::voidMethodMethodCallba
ck, TestInterfaceImplementationV8Internal::voidMethodMethodCallbackForMainWorld,
0, V8DOMConfiguration::ExposedToAllScripts}, |
| 2077 {"alwaysExposedMethod", TestInterfaceImplementationV8Internal::alwaysExposed
MethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, | 2103 {"alwaysExposedMethod", TestInterfaceImplementationV8Internal::alwaysExposed
MethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, |
| 2104 {"methodWithExplicitNullableArgument", TestInterfaceImplementationV8Internal
::methodWithExplicitNullableArgumentMethodCallback, 0, 0, V8DOMConfiguration::Ex
posedToAllScripts}, |
| 2078 {"implementsVoidMethod", TestInterfaceImplementationV8Internal::implementsVo
idMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, | 2105 {"implementsVoidMethod", TestInterfaceImplementationV8Internal::implementsVo
idMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, |
| 2079 {"implementsComplexMethod", TestInterfaceImplementationV8Internal::implement
sComplexMethodMethodCallback, 0, 2, V8DOMConfiguration::ExposedToAllScripts}, | 2106 {"implementsComplexMethod", TestInterfaceImplementationV8Internal::implement
sComplexMethodMethodCallback, 0, 2, V8DOMConfiguration::ExposedToAllScripts}, |
| 2080 {"implementsCustomVoidMethod", TestInterfaceImplementationV8Internal::implem
entsCustomVoidMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScript
s}, | 2107 {"implementsCustomVoidMethod", TestInterfaceImplementationV8Internal::implem
entsCustomVoidMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScript
s}, |
| 2081 {"implements3VoidMethod", TestInterfaceImplementationV8Internal::implements3
VoidMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, | 2108 {"implements3VoidMethod", TestInterfaceImplementationV8Internal::implements3
VoidMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, |
| 2082 {"voidMethodPartialOverload", TestInterfaceImplementationV8Internal::voidMet
hodPartialOverloadMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}
, | 2109 {"voidMethodPartialOverload", TestInterfaceImplementationV8Internal::voidMet
hodPartialOverloadMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}
, |
| 2083 {"promiseMethodPartialOverload", TestInterfaceImplementationV8Internal::prom
iseMethodPartialOverloadMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllSc
ripts}, | 2110 {"promiseMethodPartialOverload", TestInterfaceImplementationV8Internal::prom
iseMethodPartialOverloadMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllSc
ripts}, |
| 2084 {"partial2VoidMethod", TestInterfaceImplementationV8Internal::partial2VoidMe
thodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, | 2111 {"partial2VoidMethod", TestInterfaceImplementationV8Internal::partial2VoidMe
thodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, |
| 2085 }; | 2112 }; |
| 2086 | 2113 |
| 2087 void V8TestInterface::installV8TestInterfaceTemplate(v8::Local<v8::FunctionTempl
ate> functionTemplate, v8::Isolate* isolate) | 2114 void V8TestInterface::installV8TestInterfaceTemplate(v8::Local<v8::FunctionTempl
ate> functionTemplate, v8::Isolate* isolate) |
| (...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2476 void V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(void (
*method)(const v8::FunctionCallbackInfo<v8::Value>&)) | 2503 void V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(void (
*method)(const v8::FunctionCallbackInfo<v8::Value>&)) |
| 2477 { | 2504 { |
| 2478 TestInterfaceImplementationV8Internal::partial2VoidMethodMethodForPartialInt
erface = method; | 2505 TestInterfaceImplementationV8Internal::partial2VoidMethodMethodForPartialInt
erface = method; |
| 2479 } | 2506 } |
| 2480 void V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(
void (*method)(const v8::FunctionCallbackInfo<v8::Value>&)) | 2507 void V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(
void (*method)(const v8::FunctionCallbackInfo<v8::Value>&)) |
| 2481 { | 2508 { |
| 2482 TestInterfaceImplementationV8Internal::partial2StaticVoidMethodMethodForPart
ialInterface = method; | 2509 TestInterfaceImplementationV8Internal::partial2StaticVoidMethodMethodForPart
ialInterface = method; |
| 2483 } | 2510 } |
| 2484 } // namespace blink | 2511 } // namespace blink |
| 2485 #endif // ENABLE(CONDITION) | 2512 #endif // ENABLE(CONDITION) |
| OLD | NEW |