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 |
11 #include "bindings/core/v8/ExceptionState.h" | 11 #include "bindings/core/v8/ExceptionState.h" |
12 #include "bindings/core/v8/PrivateScriptRunner.h" | 12 #include "bindings/core/v8/PrivateScriptRunner.h" |
13 #include "bindings/core/v8/ScriptState.h" | 13 #include "bindings/core/v8/ScriptState.h" |
14 #include "bindings/core/v8/ScriptValue.h" | 14 #include "bindings/core/v8/ScriptValue.h" |
15 #include "bindings/core/v8/V8AbstractEventListener.h" | 15 #include "bindings/core/v8/V8AbstractEventListener.h" |
16 #include "bindings/core/v8/V8DOMConfiguration.h" | 16 #include "bindings/core/v8/V8DOMConfiguration.h" |
17 #include "bindings/core/v8/V8EventListenerList.h" | 17 #include "bindings/core/v8/V8EventListenerList.h" |
18 #include "bindings/core/v8/V8HiddenValue.h" | 18 #include "bindings/core/v8/V8HiddenValue.h" |
19 #include "bindings/core/v8/V8ObjectConstructor.h" | 19 #include "bindings/core/v8/V8ObjectConstructor.h" |
20 #include "bindings/tests/idls/TestImplements2.h" | 20 #include "bindings/tests/idls/core/TestImplements2.h" |
21 #include "bindings/tests/idls/TestImplements3Implementation.h" | 21 #include "bindings/tests/idls/core/TestImplements3Implementation.h" |
22 #include "bindings/tests/idls/TestPartialInterface.h" | 22 #include "bindings/tests/idls/core/TestPartialInterface.h" |
23 #include "bindings/tests/idls/TestPartialInterfaceImplementation.h" | 23 #include "bindings/tests/idls/core/TestPartialInterfaceImplementation.h" |
| 24 #include "bindings/tests/idls/modules/TestPartialInterfaceImplementation3.h" |
24 #include "bindings/tests/v8/V8Iterator.h" | 25 #include "bindings/tests/v8/V8Iterator.h" |
25 #include "bindings/tests/v8/V8Node.h" | 26 #include "bindings/tests/v8/V8Node.h" |
26 #include "bindings/tests/v8/V8TestInterface.h" | 27 #include "bindings/tests/v8/V8TestInterface.h" |
27 #include "bindings/tests/v8/V8TestInterfaceEmpty.h" | 28 #include "bindings/tests/v8/V8TestInterfaceEmpty.h" |
28 #include "core/dom/ContextFeatures.h" | 29 #include "core/dom/ContextFeatures.h" |
29 #include "core/dom/Document.h" | 30 #include "core/dom/Document.h" |
30 #include "core/frame/LocalFrame.h" | 31 #include "core/frame/LocalFrame.h" |
31 #include "platform/RuntimeEnabledFeatures.h" | 32 #include "platform/RuntimeEnabledFeatures.h" |
32 #include "platform/ScriptForbiddenScope.h" | 33 #include "platform/ScriptForbiddenScope.h" |
33 #include "platform/TraceEvent.h" | 34 #include "platform/TraceEvent.h" |
(...skipping 855 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
889 TestPartialInterfaceImplementation::setPartial2StaticLongAttribute(cppValue)
; | 890 TestPartialInterfaceImplementation::setPartial2StaticLongAttribute(cppValue)
; |
890 } | 891 } |
891 | 892 |
892 static void partial2StaticLongAttributeAttributeSetterCallback(v8::Local<v8::Str
ing>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 893 static void partial2StaticLongAttributeAttributeSetterCallback(v8::Local<v8::Str
ing>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
893 { | 894 { |
894 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 895 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
895 TestInterfaceImplementationV8Internal::partial2StaticLongAttributeAttributeS
etter(v8Value, info); | 896 TestInterfaceImplementationV8Internal::partial2StaticLongAttributeAttributeS
etter(v8Value, info); |
896 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 897 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
897 } | 898 } |
898 | 899 |
| 900 static void partial3LongAttributeAttributeGetter(const v8::PropertyCallbackInfo<
v8::Value>& info) |
| 901 { |
| 902 v8::Handle<v8::Object> holder = info.Holder(); |
| 903 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); |
| 904 v8SetReturnValueInt(info, TestPartialInterfaceImplementation3::partial3LongA
ttribute(*impl)); |
| 905 } |
| 906 |
| 907 static void partial3LongAttributeAttributeGetterCallback(v8::Local<v8::String>,
const v8::PropertyCallbackInfo<v8::Value>& info) |
| 908 { |
| 909 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 910 TestInterfaceImplementationV8Internal::partial3LongAttributeAttributeGetter(
info); |
| 911 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 912 } |
| 913 |
| 914 static void partial3LongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c
onst v8::PropertyCallbackInfo<void>& info) |
| 915 { |
| 916 v8::Handle<v8::Object> holder = info.Holder(); |
| 917 ExceptionState exceptionState(ExceptionState::SetterContext, "partial3LongAt
tribute", "TestInterface", holder, info.GetIsolate()); |
| 918 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); |
| 919 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); |
| 920 TestPartialInterfaceImplementation3::setPartial3LongAttribute(*impl, cppValu
e); |
| 921 } |
| 922 |
| 923 static void partial3LongAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 924 { |
| 925 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 926 TestInterfaceImplementationV8Internal::partial3LongAttributeAttributeSetter(
v8Value, info); |
| 927 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 928 } |
| 929 |
| 930 static void partial3StaticLongAttributeAttributeGetter(const v8::PropertyCallbac
kInfo<v8::Value>& info) |
| 931 { |
| 932 v8SetReturnValueInt(info, TestPartialInterfaceImplementation3::partial3Stati
cLongAttribute()); |
| 933 } |
| 934 |
| 935 static void partial3StaticLongAttributeAttributeGetterCallback(v8::Local<v8::Str
ing>, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 936 { |
| 937 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 938 TestInterfaceImplementationV8Internal::partial3StaticLongAttributeAttributeG
etter(info); |
| 939 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 940 } |
| 941 |
| 942 static void partial3StaticLongAttributeAttributeSetter(v8::Local<v8::Value> v8Va
lue, const v8::PropertyCallbackInfo<void>& info) |
| 943 { |
| 944 ExceptionState exceptionState(ExceptionState::SetterContext, "partial3Static
LongAttribute", "TestInterface", holder, info.GetIsolate()); |
| 945 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); |
| 946 TestPartialInterfaceImplementation3::setPartial3StaticLongAttribute(cppValue
); |
| 947 } |
| 948 |
| 949 static void partial3StaticLongAttributeAttributeSetterCallback(v8::Local<v8::Str
ing>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 950 { |
| 951 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 952 TestInterfaceImplementationV8Internal::partial3StaticLongAttributeAttributeS
etter(v8Value, info); |
| 953 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 954 } |
| 955 |
899 static void TestInterfaceImplementationConstructorGetter(v8::Local<v8::String>,
const v8::PropertyCallbackInfo<v8::Value>& info) | 956 static void TestInterfaceImplementationConstructorGetter(v8::Local<v8::String>,
const v8::PropertyCallbackInfo<v8::Value>& info) |
900 { | 957 { |
901 v8::Handle<v8::Value> data = info.Data(); | 958 v8::Handle<v8::Value> data = info.Data(); |
902 ASSERT(data->IsExternal()); | 959 ASSERT(data->IsExternal()); |
903 V8PerContextData* perContextData = V8PerContextData::from(info.Holder()->Cre
ationContext()); | 960 V8PerContextData* perContextData = V8PerContextData::from(info.Holder()->Cre
ationContext()); |
904 if (!perContextData) | 961 if (!perContextData) |
905 return; | 962 return; |
906 v8SetReturnValue(info, perContextData->constructorForType(WrapperTypeInfo::u
nwrap(data))); | 963 v8SetReturnValue(info, perContextData->constructorForType(WrapperTypeInfo::u
nwrap(data))); |
907 } | 964 } |
908 | 965 |
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1109 impl->windowAndServiceWorkerExposedMethod(); | 1166 impl->windowAndServiceWorkerExposedMethod(); |
1110 } | 1167 } |
1111 | 1168 |
1112 static void windowAndServiceWorkerExposedMethodMethodCallback(const v8::Function
CallbackInfo<v8::Value>& info) | 1169 static void windowAndServiceWorkerExposedMethodMethodCallback(const v8::Function
CallbackInfo<v8::Value>& info) |
1113 { | 1170 { |
1114 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 1171 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
1115 TestInterfaceImplementationV8Internal::windowAndServiceWorkerExposedMethodMe
thod(info); | 1172 TestInterfaceImplementationV8Internal::windowAndServiceWorkerExposedMethodMe
thod(info); |
1116 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1173 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
1117 } | 1174 } |
1118 | 1175 |
| 1176 static void voidMethodPartailOverloadMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
| 1177 { |
| 1178 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); |
| 1179 impl->voidMethodPartailOverload(); |
| 1180 } |
| 1181 |
| 1182 static void voidMethodPartailOverloadMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) |
| 1183 { |
| 1184 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 1185 TestInterfaceImplementationV8Internal::voidMethodPartailOverloadMethod(info)
; |
| 1186 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 1187 } |
| 1188 |
| 1189 static void voidMethodPartailOverloadMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
| 1190 { |
| 1191 TestInterfaceImplementation::voidMethodPartailOverload(); |
| 1192 } |
| 1193 |
| 1194 static void voidMethodPartailOverloadMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) |
| 1195 { |
| 1196 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 1197 TestInterfaceImplementationV8Internal::voidMethodPartailOverloadMethod(info)
; |
| 1198 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 1199 } |
| 1200 |
1119 static void implementsVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>
& info) | 1201 static void implementsVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>
& info) |
1120 { | 1202 { |
1121 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); | 1203 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); |
1122 impl->implementsVoidMethod(); | 1204 impl->implementsVoidMethod(); |
1123 } | 1205 } |
1124 | 1206 |
1125 static void implementsVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8
::Value>& info) | 1207 static void implementsVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8
::Value>& info) |
1126 { | 1208 { |
1127 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 1209 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
1128 TestInterfaceImplementationV8Internal::implementsVoidMethodMethod(info); | 1210 TestInterfaceImplementationV8Internal::implementsVoidMethodMethod(info); |
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1361 | 1443 |
1362 #if ENABLE(PARTIAL_CONDITION) | 1444 #if ENABLE(PARTIAL_CONDITION) |
1363 static void shortMethodWithShortArgumentImplementedInPrivateScriptMethodCallback
(const v8::FunctionCallbackInfo<v8::Value>& info) | 1445 static void shortMethodWithShortArgumentImplementedInPrivateScriptMethodCallback
(const v8::FunctionCallbackInfo<v8::Value>& info) |
1364 { | 1446 { |
1365 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 1447 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
1366 TestInterfaceImplementationV8Internal::shortMethodWithShortArgumentImplement
edInPrivateScriptMethod(info); | 1448 TestInterfaceImplementationV8Internal::shortMethodWithShortArgumentImplement
edInPrivateScriptMethod(info); |
1367 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1449 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
1368 } | 1450 } |
1369 #endif // ENABLE(PARTIAL_CONDITION) | 1451 #endif // ENABLE(PARTIAL_CONDITION) |
1370 | 1452 |
1371 static void partial2VoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) | 1453 static void partial2VoidMethod1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
1372 { | 1454 { |
1373 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); | 1455 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); |
1374 TestPartialInterfaceImplementation::partial2VoidMethod(*impl); | 1456 TestPartialInterfaceImplementation::partial2VoidMethod(*impl); |
1375 } | 1457 } |
1376 | 1458 |
| 1459 static void partial2StaticVoidMethod1Method(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
| 1460 { |
| 1461 TestPartialInterfaceImplementation::partial2StaticVoidMethod(); |
| 1462 } |
| 1463 |
| 1464 static void voidMethodPartialOverloadMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
| 1465 { |
| 1466 if (UNLIKELY(info.Length() < 1)) { |
| 1467 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod("v
oidMethodPartialOverload", "TestInterface", 1, info.Length(), info.GetIsolate())
, info.GetIsolate()); |
| 1468 return; |
| 1469 } |
| 1470 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); |
| 1471 V8StringResource<> value; |
| 1472 { |
| 1473 TOSTRING_VOID_INTERNAL(value, info[0]); |
| 1474 } |
| 1475 TestPartialInterfaceImplementation3::voidMethodPartialOverload(*impl, value)
; |
| 1476 } |
| 1477 |
| 1478 static void voidMethodPartialOverloadMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) |
| 1479 { |
| 1480 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 1481 TestInterfaceImplementationV8Internal::voidMethodPartialOverloadMethod(info)
; |
| 1482 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 1483 } |
| 1484 |
| 1485 static void voidMethodPartialOverloadMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
| 1486 { |
| 1487 if (UNLIKELY(info.Length() < 1)) { |
| 1488 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod("v
oidMethodPartialOverload", "TestInterface", 1, info.Length(), info.GetIsolate())
, info.GetIsolate()); |
| 1489 return; |
| 1490 } |
| 1491 V8StringResource<> value; |
| 1492 { |
| 1493 TOSTRING_VOID_INTERNAL(value, info[0]); |
| 1494 } |
| 1495 TestPartialInterfaceImplementation3::voidMethodPartialOverload(value); |
| 1496 } |
| 1497 |
| 1498 static void voidMethodPartialOverloadMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) |
| 1499 { |
| 1500 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 1501 TestInterfaceImplementationV8Internal::voidMethodPartialOverloadMethod(info)
; |
| 1502 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 1503 } |
| 1504 |
| 1505 static void partial2VoidMethod2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
| 1506 { |
| 1507 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); |
| 1508 V8StringResource<> value; |
| 1509 { |
| 1510 TOSTRING_VOID_INTERNAL(value, info[0]); |
| 1511 } |
| 1512 TestPartialInterfaceImplementation3::partial2VoidMethod(*impl, value); |
| 1513 } |
| 1514 |
| 1515 static void partial2VoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) |
| 1516 { |
| 1517 ExceptionState exceptionState(ExceptionState::ExecutionContext, "partial2Voi
dMethod", "TestInterface", info.Holder(), info.GetIsolate()); |
| 1518 switch (std::min(1, info.Length())) { |
| 1519 case 0: |
| 1520 if (true) { |
| 1521 partial2VoidMethod1Method(info); |
| 1522 return; |
| 1523 } |
| 1524 break; |
| 1525 case 1: |
| 1526 if (true) { |
| 1527 partial2VoidMethod2Method(info); |
| 1528 return; |
| 1529 } |
| 1530 break; |
| 1531 default: |
| 1532 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(0, i
nfo.Length())); |
| 1533 exceptionState.throwIfNeeded(); |
| 1534 return; |
| 1535 } |
| 1536 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); |
| 1537 exceptionState.throwIfNeeded(); |
| 1538 } |
| 1539 |
1377 static void partial2VoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::
Value>& info) | 1540 static void partial2VoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::
Value>& info) |
1378 { | 1541 { |
1379 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 1542 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
1380 TestInterfaceImplementationV8Internal::partial2VoidMethodMethod(info); | 1543 TestInterfaceImplementationV8Internal::partial2VoidMethodMethod(info); |
1381 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1544 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
1382 } | 1545 } |
1383 | 1546 |
| 1547 static void partial2StaticVoidMethod2Method(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
| 1548 { |
| 1549 V8StringResource<> value; |
| 1550 { |
| 1551 TOSTRING_VOID_INTERNAL(value, info[0]); |
| 1552 } |
| 1553 TestPartialInterfaceImplementation3::partial2StaticVoidMethod(value); |
| 1554 } |
| 1555 |
1384 static void partial2StaticVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Va
lue>& info) | 1556 static void partial2StaticVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Va
lue>& info) |
1385 { | 1557 { |
1386 TestPartialInterfaceImplementation::partial2StaticVoidMethod(); | 1558 ExceptionState exceptionState(ExceptionState::ExecutionContext, "partial2Sta
ticVoidMethod", "TestInterface", info.Holder(), info.GetIsolate()); |
| 1559 switch (std::min(1, info.Length())) { |
| 1560 case 0: |
| 1561 if (true) { |
| 1562 partial2StaticVoidMethod1Method(info); |
| 1563 return; |
| 1564 } |
| 1565 break; |
| 1566 case 1: |
| 1567 if (true) { |
| 1568 partial2StaticVoidMethod2Method(info); |
| 1569 return; |
| 1570 } |
| 1571 break; |
| 1572 default: |
| 1573 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(0, i
nfo.Length())); |
| 1574 exceptionState.throwIfNeeded(); |
| 1575 return; |
| 1576 } |
| 1577 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); |
| 1578 exceptionState.throwIfNeeded(); |
1387 } | 1579 } |
1388 | 1580 |
1389 static void partial2StaticVoidMethodMethodCallback(const v8::FunctionCallbackInf
o<v8::Value>& info) | 1581 static void partial2StaticVoidMethodMethodCallback(const v8::FunctionCallbackInf
o<v8::Value>& info) |
1390 { | 1582 { |
1391 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 1583 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
1392 TestInterfaceImplementationV8Internal::partial2StaticVoidMethodMethod(info); | 1584 TestInterfaceImplementationV8Internal::partial2StaticVoidMethodMethod(info); |
1393 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1585 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
1394 } | 1586 } |
1395 | 1587 |
1396 static void toStringMethod(const v8::FunctionCallbackInfo<v8::Value>& info) | 1588 static void toStringMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1607 {"implementsEventHandlerAttribute", TestInterfaceImplementationV8Internal::i
mplementsEventHandlerAttributeAttributeGetterCallback, TestInterfaceImplementati
onV8Internal::implementsEventHandlerAttributeAttributeSetterCallback, 0, 0, 0, s
tatic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v
8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstanc
e}, | 1799 {"implementsEventHandlerAttribute", TestInterfaceImplementationV8Internal::i
mplementsEventHandlerAttributeAttributeGetterCallback, TestInterfaceImplementati
onV8Internal::implementsEventHandlerAttributeAttributeSetterCallback, 0, 0, 0, s
tatic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v
8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstanc
e}, |
1608 {"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}, | 1800 {"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}, |
1609 }; | 1801 }; |
1610 | 1802 |
1611 static const V8DOMConfiguration::MethodConfiguration V8TestInterfaceMethods[] =
{ | 1803 static const V8DOMConfiguration::MethodConfiguration V8TestInterfaceMethods[] =
{ |
1612 {"voidMethodTestInterfaceEmptyArg", TestInterfaceImplementationV8Internal::v
oidMethodTestInterfaceEmptyArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedT
oAllScripts}, | 1804 {"voidMethodTestInterfaceEmptyArg", TestInterfaceImplementationV8Internal::v
oidMethodTestInterfaceEmptyArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedT
oAllScripts}, |
1613 {"voidMethodDoubleArgFloatArg", TestInterfaceImplementationV8Internal::voidM
ethodDoubleArgFloatArgMethodCallback, 0, 2, V8DOMConfiguration::ExposedToAllScri
pts}, | 1805 {"voidMethodDoubleArgFloatArg", TestInterfaceImplementationV8Internal::voidM
ethodDoubleArgFloatArgMethodCallback, 0, 2, V8DOMConfiguration::ExposedToAllScri
pts}, |
1614 {"voidMethodUnrestrictedDoubleArgUnrestrictedFloatArg", TestInterfaceImpleme
ntationV8Internal::voidMethodUnrestrictedDoubleArgUnrestrictedFloatArgMethodCall
back, 0, 2, V8DOMConfiguration::ExposedToAllScripts}, | 1806 {"voidMethodUnrestrictedDoubleArgUnrestrictedFloatArg", TestInterfaceImpleme
ntationV8Internal::voidMethodUnrestrictedDoubleArgUnrestrictedFloatArgMethodCall
back, 0, 2, V8DOMConfiguration::ExposedToAllScripts}, |
1615 {"voidMethod", TestInterfaceImplementationV8Internal::voidMethodMethodCallba
ck, TestInterfaceImplementationV8Internal::voidMethodMethodCallbackForMainWorld,
0, V8DOMConfiguration::ExposedToAllScripts}, | 1807 {"voidMethod", TestInterfaceImplementationV8Internal::voidMethodMethodCallba
ck, TestInterfaceImplementationV8Internal::voidMethodMethodCallbackForMainWorld,
0, V8DOMConfiguration::ExposedToAllScripts}, |
1616 {"alwaysExposedMethod", TestInterfaceImplementationV8Internal::alwaysExposed
MethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, | 1808 {"alwaysExposedMethod", TestInterfaceImplementationV8Internal::alwaysExposed
MethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, |
| 1809 {"voidMethodPartailOverload", TestInterfaceImplementationV8Internal::voidMet
hodPartailOverloadMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}
, |
1617 {"implementsVoidMethod", TestInterfaceImplementationV8Internal::implementsVo
idMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, | 1810 {"implementsVoidMethod", TestInterfaceImplementationV8Internal::implementsVo
idMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, |
1618 {"implementsComplexMethod", TestInterfaceImplementationV8Internal::implement
sComplexMethodMethodCallback, 0, 2, V8DOMConfiguration::ExposedToAllScripts}, | 1811 {"implementsComplexMethod", TestInterfaceImplementationV8Internal::implement
sComplexMethodMethodCallback, 0, 2, V8DOMConfiguration::ExposedToAllScripts}, |
1619 {"implementsCustomVoidMethod", TestInterfaceImplementationV8Internal::implem
entsCustomVoidMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScript
s}, | 1812 {"implementsCustomVoidMethod", TestInterfaceImplementationV8Internal::implem
entsCustomVoidMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScript
s}, |
1620 {"implements3VoidMethod", TestInterfaceImplementationV8Internal::implements3
VoidMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, | 1813 {"implements3VoidMethod", TestInterfaceImplementationV8Internal::implements3
VoidMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, |
| 1814 {"partial2VoidMethod", TestInterfaceImplementationV8Internal::partial2VoidMe
thodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, |
1621 }; | 1815 }; |
1622 | 1816 |
1623 static void installV8TestInterfaceTemplate(v8::Handle<v8::FunctionTemplate> func
tionTemplate, v8::Isolate* isolate) | 1817 static void installV8TestInterfaceTemplate(v8::Handle<v8::FunctionTemplate> func
tionTemplate, v8::Isolate* isolate) |
1624 { | 1818 { |
1625 functionTemplate->ReadOnlyPrototype(); | 1819 functionTemplate->ReadOnlyPrototype(); |
1626 | 1820 |
1627 v8::Local<v8::Signature> defaultSignature; | 1821 v8::Local<v8::Signature> defaultSignature; |
1628 if (!RuntimeEnabledFeatures::featureNameEnabled()) | 1822 if (!RuntimeEnabledFeatures::featureNameEnabled()) |
1629 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(functionT
emplate, "", V8TestInterfaceEmpty::domTemplate(isolate), V8TestInterface::intern
alFieldCount, 0, 0, 0, 0, 0, 0, isolate); | 1823 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(functionT
emplate, "", V8TestInterfaceEmpty::domTemplate(isolate), V8TestInterface::intern
alFieldCount, 0, 0, 0, 0, 0, 0, isolate); |
1630 else | 1824 else |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1672 {"stringAttribute", TestInterfaceImplementationV8Internal::stringAttribu
teAttributeGetterCallback, TestInterfaceImplementationV8Internal::stringAttribut
eAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT),
static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllSc
ripts, V8DOMConfiguration::OnInstance}; | 1866 {"stringAttribute", TestInterfaceImplementationV8Internal::stringAttribu
teAttributeGetterCallback, TestInterfaceImplementationV8Internal::stringAttribut
eAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT),
static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllSc
ripts, V8DOMConfiguration::OnInstance}; |
1673 V8DOMConfiguration::installAttribute(instanceTemplate, prototypeTemplate
, attributeConfiguration, isolate); | 1867 V8DOMConfiguration::installAttribute(instanceTemplate, prototypeTemplate
, attributeConfiguration, isolate); |
1674 } | 1868 } |
1675 #endif // ENABLE(PARTIAL_CONDITION) | 1869 #endif // ENABLE(PARTIAL_CONDITION) |
1676 static const V8DOMConfiguration::ConstantConfiguration V8TestInterfaceConsta
nts[] = { | 1870 static const V8DOMConfiguration::ConstantConfiguration V8TestInterfaceConsta
nts[] = { |
1677 {"UNSIGNED_LONG", 0, 0, 0, V8DOMConfiguration::ConstantTypeUnsignedLong}
, | 1871 {"UNSIGNED_LONG", 0, 0, 0, V8DOMConfiguration::ConstantTypeUnsignedLong}
, |
1678 {"CONST_JAVASCRIPT", 1, 0, 0, V8DOMConfiguration::ConstantTypeShort}, | 1872 {"CONST_JAVASCRIPT", 1, 0, 0, V8DOMConfiguration::ConstantTypeShort}, |
1679 {"IMPLEMENTS_CONSTANT_1", 1, 0, 0, V8DOMConfiguration::ConstantTypeUnsig
nedShort}, | 1873 {"IMPLEMENTS_CONSTANT_1", 1, 0, 0, V8DOMConfiguration::ConstantTypeUnsig
nedShort}, |
1680 {"IMPLEMENTS_CONSTANT_2", 2, 0, 0, V8DOMConfiguration::ConstantTypeUnsig
nedShort}, | 1874 {"IMPLEMENTS_CONSTANT_2", 2, 0, 0, V8DOMConfiguration::ConstantTypeUnsig
nedShort}, |
1681 {"PARTIAL2_UNSIGNED_SHORT", 0, 0, 0, V8DOMConfiguration::ConstantTypeUns
ignedShort}, | 1875 {"PARTIAL2_UNSIGNED_SHORT", 0, 0, 0, V8DOMConfiguration::ConstantTypeUns
ignedShort}, |
| 1876 {"PARTIAL3_UNSIGNED_SHORT", 0, 0, 0, V8DOMConfiguration::ConstantTypeUns
ignedShort}, |
1682 }; | 1877 }; |
1683 V8DOMConfiguration::installConstants(functionTemplate, prototypeTemplate, V8
TestInterfaceConstants, WTF_ARRAY_LENGTH(V8TestInterfaceConstants), isolate); | 1878 V8DOMConfiguration::installConstants(functionTemplate, prototypeTemplate, V8
TestInterfaceConstants, WTF_ARRAY_LENGTH(V8TestInterfaceConstants), isolate); |
1684 if (RuntimeEnabledFeatures::partialFeatureNameEnabled()) { | 1879 if (RuntimeEnabledFeatures::partialFeatureNameEnabled()) { |
1685 static const V8DOMConfiguration::ConstantConfiguration constantConfigura
tion = {"PARTIAL_UNSIGNED_SHORT", 0, 0, 0, V8DOMConfiguration::ConstantTypeUnsig
nedShort}; | 1880 static const V8DOMConfiguration::ConstantConfiguration constantConfigura
tion = {"PARTIAL_UNSIGNED_SHORT", 0, 0, 0, V8DOMConfiguration::ConstantTypeUnsig
nedShort}; |
1686 V8DOMConfiguration::installConstants(functionTemplate, prototypeTemplate
, &constantConfiguration, 1, isolate); | 1881 V8DOMConfiguration::installConstants(functionTemplate, prototypeTemplate
, &constantConfiguration, 1, isolate); |
1687 } | 1882 } |
1688 functionTemplate->InstanceTemplate()->SetIndexedPropertyHandler(TestInterfac
eImplementationV8Internal::indexedPropertyGetterCallback, TestInterfaceImplement
ationV8Internal::indexedPropertySetterCallback, 0, TestInterfaceImplementationV8
Internal::indexedPropertyDeleterCallback, indexedPropertyEnumerator<TestInterfac
eImplementation>); | 1883 functionTemplate->InstanceTemplate()->SetIndexedPropertyHandler(TestInterfac
eImplementationV8Internal::indexedPropertyGetterCallback, TestInterfaceImplement
ationV8Internal::indexedPropertySetterCallback, 0, TestInterfaceImplementationV8
Internal::indexedPropertyDeleterCallback, indexedPropertyEnumerator<TestInterfac
eImplementation>); |
1689 functionTemplate->InstanceTemplate()->SetNamedPropertyHandler(TestInterfaceI
mplementationV8Internal::namedPropertyGetterCallback, TestInterfaceImplementatio
nV8Internal::namedPropertySetterCallback, TestInterfaceImplementationV8Internal:
:namedPropertyQueryCallback, TestInterfaceImplementationV8Internal::namedPropert
yDeleterCallback, TestInterfaceImplementationV8Internal::namedPropertyEnumerator
Callback); | 1884 functionTemplate->InstanceTemplate()->SetNamedPropertyHandler(TestInterfaceI
mplementationV8Internal::namedPropertyGetterCallback, TestInterfaceImplementatio
nV8Internal::namedPropertySetterCallback, TestInterfaceImplementationV8Internal:
:namedPropertyQueryCallback, TestInterfaceImplementationV8Internal::namedPropert
yDeleterCallback, TestInterfaceImplementationV8Internal::namedPropertyEnumerator
Callback); |
1690 static const V8DOMConfiguration::SymbolKeyedMethodConfiguration symbolKeyedI
teratorConfiguration = { v8::Symbol::GetIterator, TestInterfaceImplementationV8I
nternal::iteratorMethodCallback, 0, V8DOMConfiguration::ExposedToAllScripts }; | 1885 static const V8DOMConfiguration::SymbolKeyedMethodConfiguration symbolKeyedI
teratorConfiguration = { v8::Symbol::GetIterator, TestInterfaceImplementationV8I
nternal::iteratorMethodCallback, 0, V8DOMConfiguration::ExposedToAllScripts }; |
1691 V8DOMConfiguration::installMethod(prototypeTemplate, defaultSignature, v8::D
ontDelete, symbolKeyedIteratorConfiguration, isolate); | 1886 V8DOMConfiguration::installMethod(prototypeTemplate, defaultSignature, v8::D
ontDelete, symbolKeyedIteratorConfiguration, isolate); |
1692 functionTemplate->InstanceTemplate()->SetCallAsFunctionHandler(V8TestInterfa
ce::legacyCallCustom); | 1887 functionTemplate->InstanceTemplate()->SetCallAsFunctionHandler(V8TestInterfa
ce::legacyCallCustom); |
1693 static const V8DOMConfiguration::MethodConfiguration alwaysExposedStaticMeth
odMethodConfiguration = { | 1888 static const V8DOMConfiguration::MethodConfiguration alwaysExposedStaticMeth
odMethodConfiguration = { |
1694 "alwaysExposedStaticMethod", TestInterfaceImplementationV8Internal::alwa
ysExposedStaticMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScrip
ts, | 1889 "alwaysExposedStaticMethod", TestInterfaceImplementationV8Internal::alwa
ysExposedStaticMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScrip
ts, |
1695 }; | 1890 }; |
1696 V8DOMConfiguration::installMethod(functionTemplate, v8::Local<v8::Signature>
(), v8::None, alwaysExposedStaticMethodMethodConfiguration, isolate); | 1891 V8DOMConfiguration::installMethod(functionTemplate, v8::Local<v8::Signature>
(), v8::None, alwaysExposedStaticMethodMethodConfiguration, isolate); |
| 1892 static const V8DOMConfiguration::MethodConfiguration voidMethodPartailOverlo
adMethodConfiguration = { |
| 1893 "voidMethodPartailOverload", TestInterfaceImplementationV8Internal::void
MethodPartailOverloadMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScrip
ts, |
| 1894 }; |
| 1895 V8DOMConfiguration::installMethod(functionTemplate, v8::Local<v8::Signature>
(), v8::None, voidMethodPartailOverloadMethodConfiguration, isolate); |
1697 static const V8DOMConfiguration::MethodConfiguration implementsStaticVoidMet
hodMethodConfiguration = { | 1896 static const V8DOMConfiguration::MethodConfiguration implementsStaticVoidMet
hodMethodConfiguration = { |
1698 "implementsStaticVoidMethod", TestInterfaceImplementationV8Internal::imp
lementsStaticVoidMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScr
ipts, | 1897 "implementsStaticVoidMethod", TestInterfaceImplementationV8Internal::imp
lementsStaticVoidMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScr
ipts, |
1699 }; | 1898 }; |
1700 V8DOMConfiguration::installMethod(functionTemplate, v8::Local<v8::Signature>
(), v8::None, implementsStaticVoidMethodMethodConfiguration, isolate); | 1899 V8DOMConfiguration::installMethod(functionTemplate, v8::Local<v8::Signature>
(), v8::None, implementsStaticVoidMethodMethodConfiguration, isolate); |
1701 if (RuntimeEnabledFeatures::implements2FeatureNameEnabled()) { | 1900 if (RuntimeEnabledFeatures::implements2FeatureNameEnabled()) { |
1702 static const V8DOMConfiguration::MethodConfiguration implements2VoidMeth
odMethodConfiguration = { | 1901 static const V8DOMConfiguration::MethodConfiguration implements2VoidMeth
odMethodConfiguration = { |
1703 "implements2VoidMethod", TestInterfaceImplementationV8Internal::impl
ements2VoidMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts, | 1902 "implements2VoidMethod", TestInterfaceImplementationV8Internal::impl
ements2VoidMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts, |
1704 }; | 1903 }; |
1705 V8DOMConfiguration::installMethod(prototypeTemplate, defaultSignature, v
8::None, implements2VoidMethodMethodConfiguration, isolate); | 1904 V8DOMConfiguration::installMethod(prototypeTemplate, defaultSignature, v
8::None, implements2VoidMethodMethodConfiguration, isolate); |
1706 } | 1905 } |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1749 } | 1948 } |
1750 #endif // ENABLE(PARTIAL_CONDITION) | 1949 #endif // ENABLE(PARTIAL_CONDITION) |
1751 #if ENABLE(PARTIAL_CONDITION) | 1950 #if ENABLE(PARTIAL_CONDITION) |
1752 if (RuntimeEnabledFeatures::partialFeatureNameEnabled()) { | 1951 if (RuntimeEnabledFeatures::partialFeatureNameEnabled()) { |
1753 static const V8DOMConfiguration::MethodConfiguration shortMethodWithShor
tArgumentImplementedInPrivateScriptMethodConfiguration = { | 1952 static const V8DOMConfiguration::MethodConfiguration shortMethodWithShor
tArgumentImplementedInPrivateScriptMethodConfiguration = { |
1754 "shortMethodWithShortArgumentImplementedInPrivateScript", TestInterf
aceImplementationV8Internal::shortMethodWithShortArgumentImplementedInPrivateScr
iptMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts, | 1953 "shortMethodWithShortArgumentImplementedInPrivateScript", TestInterf
aceImplementationV8Internal::shortMethodWithShortArgumentImplementedInPrivateScr
iptMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts, |
1755 }; | 1954 }; |
1756 V8DOMConfiguration::installMethod(prototypeTemplate, defaultSignature, v
8::None, shortMethodWithShortArgumentImplementedInPrivateScriptMethodConfigurati
on, isolate); | 1955 V8DOMConfiguration::installMethod(prototypeTemplate, defaultSignature, v
8::None, shortMethodWithShortArgumentImplementedInPrivateScriptMethodConfigurati
on, isolate); |
1757 } | 1956 } |
1758 #endif // ENABLE(PARTIAL_CONDITION) | 1957 #endif // ENABLE(PARTIAL_CONDITION) |
| 1958 static const V8DOMConfiguration::MethodConfiguration partial2StaticVoidMetho
dMethodConfiguration = { |
| 1959 "partial2StaticVoidMethod", TestInterfaceImplementationV8Internal::parti
al2StaticVoidMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts
, |
| 1960 }; |
| 1961 V8DOMConfiguration::installMethod(functionTemplate, v8::Local<v8::Signature>
(), v8::None, partial2StaticVoidMethodMethodConfiguration, isolate); |
1759 static const V8DOMConfiguration::MethodConfiguration toStringMethodConfigura
tion = { | 1962 static const V8DOMConfiguration::MethodConfiguration toStringMethodConfigura
tion = { |
1760 "toString", TestInterfaceImplementationV8Internal::toStringMethodCallbac
k, 0, 0, V8DOMConfiguration::ExposedToAllScripts, | 1963 "toString", TestInterfaceImplementationV8Internal::toStringMethodCallbac
k, 0, 0, V8DOMConfiguration::ExposedToAllScripts, |
1761 }; | 1964 }; |
1762 V8DOMConfiguration::installMethod(prototypeTemplate, defaultSignature, stati
c_cast<v8::PropertyAttribute>(v8::DontDelete | v8::DontEnum), toStringMethodConf
iguration, isolate); | 1965 V8DOMConfiguration::installMethod(prototypeTemplate, defaultSignature, stati
c_cast<v8::PropertyAttribute>(v8::DontDelete | v8::DontEnum), toStringMethodConf
iguration, isolate); |
1763 functionTemplate->SetNativeDataProperty(v8AtomicString(isolate, "staticStrin
gAttribute"), TestInterfaceImplementationV8Internal::staticStringAttributeAttrib
uteGetterCallback, TestInterfaceImplementationV8Internal::staticStringAttributeA
ttributeSetterCallback, v8::External::New(isolate, 0), static_cast<v8::PropertyA
ttribute>(v8::None), v8::Handle<v8::AccessorSignature>(), static_cast<v8::Access
Control>(v8::DEFAULT)); | 1966 functionTemplate->SetNativeDataProperty(v8AtomicString(isolate, "staticStrin
gAttribute"), TestInterfaceImplementationV8Internal::staticStringAttributeAttrib
uteGetterCallback, TestInterfaceImplementationV8Internal::staticStringAttributeA
ttributeSetterCallback, v8::External::New(isolate, 0), static_cast<v8::PropertyA
ttribute>(v8::None), v8::Handle<v8::AccessorSignature>(), static_cast<v8::Access
Control>(v8::DEFAULT)); |
1764 functionTemplate->SetNativeDataProperty(v8AtomicString(isolate, "implementsS
taticReadOnlyLongAttribute"), TestInterfaceImplementationV8Internal::implementsS
taticReadOnlyLongAttributeAttributeGetterCallback, 0, v8::External::New(isolate,
0), static_cast<v8::PropertyAttribute>(v8::None), v8::Handle<v8::AccessorSignat
ure>(), static_cast<v8::AccessControl>(v8::DEFAULT)); | 1967 functionTemplate->SetNativeDataProperty(v8AtomicString(isolate, "implementsS
taticReadOnlyLongAttribute"), TestInterfaceImplementationV8Internal::implementsS
taticReadOnlyLongAttributeAttributeGetterCallback, 0, v8::External::New(isolate,
0), static_cast<v8::PropertyAttribute>(v8::None), v8::Handle<v8::AccessorSignat
ure>(), static_cast<v8::AccessControl>(v8::DEFAULT)); |
1765 functionTemplate->SetNativeDataProperty(v8AtomicString(isolate, "implementsS
taticStringAttribute"), TestInterfaceImplementationV8Internal::implementsStaticS
tringAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::im
plementsStaticStringAttributeAttributeSetterCallback, v8::External::New(isolate,
0), static_cast<v8::PropertyAttribute>(v8::None), v8::Handle<v8::AccessorSignat
ure>(), static_cast<v8::AccessControl>(v8::DEFAULT)); | 1968 functionTemplate->SetNativeDataProperty(v8AtomicString(isolate, "implementsS
taticStringAttribute"), TestInterfaceImplementationV8Internal::implementsStaticS
tringAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::im
plementsStaticStringAttributeAttributeSetterCallback, v8::External::New(isolate,
0), static_cast<v8::PropertyAttribute>(v8::None), v8::Handle<v8::AccessorSignat
ure>(), static_cast<v8::AccessControl>(v8::DEFAULT)); |
1766 functionTemplate->SetNativeDataProperty(v8AtomicString(isolate, "implements2
StaticStringAttribute"), TestInterfaceImplementationV8Internal::implements2Stati
cStringAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::
implements2StaticStringAttributeAttributeSetterCallback, v8::External::New(isola
te, 0), static_cast<v8::PropertyAttribute>(v8::None), v8::Handle<v8::AccessorSig
nature>(), static_cast<v8::AccessControl>(v8::DEFAULT)); | 1969 functionTemplate->SetNativeDataProperty(v8AtomicString(isolate, "implements2
StaticStringAttribute"), TestInterfaceImplementationV8Internal::implements2Stati
cStringAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::
implements2StaticStringAttributeAttributeSetterCallback, v8::External::New(isola
te, 0), static_cast<v8::PropertyAttribute>(v8::None), v8::Handle<v8::AccessorSig
nature>(), static_cast<v8::AccessControl>(v8::DEFAULT)); |
1767 functionTemplate->SetNativeDataProperty(v8AtomicString(isolate, "implements3
StaticStringAttribute"), TestInterfaceImplementationV8Internal::implements3Stati
cStringAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::
implements3StaticStringAttributeAttributeSetterCallback, v8::External::New(isola
te, 0), static_cast<v8::PropertyAttribute>(v8::None), v8::Handle<v8::AccessorSig
nature>(), static_cast<v8::AccessControl>(v8::DEFAULT)); | 1970 functionTemplate->SetNativeDataProperty(v8AtomicString(isolate, "implements3
StaticStringAttribute"), TestInterfaceImplementationV8Internal::implements3Stati
cStringAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::
implements3StaticStringAttributeAttributeSetterCallback, v8::External::New(isola
te, 0), static_cast<v8::PropertyAttribute>(v8::None), v8::Handle<v8::AccessorSig
nature>(), static_cast<v8::AccessControl>(v8::DEFAULT)); |
1768 #if ENABLE(PARTIAL_CONDITION) | 1971 #if ENABLE(PARTIAL_CONDITION) |
1769 functionTemplate->SetNativeDataProperty(v8AtomicString(isolate, "partialStat
icLongAttribute"), TestInterfaceImplementationV8Internal::partialStaticLongAttri
buteAttributeGetterCallback, TestInterfaceImplementationV8Internal::partialStati
cLongAttributeAttributeSetterCallback, v8::External::New(isolate, 0), static_cas
t<v8::PropertyAttribute>(v8::None), v8::Handle<v8::AccessorSignature>(), static_
cast<v8::AccessControl>(v8::DEFAULT)); | 1972 functionTemplate->SetNativeDataProperty(v8AtomicString(isolate, "partialStat
icLongAttribute"), TestInterfaceImplementationV8Internal::partialStaticLongAttri
buteAttributeGetterCallback, TestInterfaceImplementationV8Internal::partialStati
cLongAttributeAttributeSetterCallback, v8::External::New(isolate, 0), static_cas
t<v8::PropertyAttribute>(v8::None), v8::Handle<v8::AccessorSignature>(), static_
cast<v8::AccessControl>(v8::DEFAULT)); |
1770 #endif // ENABLE(PARTIAL_CONDITION) | 1973 #endif // ENABLE(PARTIAL_CONDITION) |
1771 functionTemplate->SetNativeDataProperty(v8AtomicString(isolate, "partial2Sta
ticLongAttribute"), TestInterfaceImplementationV8Internal::partial2StaticLongAtt
ributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::partial2St
aticLongAttributeAttributeSetterCallback, v8::External::New(isolate, 0), static_
cast<v8::PropertyAttribute>(v8::None), v8::Handle<v8::AccessorSignature>(), stat
ic_cast<v8::AccessControl>(v8::DEFAULT)); | 1974 functionTemplate->SetNativeDataProperty(v8AtomicString(isolate, "partial2Sta
ticLongAttribute"), TestInterfaceImplementationV8Internal::partial2StaticLongAtt
ributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::partial2St
aticLongAttributeAttributeSetterCallback, v8::External::New(isolate, 0), static_
cast<v8::PropertyAttribute>(v8::None), v8::Handle<v8::AccessorSignature>(), stat
ic_cast<v8::AccessControl>(v8::DEFAULT)); |
| 1975 functionTemplate->SetNativeDataProperty(v8AtomicString(isolate, "partial3Sta
ticLongAttribute"), TestInterfaceImplementationV8Internal::partial3StaticLongAtt
ributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::partial3St
aticLongAttributeAttributeSetterCallback, v8::External::New(isolate, 0), static_
cast<v8::PropertyAttribute>(v8::None), v8::Handle<v8::AccessorSignature>(), stat
ic_cast<v8::AccessControl>(v8::DEFAULT)); |
1772 | 1976 |
1773 // Custom toString template | 1977 // Custom toString template |
1774 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData:
:from(isolate)->toStringTemplate()); | 1978 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData:
:from(isolate)->toStringTemplate()); |
1775 } | 1979 } |
1776 | 1980 |
1777 v8::Handle<v8::FunctionTemplate> V8TestInterface::domTemplate(v8::Isolate* isola
te) | 1981 v8::Handle<v8::FunctionTemplate> V8TestInterface::domTemplate(v8::Isolate* isola
te) |
1778 { | 1982 { |
1779 return V8DOMConfiguration::domClassTemplate(isolate, const_cast<WrapperTypeI
nfo*>(&wrapperTypeInfo), installV8TestInterfaceTemplate); | 1983 return V8DOMConfiguration::domClassTemplate(isolate, const_cast<WrapperTypeI
nfo*>(&wrapperTypeInfo), installV8TestInterfaceTemplate); |
1780 } | 1984 } |
1781 | 1985 |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1817 if (context && context->isDocument() && ContextFeatures::partialContextNameE
nabled(toDocument(context))) { | 2021 if (context && context->isDocument() && ContextFeatures::partialContextNameE
nabled(toDocument(context))) { |
1818 static const V8DOMConfiguration::AttributeConfiguration attributeConfigu
ration =\ | 2022 static const V8DOMConfiguration::AttributeConfiguration attributeConfigu
ration =\ |
1819 {"partial2LongAttribute", TestInterfaceImplementationV8Internal::partial
2LongAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::pa
rtial2LongAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessContr
ol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigurati
on::ExposedToAllScripts, V8DOMConfiguration::OnInstance}; | 2023 {"partial2LongAttribute", TestInterfaceImplementationV8Internal::partial
2LongAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::pa
rtial2LongAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessContr
ol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigurati
on::ExposedToAllScripts, V8DOMConfiguration::OnInstance}; |
1820 V8DOMConfiguration::installAttribute(instanceObject, prototypeObject, at
tributeConfiguration, isolate); | 2024 V8DOMConfiguration::installAttribute(instanceObject, prototypeObject, at
tributeConfiguration, isolate); |
1821 } | 2025 } |
1822 if (context && context->isDocument() && ContextFeatures::partialContextNameE
nabled(toDocument(context))) { | 2026 if (context && context->isDocument() && ContextFeatures::partialContextNameE
nabled(toDocument(context))) { |
1823 static const V8DOMConfiguration::AttributeConfiguration attributeConfigu
ration =\ | 2027 static const V8DOMConfiguration::AttributeConfiguration attributeConfigu
ration =\ |
1824 {"partial2StaticLongAttribute", TestInterfaceImplementationV8Internal::p
artial2StaticLongAttributeAttributeGetterCallback, TestInterfaceImplementationV8
Internal::partial2StaticLongAttributeAttributeSetterCallback, 0, 0, 0, static_ca
st<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None)
, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}; | 2028 {"partial2StaticLongAttribute", TestInterfaceImplementationV8Internal::p
artial2StaticLongAttributeAttributeGetterCallback, TestInterfaceImplementationV8
Internal::partial2StaticLongAttributeAttributeSetterCallback, 0, 0, 0, static_ca
st<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None)
, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}; |
1825 V8DOMConfiguration::installAttribute(instanceObject, prototypeObject, at
tributeConfiguration, isolate); | 2029 V8DOMConfiguration::installAttribute(instanceObject, prototypeObject, at
tributeConfiguration, isolate); |
1826 } | 2030 } |
| 2031 if (context && context->isDocument() && ContextFeatures::partialContextName3
Enabled(toDocument(context))) { |
| 2032 static const V8DOMConfiguration::AttributeConfiguration attributeConfigu
ration =\ |
| 2033 {"partial3LongAttribute", TestInterfaceImplementationV8Internal::partial
3LongAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::pa
rtial3LongAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessContr
ol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigurati
on::ExposedToAllScripts, V8DOMConfiguration::OnInstance}; |
| 2034 V8DOMConfiguration::installAttribute(instanceObject, prototypeObject, at
tributeConfiguration, isolate); |
| 2035 } |
| 2036 if (context && context->isDocument() && ContextFeatures::partialContextName3
Enabled(toDocument(context))) { |
| 2037 static const V8DOMConfiguration::AttributeConfiguration attributeConfigu
ration =\ |
| 2038 {"partial3StaticLongAttribute", TestInterfaceImplementationV8Internal::p
artial3StaticLongAttributeAttributeGetterCallback, TestInterfaceImplementationV8
Internal::partial3StaticLongAttributeAttributeSetterCallback, 0, 0, 0, static_ca
st<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None)
, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}; |
| 2039 V8DOMConfiguration::installAttribute(instanceObject, prototypeObject, at
tributeConfiguration, isolate); |
| 2040 } |
1827 } | 2041 } |
1828 | 2042 |
1829 void V8TestInterface::installConditionallyEnabledMethods(v8::Handle<v8::Object>
prototypeObject, v8::Isolate* isolate) | 2043 void V8TestInterface::installConditionallyEnabledMethods(v8::Handle<v8::Object>
prototypeObject, v8::Isolate* isolate) |
1830 { | 2044 { |
1831 v8::Local<v8::Signature> defaultSignature = v8::Signature::New(isolate, domT
emplate(isolate)); | 2045 v8::Local<v8::Signature> defaultSignature = v8::Signature::New(isolate, domT
emplate(isolate)); |
1832 ExecutionContext* context = toExecutionContext(prototypeObject->CreationCont
ext()); | 2046 ExecutionContext* context = toExecutionContext(prototypeObject->CreationCont
ext()); |
1833 ASSERT(context); | 2047 ASSERT(context); |
1834 | 2048 |
1835 if (context && (context->isWorkerGlobalScope())) { | 2049 if (context && (context->isWorkerGlobalScope())) { |
1836 prototypeObject->Set(v8AtomicString(isolate, "workerExposedMethod"), v8:
:FunctionTemplate::New(isolate, TestInterfaceImplementationV8Internal::workerExp
osedMethodMethodCallback, v8Undefined(), defaultSignature, 0)->GetFunction()); | 2050 prototypeObject->Set(v8AtomicString(isolate, "workerExposedMethod"), v8:
:FunctionTemplate::New(isolate, TestInterfaceImplementationV8Internal::workerExp
osedMethodMethodCallback, v8Undefined(), defaultSignature, 0)->GetFunction()); |
1837 } | 2051 } |
1838 if (context && (context->isDocument())) { | 2052 if (context && (context->isDocument())) { |
1839 prototypeObject->Set(v8AtomicString(isolate, "windowExposedMethod"), v8:
:FunctionTemplate::New(isolate, TestInterfaceImplementationV8Internal::windowExp
osedMethodMethodCallback, v8Undefined(), defaultSignature, 0)->GetFunction()); | 2053 prototypeObject->Set(v8AtomicString(isolate, "windowExposedMethod"), v8:
:FunctionTemplate::New(isolate, TestInterfaceImplementationV8Internal::windowExp
osedMethodMethodCallback, v8Undefined(), defaultSignature, 0)->GetFunction()); |
1840 } | 2054 } |
1841 if (context && (context->isWorkerGlobalScope())) { | 2055 if (context && (context->isWorkerGlobalScope())) { |
1842 prototypeObject->Set(v8AtomicString(isolate, "workerExposedStaticMethod"
), v8::FunctionTemplate::New(isolate, TestInterfaceImplementationV8Internal::wor
kerExposedStaticMethodMethodCallback, v8Undefined(), defaultSignature, 0)->GetFu
nction()); | 2056 prototypeObject->Set(v8AtomicString(isolate, "workerExposedStaticMethod"
), v8::FunctionTemplate::New(isolate, TestInterfaceImplementationV8Internal::wor
kerExposedStaticMethodMethodCallback, v8Undefined(), defaultSignature, 0)->GetFu
nction()); |
1843 } | 2057 } |
1844 if (context && (context->isDocument())) { | 2058 if (context && (context->isDocument())) { |
1845 prototypeObject->Set(v8AtomicString(isolate, "windowExposedStaticMethod"
), v8::FunctionTemplate::New(isolate, TestInterfaceImplementationV8Internal::win
dowExposedStaticMethodMethodCallback, v8Undefined(), defaultSignature, 0)->GetFu
nction()); | 2059 prototypeObject->Set(v8AtomicString(isolate, "windowExposedStaticMethod"
), v8::FunctionTemplate::New(isolate, TestInterfaceImplementationV8Internal::win
dowExposedStaticMethodMethodCallback, v8Undefined(), defaultSignature, 0)->GetFu
nction()); |
1846 } | 2060 } |
1847 if (context && (context->isDocument() || context->isServiceWorkerGlobalScope
())) { | 2061 if (context && (context->isDocument() || context->isServiceWorkerGlobalScope
())) { |
1848 prototypeObject->Set(v8AtomicString(isolate, "windowAndServiceWorkerExpo
sedMethod"), v8::FunctionTemplate::New(isolate, TestInterfaceImplementationV8Int
ernal::windowAndServiceWorkerExposedMethodMethodCallback, v8Undefined(), default
Signature, 0)->GetFunction()); | 2062 prototypeObject->Set(v8AtomicString(isolate, "windowAndServiceWorkerExpo
sedMethod"), v8::FunctionTemplate::New(isolate, TestInterfaceImplementationV8Int
ernal::windowAndServiceWorkerExposedMethodMethodCallback, v8Undefined(), default
Signature, 0)->GetFunction()); |
1849 } | 2063 } |
1850 if (context && context->isDocument() && ContextFeatures::partialContextNameE
nabled(toDocument(context))) { | 2064 if (context && context->isDocument() && ContextFeatures::partialContextName3
Enabled(toDocument(context))) { |
1851 prototypeObject->Set(v8AtomicString(isolate, "partial2VoidMethod"), v8::
FunctionTemplate::New(isolate, TestInterfaceImplementationV8Internal::partial2Vo
idMethodMethodCallback, v8Undefined(), defaultSignature, 0)->GetFunction()); | 2065 prototypeObject->Set(v8AtomicString(isolate, "voidMethodPartialOverload"
), v8::FunctionTemplate::New(isolate, TestInterfaceImplementationV8Internal::voi
dMethodPartialOverloadMethodCallback, v8Undefined(), defaultSignature, 1)->GetFu
nction()); |
1852 } | 2066 } |
1853 if (context && context->isDocument() && ContextFeatures::partialContextNameE
nabled(toDocument(context))) { | 2067 if (context && context->isDocument() && ContextFeatures::partialContextName3
Enabled(toDocument(context))) { |
1854 prototypeObject->Set(v8AtomicString(isolate, "partial2StaticVoidMethod")
, v8::FunctionTemplate::New(isolate, TestInterfaceImplementationV8Internal::part
ial2StaticVoidMethodMethodCallback, v8Undefined(), defaultSignature, 0)->GetFunc
tion()); | 2068 prototypeObject->Set(v8AtomicString(isolate, "voidMethodPartialOverload"
), v8::FunctionTemplate::New(isolate, TestInterfaceImplementationV8Internal::voi
dMethodPartialOverloadMethodCallback, v8Undefined(), defaultSignature, 1)->GetFu
nction()); |
1855 } | 2069 } |
1856 } | 2070 } |
1857 | 2071 |
1858 ActiveDOMObject* V8TestInterface::toActiveDOMObject(v8::Handle<v8::Object> wrapp
er) | 2072 ActiveDOMObject* V8TestInterface::toActiveDOMObject(v8::Handle<v8::Object> wrapp
er) |
1859 { | 2073 { |
1860 return toImpl(wrapper); | 2074 return toImpl(wrapper); |
1861 } | 2075 } |
1862 | 2076 |
1863 | 2077 |
1864 void V8TestInterface::refObject(ScriptWrappableBase* internalPointer) | 2078 void V8TestInterface::refObject(ScriptWrappableBase* internalPointer) |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1967 if (block.HasCaught()) { | 2181 if (block.HasCaught()) { |
1968 PrivateScriptRunner::rethrowExceptionInPrivateScript(scriptState->isolat
e(), exceptionState, block); | 2182 PrivateScriptRunner::rethrowExceptionInPrivateScript(scriptState->isolat
e(), exceptionState, block); |
1969 block.ReThrow(); | 2183 block.ReThrow(); |
1970 return false; | 2184 return false; |
1971 } | 2185 } |
1972 return true; | 2186 return true; |
1973 } | 2187 } |
1974 | 2188 |
1975 } // namespace blink | 2189 } // namespace blink |
1976 #endif // ENABLE(CONDITION) | 2190 #endif // ENABLE(CONDITION) |
OLD | NEW |