Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(205)

Side by Side Diff: Source/WebCore/bindings/scripts/test/V8/V8TestObj.cpp

Issue 12389023: Revert 144194 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1425/
Patch Set: Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 This file is part of the WebKit open source project. 2 This file is part of the WebKit open source project.
3 This file has been generated by generate-bindings.pl. DO NOT MODIFY! 3 This file has been generated by generate-bindings.pl. 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 1530 matching lines...) Expand 10 before | Expand all | Expand 10 after
1541 V8PerContextData* perContextData = V8PerContextData::from(info.Holder()->Cre ationContext()); 1541 V8PerContextData* perContextData = V8PerContextData::from(info.Holder()->Cre ationContext());
1542 if (!perContextData) 1542 if (!perContextData)
1543 return v8Undefined(); 1543 return v8Undefined();
1544 return perContextData->constructorForType(WrapperTypeInfo::unwrap(data)); 1544 return perContextData->constructorForType(WrapperTypeInfo::unwrap(data));
1545 } 1545 }
1546 static void TestObjReplaceableAttrSetter(v8::Local<v8::String> name, v8::Local<v 8::Value> value, const v8::AccessorInfo& info) 1546 static void TestObjReplaceableAttrSetter(v8::Local<v8::String> name, v8::Local<v 8::Value> value, const v8::AccessorInfo& info)
1547 { 1547 {
1548 info.This()->ForceSet(name, value); 1548 info.This()->ForceSet(name, value);
1549 } 1549 }
1550 1550
1551 static void TestObjReplaceableAttrSetterCallback(v8::Local<v8::String> name, v8: :Local<v8::Value> value, const v8::AccessorInfo& info)
1552 {
1553 return TestObjV8Internal::TestObjReplaceableAttrSetter(name, value, info);
1554 }
1555
1556 static v8::Handle<v8::Value> voidMethodMethod(const v8::Arguments& args) 1551 static v8::Handle<v8::Value> voidMethodMethod(const v8::Arguments& args)
1557 { 1552 {
1558 TestObj* imp = V8TestObj::toNative(args.Holder()); 1553 TestObj* imp = V8TestObj::toNative(args.Holder());
1559 imp->voidMethod(); 1554 imp->voidMethod();
1560 return v8Undefined(); 1555 return v8Undefined();
1561 } 1556 }
1562 1557
1563 static v8::Handle<v8::Value> voidMethodMethodCallback(const v8::Arguments& args) 1558 static v8::Handle<v8::Value> voidMethodMethodCallback(const v8::Arguments& args)
1564 { 1559 {
1565 return TestObjV8Internal::voidMethodMethod(args); 1560 return TestObjV8Internal::voidMethodMethod(args);
(...skipping 1323 matching lines...) Expand 10 before | Expand all | Expand 10 after
2889 #if ENABLE(Condition1) && ENABLE(Condition2) 2884 #if ENABLE(Condition1) && ENABLE(Condition2)
2890 // Attribute 'conditionalAttr2' (Type: 'attribute' ExtAttr: 'Conditional') 2885 // Attribute 'conditionalAttr2' (Type: 'attribute' ExtAttr: 'Conditional')
2891 {"conditionalAttr2", TestObjV8Internal::conditionalAttr2AttrGetterCallback, TestObjV8Internal::conditionalAttr2AttrSetterCallback, 0 /* no data */, static_c ast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None ), 0 /* on instance */}, 2886 {"conditionalAttr2", TestObjV8Internal::conditionalAttr2AttrGetterCallback, TestObjV8Internal::conditionalAttr2AttrSetterCallback, 0 /* no data */, static_c ast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None ), 0 /* on instance */},
2892 #endif // ENABLE(Condition1) && ENABLE(Condition2) 2887 #endif // ENABLE(Condition1) && ENABLE(Condition2)
2893 #if ENABLE(Condition1) || ENABLE(Condition2) 2888 #if ENABLE(Condition1) || ENABLE(Condition2)
2894 // Attribute 'conditionalAttr3' (Type: 'attribute' ExtAttr: 'Conditional') 2889 // Attribute 'conditionalAttr3' (Type: 'attribute' ExtAttr: 'Conditional')
2895 {"conditionalAttr3", TestObjV8Internal::conditionalAttr3AttrGetterCallback, TestObjV8Internal::conditionalAttr3AttrSetterCallback, 0 /* no data */, static_c ast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None ), 0 /* on instance */}, 2890 {"conditionalAttr3", TestObjV8Internal::conditionalAttr3AttrGetterCallback, TestObjV8Internal::conditionalAttr3AttrSetterCallback, 0 /* no data */, static_c ast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None ), 0 /* on instance */},
2896 #endif // ENABLE(Condition1) || ENABLE(Condition2) 2891 #endif // ENABLE(Condition1) || ENABLE(Condition2)
2897 #if ENABLE(Condition1) 2892 #if ENABLE(Condition1)
2898 // Attribute 'conditionalAttr4' (Type: 'attribute' ExtAttr: 'Conditional') 2893 // Attribute 'conditionalAttr4' (Type: 'attribute' ExtAttr: 'Conditional')
2899 {"conditionalAttr4", TestObjV8Internal::TestObjConstructorGetter, TestObjV8I nternal::TestObjReplaceableAttrSetterCallback, &V8TestObjectA::info, static_cast <v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, 2894 {"conditionalAttr4", TestObjV8Internal::TestObjConstructorGetter, TestObjV8I nternal::TestObjReplaceableAttrSetter, &V8TestObjectA::info, static_cast<v8::Acc essControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
2900 #endif // ENABLE(Condition1) 2895 #endif // ENABLE(Condition1)
2901 #if ENABLE(Condition1) && ENABLE(Condition2) 2896 #if ENABLE(Condition1) && ENABLE(Condition2)
2902 // Attribute 'conditionalAttr5' (Type: 'attribute' ExtAttr: 'Conditional') 2897 // Attribute 'conditionalAttr5' (Type: 'attribute' ExtAttr: 'Conditional')
2903 {"conditionalAttr5", TestObjV8Internal::TestObjConstructorGetter, TestObjV8I nternal::TestObjReplaceableAttrSetterCallback, &V8TestObjectB::info, static_cast <v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, 2898 {"conditionalAttr5", TestObjV8Internal::TestObjConstructorGetter, TestObjV8I nternal::TestObjReplaceableAttrSetter, &V8TestObjectB::info, static_cast<v8::Acc essControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
2904 #endif // ENABLE(Condition1) && ENABLE(Condition2) 2899 #endif // ENABLE(Condition1) && ENABLE(Condition2)
2905 #if ENABLE(Condition1) || ENABLE(Condition2) 2900 #if ENABLE(Condition1) || ENABLE(Condition2)
2906 // Attribute 'conditionalAttr6' (Type: 'attribute' ExtAttr: 'Conditional') 2901 // Attribute 'conditionalAttr6' (Type: 'attribute' ExtAttr: 'Conditional')
2907 {"conditionalAttr6", TestObjV8Internal::TestObjConstructorGetter, TestObjV8I nternal::TestObjReplaceableAttrSetterCallback, &V8TestObjectC::info, static_cast <v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, 2902 {"conditionalAttr6", TestObjV8Internal::TestObjConstructorGetter, TestObjV8I nternal::TestObjReplaceableAttrSetter, &V8TestObjectC::info, static_cast<v8::Acc essControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
2908 #endif // ENABLE(Condition1) || ENABLE(Condition2) 2903 #endif // ENABLE(Condition1) || ENABLE(Condition2)
2909 // Attribute 'cachedAttribute1' (Type: 'readonly attribute' ExtAttr: 'Cached Attribute') 2904 // Attribute 'cachedAttribute1' (Type: 'readonly attribute' ExtAttr: 'Cached Attribute')
2910 {"cachedAttribute1", TestObjV8Internal::cachedAttribute1AttrGetterCallback, 0, 0 /* no data */, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8: :PropertyAttribute>(v8::None), 0 /* on instance */}, 2905 {"cachedAttribute1", TestObjV8Internal::cachedAttribute1AttrGetterCallback, 0, 0 /* no data */, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8: :PropertyAttribute>(v8::None), 0 /* on instance */},
2911 // Attribute 'cachedAttribute2' (Type: 'readonly attribute' ExtAttr: 'Cached Attribute') 2906 // Attribute 'cachedAttribute2' (Type: 'readonly attribute' ExtAttr: 'Cached Attribute')
2912 {"cachedAttribute2", TestObjV8Internal::cachedAttribute2AttrGetterCallback, 0, 0 /* no data */, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8: :PropertyAttribute>(v8::None), 0 /* on instance */}, 2907 {"cachedAttribute2", TestObjV8Internal::cachedAttribute2AttrGetterCallback, 0, 0 /* no data */, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8: :PropertyAttribute>(v8::None), 0 /* on instance */},
2913 // Attribute 'anyAttribute' (Type: 'attribute' ExtAttr: '') 2908 // Attribute 'anyAttribute' (Type: 'attribute' ExtAttr: '')
2914 {"anyAttribute", TestObjV8Internal::anyAttributeAttrGetterCallback, TestObjV 8Internal::anyAttributeAttrSetterCallback, 0 /* no data */, static_cast<v8::Acce ssControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on i nstance */}, 2909 {"anyAttribute", TestObjV8Internal::anyAttributeAttrGetterCallback, TestObjV 8Internal::anyAttributeAttrSetterCallback, 0 /* no data */, static_cast<v8::Acce ssControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on i nstance */},
2915 // Attribute 'floatArray' (Type: 'attribute' ExtAttr: '') 2910 // Attribute 'floatArray' (Type: 'attribute' ExtAttr: '')
2916 {"floatArray", TestObjV8Internal::floatArrayAttrGetterCallback, TestObjV8Int ernal::floatArrayAttrSetterCallback, 0 /* no data */, static_cast<v8::AccessCont rol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instanc e */}, 2911 {"floatArray", TestObjV8Internal::floatArrayAttrGetterCallback, TestObjV8Int ernal::floatArrayAttrSetterCallback, 0 /* no data */, static_cast<v8::AccessCont rol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instanc e */},
2917 // Attribute 'doubleArray' (Type: 'attribute' ExtAttr: '') 2912 // Attribute 'doubleArray' (Type: 'attribute' ExtAttr: '')
2918 {"doubleArray", TestObjV8Internal::doubleArrayAttrGetterCallback, TestObjV8I nternal::doubleArrayAttrSetterCallback, 0 /* no data */, static_cast<v8::AccessC ontrol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on inst ance */}, 2913 {"doubleArray", TestObjV8Internal::doubleArrayAttrGetterCallback, TestObjV8I nternal::doubleArrayAttrSetterCallback, 0 /* no data */, static_cast<v8::AccessC ontrol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on inst ance */},
2919 // Attribute 'contentDocument' (Type: 'readonly attribute' ExtAttr: 'CheckSe curityForNode') 2914 // Attribute 'contentDocument' (Type: 'readonly attribute' ExtAttr: 'CheckSe curityForNode')
2920 {"contentDocument", TestObjV8Internal::contentDocumentAttrGetterCallback, 0, 0 /* no data */, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::P ropertyAttribute>(v8::None), 0 /* on instance */}, 2915 {"contentDocument", TestObjV8Internal::contentDocumentAttrGetterCallback, 0, 0 /* no data */, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::P ropertyAttribute>(v8::None), 0 /* on instance */},
2921 // Attribute 'mutablePoint' (Type: 'attribute' ExtAttr: '') 2916 // Attribute 'mutablePoint' (Type: 'attribute' ExtAttr: '')
2922 {"mutablePoint", TestObjV8Internal::mutablePointAttrGetterCallback, TestObjV 8Internal::mutablePointAttrSetterCallback, 0 /* no data */, static_cast<v8::Acce ssControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on i nstance */}, 2917 {"mutablePoint", TestObjV8Internal::mutablePointAttrGetterCallback, TestObjV 8Internal::mutablePointAttrSetterCallback, 0 /* no data */, static_cast<v8::Acce ssControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on i nstance */},
2923 // Attribute 'immutablePoint' (Type: 'attribute' ExtAttr: 'Immutable') 2918 // Attribute 'immutablePoint' (Type: 'attribute' ExtAttr: 'Immutable')
2924 {"immutablePoint", TestObjV8Internal::immutablePointAttrGetterCallback, Test ObjV8Internal::immutablePointAttrSetterCallback, 0 /* no data */, static_cast<v8 ::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 / * on instance */}, 2919 {"immutablePoint", TestObjV8Internal::immutablePointAttrGetterCallback, Test ObjV8Internal::immutablePointAttrSetterCallback, 0 /* no data */, static_cast<v8 ::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 / * on instance */},
2925 // Attribute 'strawberry' (Type: 'attribute' ExtAttr: 'ImplementedAs') 2920 // Attribute 'strawberry' (Type: 'attribute' ExtAttr: 'ImplementedAs')
2926 {"strawberry", TestObjV8Internal::strawberryAttrGetterCallback, TestObjV8Int ernal::strawberryAttrSetterCallback, 0 /* no data */, static_cast<v8::AccessCont rol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instanc e */}, 2921 {"strawberry", TestObjV8Internal::strawberryAttrGetterCallback, TestObjV8Int ernal::strawberryAttrSetterCallback, 0 /* no data */, static_cast<v8::AccessCont rol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instanc e */},
2927 // Attribute 'strictFloat' (Type: 'attribute' ExtAttr: 'StrictTypeChecking') 2922 // Attribute 'strictFloat' (Type: 'attribute' ExtAttr: 'StrictTypeChecking')
2928 {"strictFloat", TestObjV8Internal::strictFloatAttrGetterCallback, TestObjV8I nternal::strictFloatAttrSetterCallback, 0 /* no data */, static_cast<v8::AccessC ontrol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on inst ance */}, 2923 {"strictFloat", TestObjV8Internal::strictFloatAttrGetterCallback, TestObjV8I nternal::strictFloatAttrSetterCallback, 0 /* no data */, static_cast<v8::AccessC ontrol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on inst ance */},
2929 // Attribute 'description' (Type: 'readonly attribute' ExtAttr: '') 2924 // Attribute 'description' (Type: 'readonly attribute' ExtAttr: '')
2930 {"description", TestObjV8Internal::descriptionAttrGetterCallback, 0, 0 /* no data */, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyA ttribute>(v8::None), 0 /* on instance */}, 2925 {"description", TestObjV8Internal::descriptionAttrGetterCallback, 0, 0 /* no data */, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyA ttribute>(v8::None), 0 /* on instance */},
2931 // Attribute 'id' (Type: 'attribute' ExtAttr: '') 2926 // Attribute 'id' (Type: 'attribute' ExtAttr: '')
2932 {"id", TestObjV8Internal::idAttrGetterCallback, TestObjV8Internal::idAttrSet terCallback, 0 /* no data */, static_cast<v8::AccessControl>(v8::DEFAULT), stati c_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, 2927 {"id", TestObjV8Internal::idAttrGetterCallback, TestObjV8Internal::idAttrSet terCallback, 0 /* no data */, static_cast<v8::AccessControl>(v8::DEFAULT), stati c_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
2933 // Attribute 'hash' (Type: 'readonly attribute' ExtAttr: '') 2928 // Attribute 'hash' (Type: 'readonly attribute' ExtAttr: '')
2934 {"hash", TestObjV8Internal::hashAttrGetterCallback, 0, 0 /* no data */, stat ic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8:: None), 0 /* on instance */}, 2929 {"hash", TestObjV8Internal::hashAttrGetterCallback, 0, 0 /* no data */, stat ic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8:: None), 0 /* on instance */},
2935 // Attribute 'replaceableAttribute' (Type: 'readonly attribute' ExtAttr: 'Re placeable') 2930 // Attribute 'replaceableAttribute' (Type: 'readonly attribute' ExtAttr: 'Re placeable')
2936 {"replaceableAttribute", TestObjV8Internal::replaceableAttributeAttrGetterCa llback, TestObjV8Internal::TestObjReplaceableAttrSetterCallback, 0 /* no data */ , static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute >(v8::None), 0 /* on instance */}, 2931 {"replaceableAttribute", TestObjV8Internal::replaceableAttributeAttrGetterCa llback, TestObjV8Internal::TestObjReplaceableAttrSetter, 0 /* no data */, static _cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::No ne), 0 /* on instance */},
2937 }; 2932 };
2938 2933
2939 static const V8DOMConfiguration::BatchedMethod V8TestObjMethods[] = { 2934 static const V8DOMConfiguration::BatchedMethod V8TestObjMethods[] = {
2940 {"voidMethod", TestObjV8Internal::voidMethodMethodCallback}, 2935 {"voidMethod", TestObjV8Internal::voidMethodMethodCallback},
2941 {"longMethod", TestObjV8Internal::longMethodMethodCallback}, 2936 {"longMethod", TestObjV8Internal::longMethodMethodCallback},
2942 {"objMethod", TestObjV8Internal::objMethodMethodCallback}, 2937 {"objMethod", TestObjV8Internal::objMethodMethodCallback},
2943 {"methodReturningSequence", TestObjV8Internal::methodReturningSequenceMethod Callback}, 2938 {"methodReturningSequence", TestObjV8Internal::methodReturningSequenceMethod Callback},
2944 {"serializedValue", TestObjV8Internal::serializedValueMethodCallback}, 2939 {"serializedValue", TestObjV8Internal::serializedValueMethodCallback},
2945 {"optionsObject", TestObjV8Internal::optionsObjectMethodCallback}, 2940 {"optionsObject", TestObjV8Internal::optionsObjectMethodCallback},
2946 {"methodWithException", TestObjV8Internal::methodWithExceptionMethodCallback }, 2941 {"methodWithException", TestObjV8Internal::methodWithExceptionMethodCallback },
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after
3233 installPerContextProperties(wrapper, impl.get(), isolate); 3228 installPerContextProperties(wrapper, impl.get(), isolate);
3234 V8DOMWrapper::associateObjectWithWrapper(impl, &info, wrapper, isolate, hasD ependentLifetime ? WrapperConfiguration::Dependent : WrapperConfiguration::Indep endent); 3229 V8DOMWrapper::associateObjectWithWrapper(impl, &info, wrapper, isolate, hasD ependentLifetime ? WrapperConfiguration::Dependent : WrapperConfiguration::Indep endent);
3235 return wrapper; 3230 return wrapper;
3236 } 3231 }
3237 void V8TestObj::derefObject(void* object) 3232 void V8TestObj::derefObject(void* object)
3238 { 3233 {
3239 static_cast<TestObj*>(object)->deref(); 3234 static_cast<TestObj*>(object)->deref();
3240 } 3235 }
3241 3236
3242 } // namespace WebCore 3237 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/WebCore/bindings/scripts/CodeGeneratorV8.pm ('k') | Source/WebCore/bindings/scripts/test/V8/V8TestTypedefs.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698