| OLD | NEW |
| 1 /* | 1 /* |
| 2 This file is part of the Blink open source project. | 2 This file is part of the Blink open source project. |
| 3 This file has been auto-generated by CodeGeneratorV8.pm. DO NOT MODIFY! | 3 This file has been auto-generated by CodeGeneratorV8.pm. DO NOT MODIFY! |
| 4 | 4 |
| 5 This library is free software; you can redistribute it and/or | 5 This library is free software; you can redistribute it and/or |
| 6 modify it under the terms of the GNU Library General Public | 6 modify it under the terms of the GNU Library General Public |
| 7 License as published by the Free Software Foundation; either | 7 License as published by the Free Software Foundation; either |
| 8 version 2 of the License, or (at your option) any later version. | 8 version 2 of the License, or (at your option) any later version. |
| 9 | 9 |
| 10 This library is distributed in the hope that it will be useful, | 10 This library is distributed in the hope that it will be useful, |
| (...skipping 2706 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2717 | 2717 |
| 2718 #if ENABLE(Condition) | 2718 #if ENABLE(Condition) |
| 2719 static void conditionalEnabledAtRuntimeLongAttributeAttributeSetterCallback(v8::
Local<v8::String> name, v8::Local<v8::Value> jsValue, const v8::PropertyCallback
Info<void>& info) | 2719 static void conditionalEnabledAtRuntimeLongAttributeAttributeSetterCallback(v8::
Local<v8::String> name, v8::Local<v8::Value> jsValue, const v8::PropertyCallback
Info<void>& info) |
| 2720 { | 2720 { |
| 2721 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2721 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 2722 TestObjectPythonV8Internal::conditionalEnabledAtRuntimeLongAttributeAttribut
eSetter(name, jsValue, info); | 2722 TestObjectPythonV8Internal::conditionalEnabledAtRuntimeLongAttributeAttribut
eSetter(name, jsValue, info); |
| 2723 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 2723 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 2724 } | 2724 } |
| 2725 #endif // ENABLE(Condition) | 2725 #endif // ENABLE(Condition) |
| 2726 | 2726 |
| 2727 static void setterCallWithActiveWindowAndFirstWindowReadonlyStringAttributeAttri
buteGetter(v8::Local<v8::String> name, const v8::PropertyCallbackInfo<v8::Value>
& info) | 2727 static void setterCallWithActiveWindowAndFirstWindowStringAttributeAttributeGett
er(v8::Local<v8::String> name, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 2728 { | 2728 { |
| 2729 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 2729 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 2730 v8SetReturnValueString(info, imp->setterCallWithActiveWindowAndFirstWindowRe
adonlyStringAttribute(), info.GetIsolate()); | 2730 v8SetReturnValueString(info, imp->setterCallWithActiveWindowAndFirstWindowSt
ringAttribute(), info.GetIsolate()); |
| 2731 } | 2731 } |
| 2732 | 2732 |
| 2733 static void setterCallWithActiveWindowAndFirstWindowReadonlyStringAttributeAttri
buteGetterCallback(v8::Local<v8::String> name, const v8::PropertyCallbackInfo<v8
::Value>& info) | 2733 static void setterCallWithActiveWindowAndFirstWindowStringAttributeAttributeGett
erCallback(v8::Local<v8::String> name, const v8::PropertyCallbackInfo<v8::Value>
& info) |
| 2734 { | 2734 { |
| 2735 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2735 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 2736 TestObjectPythonV8Internal::setterCallWithActiveWindowAndFirstWindowReadonly
StringAttributeAttributeGetter(name, info); | 2736 TestObjectPythonV8Internal::setterCallWithActiveWindowAndFirstWindowStringAt
tributeAttributeGetter(name, info); |
| 2737 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 2737 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 2738 } | 2738 } |
| 2739 | 2739 |
| 2740 static void setterCallWithActiveWindowAndFirstWindowStringAttributeAttributeSett
er(v8::Local<v8::String> name, v8::Local<v8::Value> jsValue, const v8::PropertyC
allbackInfo<void>& info) |
| 2741 { |
| 2742 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 2743 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); |
| 2744 imp->setSetterCallWithActiveWindowAndFirstWindowStringAttribute(activeDOMWin
dow(), firstDOMWindow(), cppValue); |
| 2745 } |
| 2746 |
| 2747 static void setterCallWithActiveWindowAndFirstWindowStringAttributeAttributeSett
erCallback(v8::Local<v8::String> name, v8::Local<v8::Value> jsValue, const v8::P
ropertyCallbackInfo<void>& info) |
| 2748 { |
| 2749 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 2750 TestObjectPythonV8Internal::setterCallWithActiveWindowAndFirstWindowStringAt
tributeAttributeSetter(name, jsValue, info); |
| 2751 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 2752 } |
| 2753 |
| 2740 static void setterRaisesExceptionLongAttributeAttributeGetter(v8::Local<v8::Stri
ng> name, const v8::PropertyCallbackInfo<v8::Value>& info) | 2754 static void setterRaisesExceptionLongAttributeAttributeGetter(v8::Local<v8::Stri
ng> name, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 2741 { | 2755 { |
| 2742 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 2756 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 2743 v8SetReturnValueInt(info, imp->setterRaisesExceptionLongAttribute()); | 2757 v8SetReturnValueInt(info, imp->setterRaisesExceptionLongAttribute()); |
| 2744 } | 2758 } |
| 2745 | 2759 |
| 2746 static void setterRaisesExceptionLongAttributeAttributeGetterCallback(v8::Local<
v8::String> name, const v8::PropertyCallbackInfo<v8::Value>& info) | 2760 static void setterRaisesExceptionLongAttributeAttributeGetterCallback(v8::Local<
v8::String> name, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 2747 { | 2761 { |
| 2748 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2762 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 2749 TestObjectPythonV8Internal::setterRaisesExceptionLongAttributeAttributeGette
r(name, info); | 2763 TestObjectPythonV8Internal::setterRaisesExceptionLongAttributeAttributeGette
r(name, info); |
| (...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3021 {"reflectReadonlyBooleanAttribute", TestObjectPythonV8Internal::reflectReado
nlyBooleanAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessCo
ntrol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on insta
nce */}, | 3035 {"reflectReadonlyBooleanAttribute", TestObjectPythonV8Internal::reflectReado
nlyBooleanAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessCo
ntrol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on insta
nce */}, |
| 3022 {"reflectReadonlyLongAttribute", TestObjectPythonV8Internal::reflectReadonly
LongAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>
(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */
}, | 3036 {"reflectReadonlyLongAttribute", TestObjectPythonV8Internal::reflectReadonly
LongAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>
(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */
}, |
| 3023 {"reflectReadonlyUnsignedShortAttribute", TestObjectPythonV8Internal::reflec
tReadonlyUnsignedShortAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<
v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0
/* on instance */}, | 3037 {"reflectReadonlyUnsignedShortAttribute", TestObjectPythonV8Internal::reflec
tReadonlyUnsignedShortAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<
v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0
/* on instance */}, |
| 3024 {"reflectReadonlyUnsignedLongAttribute", TestObjectPythonV8Internal::reflect
ReadonlyUnsignedLongAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8
::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /
* on instance */}, | 3038 {"reflectReadonlyUnsignedLongAttribute", TestObjectPythonV8Internal::reflect
ReadonlyUnsignedLongAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8
::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /
* on instance */}, |
| 3025 {"id", TestObjectPythonV8Internal::idAttributeGetterCallback, 0, 0, 0, 0, st
atic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8
::None), 0 /* on instance */}, | 3039 {"id", TestObjectPythonV8Internal::idAttributeGetterCallback, 0, 0, 0, 0, st
atic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8
::None), 0 /* on instance */}, |
| 3026 {"name", TestObjectPythonV8Internal::nameAttributeGetterCallback, 0, 0, 0, 0
, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute
>(v8::None), 0 /* on instance */}, | 3040 {"name", TestObjectPythonV8Internal::nameAttributeGetterCallback, 0, 0, 0, 0
, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute
>(v8::None), 0 /* on instance */}, |
| 3027 {"class", TestObjectPythonV8Internal::classAttributeGetterCallback, 0, 0, 0,
0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribu
te>(v8::None), 0 /* on instance */}, | 3041 {"class", TestObjectPythonV8Internal::classAttributeGetterCallback, 0, 0, 0,
0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribu
te>(v8::None), 0 /* on instance */}, |
| 3028 {"reflectedId", TestObjectPythonV8Internal::reflectedIdAttributeGetterCallba
ck, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Pro
pertyAttribute>(v8::None), 0 /* on instance */}, | 3042 {"reflectedId", TestObjectPythonV8Internal::reflectedIdAttributeGetterCallba
ck, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Pro
pertyAttribute>(v8::None), 0 /* on instance */}, |
| 3029 {"reflectedName", TestObjectPythonV8Internal::reflectedNameAttributeGetterCa
llback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8:
:PropertyAttribute>(v8::None), 0 /* on instance */}, | 3043 {"reflectedName", TestObjectPythonV8Internal::reflectedNameAttributeGetterCa
llback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8:
:PropertyAttribute>(v8::None), 0 /* on instance */}, |
| 3030 {"reflectedClass", TestObjectPythonV8Internal::reflectedClassAttributeGetter
Callback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v
8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 3044 {"reflectedClass", TestObjectPythonV8Internal::reflectedClassAttributeGetter
Callback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v
8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
| 3031 {"setterCallWithActiveWindowAndFirstWindowReadonlyStringAttribute", TestObje
ctPythonV8Internal::setterCallWithActiveWindowAndFirstWindowReadonlyStringAttrib
uteAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAU
LT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 3045 {"setterCallWithActiveWindowAndFirstWindowStringAttribute", TestObjectPython
V8Internal::setterCallWithActiveWindowAndFirstWindowStringAttributeAttributeGett
erCallback, TestObjectPythonV8Internal::setterCallWithActiveWindowAndFirstWindow
StringAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(
v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}
, |
| 3032 {"setterRaisesExceptionLongAttribute", TestObjectPythonV8Internal::setterRai
sesExceptionLongAttributeAttributeGetterCallback, TestObjectPythonV8Internal::se
tterRaisesExceptionLongAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8
::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /
* on instance */}, | 3046 {"setterRaisesExceptionLongAttribute", TestObjectPythonV8Internal::setterRai
sesExceptionLongAttributeAttributeGetterCallback, TestObjectPythonV8Internal::se
tterRaisesExceptionLongAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8
::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /
* on instance */}, |
| 3033 {"strictTypeCheckingReadonlyFloatAttribute", TestObjectPythonV8Internal::str
ictTypeCheckingReadonlyFloatAttributeAttributeGetterCallback, 0, 0, 0, 0, static
_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::No
ne), 0 /* on instance */}, | 3047 {"strictTypeCheckingReadonlyFloatAttribute", TestObjectPythonV8Internal::str
ictTypeCheckingReadonlyFloatAttributeAttributeGetterCallback, 0, 0, 0, 0, static
_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::No
ne), 0 /* on instance */}, |
| 3034 {"strictTypeCheckingReadonlyTestInterfaceAttribute", TestObjectPythonV8Inter
nal::strictTypeCheckingReadonlyTestInterfaceAttributeAttributeGetterCallback, 0,
0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyA
ttribute>(v8::None), 0 /* on instance */}, | 3048 {"strictTypeCheckingReadonlyTestInterfaceAttribute", TestObjectPythonV8Inter
nal::strictTypeCheckingReadonlyTestInterfaceAttributeAttributeGetterCallback, 0,
0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyA
ttribute>(v8::None), 0 /* on instance */}, |
| 3035 {"treatNullAsNullStringReadonlyStringAttribute", TestObjectPythonV8Internal:
:treatNullAsNullStringReadonlyStringAttributeAttributeGetterCallback, 0, 0, 0, 0
, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute
>(v8::None), 0 /* on instance */}, | 3049 {"treatNullAsNullStringReadonlyStringAttribute", TestObjectPythonV8Internal:
:treatNullAsNullStringReadonlyStringAttributeAttributeGetterCallback, 0, 0, 0, 0
, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute
>(v8::None), 0 /* on instance */}, |
| 3036 {"treatReturnedNullStringAsNullStringAttribute", TestObjectPythonV8Internal:
:treatReturnedNullStringAsNullStringAttributeAttributeGetterCallback, TestObject
PythonV8Internal::treatReturnedNullStringAsNullStringAttributeAttributeSetterCal
lback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Pro
pertyAttribute>(v8::None), 0 /* on instance */}, | 3050 {"treatReturnedNullStringAsNullStringAttribute", TestObjectPythonV8Internal:
:treatReturnedNullStringAsNullStringAttributeAttributeGetterCallback, TestObject
PythonV8Internal::treatReturnedNullStringAsNullStringAttributeAttributeSetterCal
lback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Pro
pertyAttribute>(v8::None), 0 /* on instance */}, |
| 3037 {"treatReturnedNullStringAsUndefinedStringAttribute", TestObjectPythonV8Inte
rnal::treatReturnedNullStringAsUndefinedStringAttributeAttributeGetterCallback,
TestObjectPythonV8Internal::treatReturnedNullStringAsUndefinedStringAttributeAtt
ributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), stat
ic_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 3051 {"treatReturnedNullStringAsUndefinedStringAttribute", TestObjectPythonV8Inte
rnal::treatReturnedNullStringAsUndefinedStringAttributeAttributeGetterCallback,
TestObjectPythonV8Internal::treatReturnedNullStringAsUndefinedStringAttributeAtt
ributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), stat
ic_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
| 3038 {"urlReadonlyStringAttribute", TestObjectPythonV8Internal::urlReadonlyString
AttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8:
:DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 3052 {"urlReadonlyStringAttribute", TestObjectPythonV8Internal::urlReadonlyString
AttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8:
:DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
| 3039 {"urlReadonlyStringAttribute", TestObjectPythonV8Internal::urlReadonlyString
AttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8:
:DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 3053 {"urlReadonlyStringAttribute", TestObjectPythonV8Internal::urlReadonlyString
AttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8:
:DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
| 3040 {"unforgeableLongAttribute", TestObjectPythonV8Internal::unforgeableLongAttr
ibuteAttributeGetterCallback, TestObjectPythonV8Internal::unforgeableLongAttribu
teAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::PROHIBITS
_OVERWRITING), static_cast<v8::PropertyAttribute>(v8::DontDelete), 0 /* on insta
nce */}, | 3054 {"unforgeableLongAttribute", TestObjectPythonV8Internal::unforgeableLongAttr
ibuteAttributeGetterCallback, TestObjectPythonV8Internal::unforgeableLongAttribu
teAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::PROHIBITS
_OVERWRITING), static_cast<v8::PropertyAttribute>(v8::DontDelete), 0 /* on insta
nce */}, |
| 3041 }; | 3055 }; |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3129 V8DOMWrapper::associateObjectWithWrapper<V8TestObjectPython>(impl, &info, wr
apper, isolate, WrapperConfiguration::Independent); | 3143 V8DOMWrapper::associateObjectWithWrapper<V8TestObjectPython>(impl, &info, wr
apper, isolate, WrapperConfiguration::Independent); |
| 3130 return wrapper; | 3144 return wrapper; |
| 3131 } | 3145 } |
| 3132 | 3146 |
| 3133 void V8TestObjectPython::derefObject(void* object) | 3147 void V8TestObjectPython::derefObject(void* object) |
| 3134 { | 3148 { |
| 3135 fromInternalPointer(object)->deref(); | 3149 fromInternalPointer(object)->deref(); |
| 3136 } | 3150 } |
| 3137 | 3151 |
| 3138 } // namespace WebCore | 3152 } // namespace WebCore |
| OLD | NEW |