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

Side by Side Diff: Source/bindings/tests/results/V8TestObject.cpp

Issue 27207002: Add support for [PutForwards] IDL extended attribute (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix nits Created 7 years, 2 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 | Annotate | Revision Log
OLDNEW
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
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 2432 matching lines...) Expand 10 before | Expand all | Expand 10 after
5199 {"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 */}, 5261 {"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 */},
5200 {"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 */}, 5262 {"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 */},
5201 {"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 */}, 5263 {"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 */},
5202 {"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 */}, 5264 {"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 */},
5203 {"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 */}, 5265 {"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 */},
5204 {"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 */}, 5266 {"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 */},
5205 {"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 */}, 5267 {"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 */},
5206 {"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 */}, 5268 {"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 */},
5207 {"deprecatedReadonlyAttr", TestObjV8Internal::deprecatedReadonlyAttrAttribut eGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static _cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, 5269 {"deprecatedReadonlyAttr", TestObjV8Internal::deprecatedReadonlyAttrAttribut eGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static _cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
5208 {"deprecatedAttr", TestObjV8Internal::deprecatedAttrAttributeGetterCallback, TestObjV8Internal::deprecatedAttrAttributeSetterCallback, 0, 0, 0, static_cast< v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, 5270 {"deprecatedAttr", TestObjV8Internal::deprecatedAttrAttributeGetterCallback, TestObjV8Internal::deprecatedAttrAttributeSetterCallback, 0, 0, 0, static_cast< v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
5271 {"location", TestObjV8Internal::locationAttributeGetterCallback, TestObjV8In ternal::locationAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl> (v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */ },
5272 {"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 */},
5209 }; 5273 };
5210 5274
5211 static const V8DOMConfiguration::MethodConfiguration V8TestObjectMethods[] = { 5275 static const V8DOMConfiguration::MethodConfiguration V8TestObjectMethods[] = {
5212 {"voidMethod", TestObjV8Internal::voidMethodMethodCallback, 0, 0}, 5276 {"voidMethod", TestObjV8Internal::voidMethodMethodCallback, 0, 0},
5213 {"longMethod", TestObjV8Internal::longMethodMethodCallback, 0, 0}, 5277 {"longMethod", TestObjV8Internal::longMethodMethodCallback, 0, 0},
5214 {"objMethod", TestObjV8Internal::objMethodMethodCallback, 0, 0}, 5278 {"objMethod", TestObjV8Internal::objMethodMethodCallback, 0, 0},
5215 {"methodWithSequenceArg", TestObjV8Internal::methodWithSequenceArgMethodCall back, 0, 1}, 5279 {"methodWithSequenceArg", TestObjV8Internal::methodWithSequenceArgMethodCall back, 0, 1},
5216 {"methodReturningSequence", TestObjV8Internal::methodReturningSequenceMethod Callback, 0, 1}, 5280 {"methodReturningSequence", TestObjV8Internal::methodReturningSequenceMethod Callback, 0, 1},
5217 {"methodWithEnumArg", TestObjV8Internal::methodWithEnumArgMethodCallback, 0, 1}, 5281 {"methodWithEnumArg", TestObjV8Internal::methodWithEnumArgMethodCallback, 0, 1},
5218 {"serializedValue", TestObjV8Internal::serializedValueMethodCallback, 0, 1}, 5282 {"serializedValue", TestObjV8Internal::serializedValueMethodCallback, 0, 1},
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after
5483 V8DOMWrapper::associateObjectWithWrapper<V8TestObject>(impl, &info, wrapper, isolate, WrapperConfiguration::Independent); 5547 V8DOMWrapper::associateObjectWithWrapper<V8TestObject>(impl, &info, wrapper, isolate, WrapperConfiguration::Independent);
5484 return wrapper; 5548 return wrapper;
5485 } 5549 }
5486 5550
5487 void V8TestObject::derefObject(void* object) 5551 void V8TestObject::derefObject(void* object)
5488 { 5552 {
5489 fromInternalPointer(object)->deref(); 5553 fromInternalPointer(object)->deref();
5490 } 5554 }
5491 5555
5492 } // namespace WebCore 5556 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/bindings/tests/results/V8TestNode.cpp ('k') | Source/bindings/v8/custom/V8DocumentLocationCustom.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698