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 2736 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2747 } | 2747 } |
2748 | 2748 |
2749 static void deprecatedAttrAttributeSetterCallback(v8::Local<v8::String> name, v8
::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info) | 2749 static void deprecatedAttrAttributeSetterCallback(v8::Local<v8::String> name, v8
::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info) |
2750 { | 2750 { |
2751 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2751 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
2752 UseCounter::countDeprecation(activeExecutionContext(), UseCounter::Attribute
); | 2752 UseCounter::countDeprecation(activeExecutionContext(), UseCounter::Attribute
); |
2753 TestObjV8Internal::deprecatedAttrAttributeSetter(name, value, info); | 2753 TestObjV8Internal::deprecatedAttrAttributeSetter(name, value, info); |
2754 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 2754 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
2755 } | 2755 } |
2756 | 2756 |
| 2757 static void locationAttributeGetter(v8::Local<v8::String> name, const v8::Proper
tyCallbackInfo<v8::Value>& info) |
| 2758 { |
| 2759 TestObj* imp = V8TestObject::toNative(info.Holder()); |
| 2760 v8SetReturnValueFast(info, imp->location(), imp); |
| 2761 } |
| 2762 |
| 2763 static void locationAttributeGetterCallback(v8::Local<v8::String> name, const v8
::PropertyCallbackInfo<v8::Value>& info) |
| 2764 { |
| 2765 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 2766 TestObjV8Internal::locationAttributeGetter(name, info); |
| 2767 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 2768 } |
| 2769 |
| 2770 static void locationAttributeSetter(v8::Local<v8::String> name, v8::Local<v8::Va
lue> value, const v8::PropertyCallbackInfo<void>& info) |
| 2771 { |
| 2772 TestObj* proxyImp = V8TestObject::toNative(info.Holder()); |
| 2773 TestNode* imp = proxyImp->location(); |
| 2774 if (!imp) |
| 2775 return; |
| 2776 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, v, value); |
| 2777 imp->setHref(v); |
| 2778 } |
| 2779 |
| 2780 static void locationAttributeSetterCallback(v8::Local<v8::String> name, v8::Loca
l<v8::Value> value, const v8::PropertyCallbackInfo<void>& info) |
| 2781 { |
| 2782 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 2783 TestObjV8Internal::locationAttributeSetter(name, value, info); |
| 2784 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 2785 } |
| 2786 |
| 2787 static void locationWithExceptionAttributeGetter(v8::Local<v8::String> name, con
st v8::PropertyCallbackInfo<v8::Value>& info) |
| 2788 { |
| 2789 TestObj* imp = V8TestObject::toNative(info.Holder()); |
| 2790 v8SetReturnValueFast(info, imp->locationWithException(), imp); |
| 2791 } |
| 2792 |
| 2793 static void locationWithExceptionAttributeGetterCallback(v8::Local<v8::String> n
ame, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 2794 { |
| 2795 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 2796 TestObjV8Internal::locationWithExceptionAttributeGetter(name, info); |
| 2797 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 2798 } |
| 2799 |
| 2800 static void locationWithExceptionAttributeSetter(v8::Local<v8::String> name, v8:
:Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info) |
| 2801 { |
| 2802 TestObj* proxyImp = V8TestObject::toNative(info.Holder()); |
| 2803 TestNode* imp = proxyImp->locationWithException(); |
| 2804 if (!imp) |
| 2805 return; |
| 2806 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, v, value); |
| 2807 ExceptionState es(info.GetIsolate()); |
| 2808 imp->setHrefThrows(v, es); |
| 2809 es.throwIfNeeded(); |
| 2810 } |
| 2811 |
| 2812 static void locationWithExceptionAttributeSetterCallback(v8::Local<v8::String> n
ame, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info) |
| 2813 { |
| 2814 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 2815 TestObjV8Internal::locationWithExceptionAttributeSetter(name, value, info); |
| 2816 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 2817 } |
| 2818 |
2757 static void TestObjConstructorGetter(v8::Local<v8::String> name, const v8::Prope
rtyCallbackInfo<v8::Value>& info) | 2819 static void TestObjConstructorGetter(v8::Local<v8::String> name, const v8::Prope
rtyCallbackInfo<v8::Value>& info) |
2758 { | 2820 { |
2759 v8::Handle<v8::Value> data = info.Data(); | 2821 v8::Handle<v8::Value> data = info.Data(); |
2760 ASSERT(data->IsExternal()); | 2822 ASSERT(data->IsExternal()); |
2761 V8PerContextData* perContextData = V8PerContextData::from(info.Holder()->Cre
ationContext()); | 2823 V8PerContextData* perContextData = V8PerContextData::from(info.Holder()->Cre
ationContext()); |
2762 if (!perContextData) | 2824 if (!perContextData) |
2763 return; | 2825 return; |
2764 v8SetReturnValue(info, perContextData->constructorForType(WrapperTypeInfo::u
nwrap(data))); | 2826 v8SetReturnValue(info, perContextData->constructorForType(WrapperTypeInfo::u
nwrap(data))); |
2765 } | 2827 } |
2766 static void TestObjReplaceableAttributeSetter(v8::Local<v8::String> name, v8::Lo
cal<v8::Value> value, const v8::PropertyCallbackInfo<void>& info) | 2828 static void TestObjReplaceableAttributeSetter(v8::Local<v8::String> name, v8::Lo
cal<v8::Value> value, const v8::PropertyCallbackInfo<void>& info) |
(...skipping 2399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5166 {"activityLoggedAttr2", TestObjV8Internal::activityLoggedAttr2AttributeGette
rCallback, TestObjV8Internal::activityLoggedAttr2AttributeSetterCallback, TestOb
jV8Internal::activityLoggedAttr2AttributeGetterCallbackForMainWorld, TestObjV8In
ternal::activityLoggedAttr2AttributeSetterCallbackForMainWorld, 0, static_cast<v
8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0
/* on instance */}, | 5228 {"activityLoggedAttr2", TestObjV8Internal::activityLoggedAttr2AttributeGette
rCallback, TestObjV8Internal::activityLoggedAttr2AttributeSetterCallback, TestOb
jV8Internal::activityLoggedAttr2AttributeGetterCallbackForMainWorld, TestObjV8In
ternal::activityLoggedAttr2AttributeSetterCallbackForMainWorld, 0, static_cast<v
8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0
/* on instance */}, |
5167 {"activityLoggedInIsolatedWorldsAttr", TestObjV8Internal::activityLoggedInIs
olatedWorldsAttrAttributeGetterCallback, TestObjV8Internal::activityLoggedInIsol
atedWorldsAttrAttributeSetterCallback, TestObjV8Internal::activityLoggedInIsolat
edWorldsAttrAttributeGetterCallbackForMainWorld, TestObjV8Internal::activityLogg
edInIsolatedWorldsAttrAttributeSetterCallbackForMainWorld, 0, static_cast<v8::Ac
cessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on
instance */}, | 5229 {"activityLoggedInIsolatedWorldsAttr", TestObjV8Internal::activityLoggedInIs
olatedWorldsAttrAttributeGetterCallback, TestObjV8Internal::activityLoggedInIsol
atedWorldsAttrAttributeSetterCallback, TestObjV8Internal::activityLoggedInIsolat
edWorldsAttrAttributeGetterCallbackForMainWorld, TestObjV8Internal::activityLogg
edInIsolatedWorldsAttrAttributeSetterCallbackForMainWorld, 0, static_cast<v8::Ac
cessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on
instance */}, |
5168 {"activityLoggedAttrSetter1", TestObjV8Internal::activityLoggedAttrSetter1At
tributeGetterCallback, TestObjV8Internal::activityLoggedAttrSetter1AttributeSett
erCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8
::PropertyAttribute>(v8::None), 0 /* on instance */}, | 5230 {"activityLoggedAttrSetter1", TestObjV8Internal::activityLoggedAttrSetter1At
tributeGetterCallback, TestObjV8Internal::activityLoggedAttrSetter1AttributeSett
erCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8
::PropertyAttribute>(v8::None), 0 /* on instance */}, |
5169 {"activityLoggedAttrSetter2", TestObjV8Internal::activityLoggedAttrSetter2At
tributeGetterCallback, TestObjV8Internal::activityLoggedAttrSetter2AttributeSett
erCallback, TestObjV8Internal::activityLoggedAttrSetter2AttributeGetterCallbackF
orMainWorld, TestObjV8Internal::activityLoggedAttrSetter2AttributeSetterCallback
ForMainWorld, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Pr
opertyAttribute>(v8::None), 0 /* on instance */}, | 5231 {"activityLoggedAttrSetter2", TestObjV8Internal::activityLoggedAttrSetter2At
tributeGetterCallback, TestObjV8Internal::activityLoggedAttrSetter2AttributeSett
erCallback, TestObjV8Internal::activityLoggedAttrSetter2AttributeGetterCallbackF
orMainWorld, TestObjV8Internal::activityLoggedAttrSetter2AttributeSetterCallback
ForMainWorld, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Pr
opertyAttribute>(v8::None), 0 /* on instance */}, |
5170 {"activityLoggedInIsolatedWorldsAttrSetter", TestObjV8Internal::activityLogg
edInIsolatedWorldsAttrSetterAttributeGetterCallback, TestObjV8Internal::activity
LoggedInIsolatedWorldsAttrSetterAttributeSetterCallback, TestObjV8Internal::acti
vityLoggedInIsolatedWorldsAttrSetterAttributeGetterCallbackForMainWorld, TestObj
V8Internal::activityLoggedInIsolatedWorldsAttrSetterAttributeSetterCallbackForMa
inWorld, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Propert
yAttribute>(v8::None), 0 /* on instance */}, | 5232 {"activityLoggedInIsolatedWorldsAttrSetter", TestObjV8Internal::activityLogg
edInIsolatedWorldsAttrSetterAttributeGetterCallback, TestObjV8Internal::activity
LoggedInIsolatedWorldsAttrSetterAttributeSetterCallback, TestObjV8Internal::acti
vityLoggedInIsolatedWorldsAttrSetterAttributeGetterCallbackForMainWorld, TestObj
V8Internal::activityLoggedInIsolatedWorldsAttrSetterAttributeSetterCallbackForMa
inWorld, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Propert
yAttribute>(v8::None), 0 /* on instance */}, |
5171 {"activityLoggedAttrGetter1", TestObjV8Internal::activityLoggedAttrGetter1At
tributeGetterCallback, TestObjV8Internal::activityLoggedAttrGetter1AttributeSett
erCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8
::PropertyAttribute>(v8::None), 0 /* on instance */}, | 5233 {"activityLoggedAttrGetter1", TestObjV8Internal::activityLoggedAttrGetter1At
tributeGetterCallback, TestObjV8Internal::activityLoggedAttrGetter1AttributeSett
erCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8
::PropertyAttribute>(v8::None), 0 /* on instance */}, |
5172 {"activityLoggedAttrGetter2", TestObjV8Internal::activityLoggedAttrGetter2At
tributeGetterCallback, TestObjV8Internal::activityLoggedAttrGetter2AttributeSett
erCallback, TestObjV8Internal::activityLoggedAttrGetter2AttributeGetterCallbackF
orMainWorld, TestObjV8Internal::activityLoggedAttrGetter2AttributeSetterCallback
ForMainWorld, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Pr
opertyAttribute>(v8::None), 0 /* on instance */}, | 5234 {"activityLoggedAttrGetter2", TestObjV8Internal::activityLoggedAttrGetter2At
tributeGetterCallback, TestObjV8Internal::activityLoggedAttrGetter2AttributeSett
erCallback, TestObjV8Internal::activityLoggedAttrGetter2AttributeGetterCallbackF
orMainWorld, TestObjV8Internal::activityLoggedAttrGetter2AttributeSetterCallback
ForMainWorld, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Pr
opertyAttribute>(v8::None), 0 /* on instance */}, |
5173 {"activityLoggedInIsolatedWorldsAttrGetter", TestObjV8Internal::activityLogg
edInIsolatedWorldsAttrGetterAttributeGetterCallback, TestObjV8Internal::activity
LoggedInIsolatedWorldsAttrGetterAttributeSetterCallback, TestObjV8Internal::acti
vityLoggedInIsolatedWorldsAttrGetterAttributeGetterCallbackForMainWorld, TestObj
V8Internal::activityLoggedInIsolatedWorldsAttrGetterAttributeSetterCallbackForMa
inWorld, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Propert
yAttribute>(v8::None), 0 /* on instance */}, | 5235 {"activityLoggedInIsolatedWorldsAttrGetter", TestObjV8Internal::activityLogg
edInIsolatedWorldsAttrGetterAttributeGetterCallback, TestObjV8Internal::activity
LoggedInIsolatedWorldsAttrGetterAttributeSetterCallback, TestObjV8Internal::acti
vityLoggedInIsolatedWorldsAttrGetterAttributeGetterCallbackForMainWorld, TestObj
V8Internal::activityLoggedInIsolatedWorldsAttrGetterAttributeSetterCallbackForMa
inWorld, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Propert
yAttribute>(v8::None), 0 /* on instance */}, |
5174 {"deprecatedReadonlyAttr", TestObjV8Internal::deprecatedReadonlyAttrAttribut
eGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static
_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 5236 {"deprecatedReadonlyAttr", TestObjV8Internal::deprecatedReadonlyAttrAttribut
eGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static
_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
5175 {"deprecatedAttr", TestObjV8Internal::deprecatedAttrAttributeGetterCallback,
TestObjV8Internal::deprecatedAttrAttributeSetterCallback, 0, 0, 0, static_cast<
v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0
/* on instance */}, | 5237 {"deprecatedAttr", TestObjV8Internal::deprecatedAttrAttributeGetterCallback,
TestObjV8Internal::deprecatedAttrAttributeSetterCallback, 0, 0, 0, static_cast<
v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0
/* on instance */}, |
| 5238 {"location", TestObjV8Internal::locationAttributeGetterCallback, TestObjV8In
ternal::locationAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>
(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */
}, |
| 5239 {"locationWithException", TestObjV8Internal::locationWithExceptionAttributeG
etterCallback, TestObjV8Internal::locationWithExceptionAttributeSetterCallback,
0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAt
tribute>(v8::None), 0 /* on instance */}, |
5176 }; | 5240 }; |
5177 | 5241 |
5178 static const V8DOMConfiguration::MethodConfiguration V8TestObjectMethods[] = { | 5242 static const V8DOMConfiguration::MethodConfiguration V8TestObjectMethods[] = { |
5179 {"voidMethod", TestObjV8Internal::voidMethodMethodCallback, 0, 0}, | 5243 {"voidMethod", TestObjV8Internal::voidMethodMethodCallback, 0, 0}, |
5180 {"longMethod", TestObjV8Internal::longMethodMethodCallback, 0, 0}, | 5244 {"longMethod", TestObjV8Internal::longMethodMethodCallback, 0, 0}, |
5181 {"objMethod", TestObjV8Internal::objMethodMethodCallback, 0, 0}, | 5245 {"objMethod", TestObjV8Internal::objMethodMethodCallback, 0, 0}, |
5182 {"methodWithSequenceArg", TestObjV8Internal::methodWithSequenceArgMethodCall
back, 0, 1}, | 5246 {"methodWithSequenceArg", TestObjV8Internal::methodWithSequenceArgMethodCall
back, 0, 1}, |
5183 {"methodReturningSequence", TestObjV8Internal::methodReturningSequenceMethod
Callback, 0, 1}, | 5247 {"methodReturningSequence", TestObjV8Internal::methodReturningSequenceMethod
Callback, 0, 1}, |
5184 {"methodWithEnumArg", TestObjV8Internal::methodWithEnumArgMethodCallback, 0,
1}, | 5248 {"methodWithEnumArg", TestObjV8Internal::methodWithEnumArgMethodCallback, 0,
1}, |
5185 {"serializedValue", TestObjV8Internal::serializedValueMethodCallback, 0, 1}, | 5249 {"serializedValue", TestObjV8Internal::serializedValueMethodCallback, 0, 1}, |
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5449 V8DOMWrapper::associateObjectWithWrapper<V8TestObject>(impl, &info, wrapper,
isolate, WrapperConfiguration::Independent); | 5513 V8DOMWrapper::associateObjectWithWrapper<V8TestObject>(impl, &info, wrapper,
isolate, WrapperConfiguration::Independent); |
5450 return wrapper; | 5514 return wrapper; |
5451 } | 5515 } |
5452 | 5516 |
5453 void V8TestObject::derefObject(void* object) | 5517 void V8TestObject::derefObject(void* object) |
5454 { | 5518 { |
5455 fromInternalPointer(object)->deref(); | 5519 fromInternalPointer(object)->deref(); |
5456 } | 5520 } |
5457 | 5521 |
5458 } // namespace WebCore | 5522 } // namespace WebCore |
OLD | NEW |