| 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 850 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 861 } | 861 } |
| 862 | 862 |
| 863 static void deprecatedReadonlyLongAttributeAttributeGetterCallback(v8::Local<v8:
:String> name, const v8::PropertyCallbackInfo<v8::Value>& info) | 863 static void deprecatedReadonlyLongAttributeAttributeGetterCallback(v8::Local<v8:
:String> name, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 864 { | 864 { |
| 865 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 865 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 866 UseCounter::countDeprecation(activeExecutionContext(), UseCounter::ReadonlyL
ongAttribute); | 866 UseCounter::countDeprecation(activeExecutionContext(), UseCounter::ReadonlyL
ongAttribute); |
| 867 TestObjectPythonV8Internal::deprecatedReadonlyLongAttributeAttributeGetter(n
ame, info); | 867 TestObjectPythonV8Internal::deprecatedReadonlyLongAttributeAttributeGetter(n
ame, info); |
| 868 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 868 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 869 } | 869 } |
| 870 | 870 |
| 871 static void doNotCheckSecurityReadonlyLongAttributeAttributeGetter(v8::Local<v8:
:String> name, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 872 { |
| 873 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 874 v8SetReturnValueInt(info, imp->doNotCheckSecurityReadonlyLongAttribute()); |
| 875 } |
| 876 |
| 877 static void doNotCheckSecurityReadonlyLongAttributeAttributeGetterCallback(v8::L
ocal<v8::String> name, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 878 { |
| 879 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 880 TestObjectPythonV8Internal::doNotCheckSecurityReadonlyLongAttributeAttribute
Getter(name, info); |
| 881 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 882 } |
| 883 |
| 884 static void doNotCheckSecurityOnGetterReadonlyLongAttributeAttributeGetter(v8::L
ocal<v8::String> name, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 885 { |
| 886 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 887 v8SetReturnValueInt(info, imp->doNotCheckSecurityOnGetterReadonlyLongAttribu
te()); |
| 888 } |
| 889 |
| 890 static void doNotCheckSecurityOnGetterReadonlyLongAttributeAttributeGetterCallba
ck(v8::Local<v8::String> name, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 891 { |
| 892 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 893 TestObjectPythonV8Internal::doNotCheckSecurityOnGetterReadonlyLongAttributeA
ttributeGetter(name, info); |
| 894 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 895 } |
| 896 |
| 897 static void doNotCheckSecurityOnSetterReadonlyLongAttributeAttributeGetter(v8::L
ocal<v8::String> name, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 898 { |
| 899 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 900 v8SetReturnValueInt(info, imp->doNotCheckSecurityOnSetterReadonlyLongAttribu
te()); |
| 901 } |
| 902 |
| 903 static void doNotCheckSecurityOnSetterReadonlyLongAttributeAttributeGetterCallba
ck(v8::Local<v8::String> name, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 904 { |
| 905 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 906 TestObjectPythonV8Internal::doNotCheckSecurityOnSetterReadonlyLongAttributeA
ttributeGetter(name, info); |
| 907 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 908 } |
| 909 |
| 871 static void readonlyDocumentFragmentAttributeAttributeGetter(v8::Local<v8::Strin
g> name, const v8::PropertyCallbackInfo<v8::Value>& info) | 910 static void readonlyDocumentFragmentAttributeAttributeGetter(v8::Local<v8::Strin
g> name, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 872 { | 911 { |
| 873 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 912 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 874 RefPtr<DocumentFragment> result = imp->readonlyDocumentFragmentAttribute(); | 913 RefPtr<DocumentFragment> result = imp->readonlyDocumentFragmentAttribute(); |
| 875 if (result && DOMDataStore::setReturnValueFromWrapper<V8DocumentFragment>(in
fo.GetReturnValue(), result.get())) | 914 if (result && DOMDataStore::setReturnValueFromWrapper<V8DocumentFragment>(in
fo.GetReturnValue(), result.get())) |
| 876 return; | 915 return; |
| 877 v8::Handle<v8::Value> wrapper = toV8(result.get(), info.Holder(), info.GetIs
olate()); | 916 v8::Handle<v8::Value> wrapper = toV8(result.get(), info.Holder(), info.GetIs
olate()); |
| 878 if (!wrapper.IsEmpty()) { | 917 if (!wrapper.IsEmpty()) { |
| 879 V8HiddenPropertyName::setNamedHiddenReference(info.Holder(), "readonlyDo
cumentFragmentAttribute", wrapper); | 918 V8HiddenPropertyName::setNamedHiddenReference(info.Holder(), "readonlyDo
cumentFragmentAttribute", wrapper); |
| 880 v8SetReturnValue(info, wrapper); | 919 v8SetReturnValue(info, wrapper); |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 948 {"customReadonlyLongAttribute", TestObjectPythonV8Internal::customReadonlyLo
ngAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v
8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 987 {"customReadonlyLongAttribute", TestObjectPythonV8Internal::customReadonlyLo
ngAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v
8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
| 949 {"customGetterReadonlyLongAttribute", TestObjectPythonV8Internal::customGett
erReadonlyLongAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::Acce
ssControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on i
nstance */}, | 988 {"customGetterReadonlyLongAttribute", TestObjectPythonV8Internal::customGett
erReadonlyLongAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::Acce
ssControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on i
nstance */}, |
| 950 #if ENABLE(Condition) | 989 #if ENABLE(Condition) |
| 951 {"customReadonlyLongAttribute", TestObjectPythonV8Internal::customReadonlyLo
ngAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v
8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 990 {"customReadonlyLongAttribute", TestObjectPythonV8Internal::customReadonlyLo
ngAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v
8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
| 952 #endif // ENABLE(Condition) | 991 #endif // ENABLE(Condition) |
| 953 #if ENABLE(Condition) | 992 #if ENABLE(Condition) |
| 954 {"customGetterReadonlyLongAttribute", TestObjectPythonV8Internal::customGett
erReadonlyLongAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::Acce
ssControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on i
nstance */}, | 993 {"customGetterReadonlyLongAttribute", TestObjectPythonV8Internal::customGett
erReadonlyLongAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::Acce
ssControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on i
nstance */}, |
| 955 #endif // ENABLE(Condition) | 994 #endif // ENABLE(Condition) |
| 956 {"customElementsCallbacksReadonlyLongAttribute", TestObjectPythonV8Internal:
:customElementsCallbacksReadonlyLongAttributeAttributeGetterCallback, 0, 0, 0, 0
, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute
>(v8::None), 0 /* on instance */}, | 995 {"customElementsCallbacksReadonlyLongAttribute", TestObjectPythonV8Internal:
:customElementsCallbacksReadonlyLongAttributeAttributeGetterCallback, 0, 0, 0, 0
, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute
>(v8::None), 0 /* on instance */}, |
| 957 {"deprecatedReadonlyLongAttribute", TestObjectPythonV8Internal::deprecatedRe
adonlyLongAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessCo
ntrol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on insta
nce */}, | 996 {"deprecatedReadonlyLongAttribute", TestObjectPythonV8Internal::deprecatedRe
adonlyLongAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessCo
ntrol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on insta
nce */}, |
| 997 {"doNotCheckSecurityReadonlyLongAttribute", TestObjectPythonV8Internal::doNo
tCheckSecurityReadonlyLongAttributeAttributeGetterCallback, 0, 0, 0, 0, static_c
ast<v8::AccessControl>(v8::ALL_CAN_READ), static_cast<v8::PropertyAttribute>(v8:
:None), 0 /* on instance */}, |
| 998 {"doNotCheckSecurityOnGetterReadonlyLongAttribute", TestObjectPythonV8Intern
al::doNotCheckSecurityOnGetterReadonlyLongAttributeAttributeGetterCallback, 0, 0
, 0, 0, static_cast<v8::AccessControl>(v8::ALL_CAN_READ), static_cast<v8::Proper
tyAttribute>(v8::None), 0 /* on instance */}, |
| 999 {"doNotCheckSecurityOnSetterReadonlyLongAttribute", TestObjectPythonV8Intern
al::doNotCheckSecurityOnSetterReadonlyLongAttributeAttributeGetterCallback, 0, 0
, 0, 0, static_cast<v8::AccessControl>(v8::ALL_CAN_WRITE), static_cast<v8::Prope
rtyAttribute>(v8::None), 0 /* on instance */}, |
| 958 {"readonlyDocumentFragmentAttribute", TestObjectPythonV8Internal::readonlyDo
cumentFragmentAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::Acce
ssControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on i
nstance */}, | 1000 {"readonlyDocumentFragmentAttribute", TestObjectPythonV8Internal::readonlyDo
cumentFragmentAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::Acce
ssControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on i
nstance */}, |
| 959 }; | 1001 }; |
| 960 | 1002 |
| 961 static v8::Handle<v8::FunctionTemplate> ConfigureV8TestObjectPythonTemplate(v8::
Handle<v8::FunctionTemplate> desc, v8::Isolate* isolate, WrapperWorldType curren
tWorldType) | 1003 static v8::Handle<v8::FunctionTemplate> ConfigureV8TestObjectPythonTemplate(v8::
Handle<v8::FunctionTemplate> desc, v8::Isolate* isolate, WrapperWorldType curren
tWorldType) |
| 962 { | 1004 { |
| 963 desc->ReadOnlyPrototype(); | 1005 desc->ReadOnlyPrototype(); |
| 964 | 1006 |
| 965 v8::Local<v8::Signature> defaultSignature; | 1007 v8::Local<v8::Signature> defaultSignature; |
| 966 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(desc, "TestOb
jectPython", v8::Local<v8::FunctionTemplate>(), V8TestObjectPython::internalFiel
dCount, | 1008 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(desc, "TestOb
jectPython", v8::Local<v8::FunctionTemplate>(), V8TestObjectPython::internalFiel
dCount, |
| 967 V8TestObjectPythonAttributes, WTF_ARRAY_LENGTH(V8TestObjectPythonAttribu
tes), | 1009 V8TestObjectPythonAttributes, WTF_ARRAY_LENGTH(V8TestObjectPythonAttribu
tes), |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1021 V8DOMWrapper::associateObjectWithWrapper<V8TestObjectPython>(impl, &info, wr
apper, isolate, WrapperConfiguration::Independent); | 1063 V8DOMWrapper::associateObjectWithWrapper<V8TestObjectPython>(impl, &info, wr
apper, isolate, WrapperConfiguration::Independent); |
| 1022 return wrapper; | 1064 return wrapper; |
| 1023 } | 1065 } |
| 1024 | 1066 |
| 1025 void V8TestObjectPython::derefObject(void* object) | 1067 void V8TestObjectPython::derefObject(void* object) |
| 1026 { | 1068 { |
| 1027 fromInternalPointer(object)->deref(); | 1069 fromInternalPointer(object)->deref(); |
| 1028 } | 1070 } |
| 1029 | 1071 |
| 1030 } // namespace WebCore | 1072 } // namespace WebCore |
| OLD | NEW |