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

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

Issue 18098007: Get rid of SVGPoint special case from the bindings generator (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 5 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 1912 matching lines...) Expand 10 before | Expand all | Expand 10 after
1923 static void contentDocumentAttrGetterCallback(v8::Local<v8::String> name, const v8::PropertyCallbackInfo<v8::Value>& info) 1923 static void contentDocumentAttrGetterCallback(v8::Local<v8::String> name, const v8::PropertyCallbackInfo<v8::Value>& info)
1924 { 1924 {
1925 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 1925 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
1926 TestObjV8Internal::contentDocumentAttrGetter(name, info); 1926 TestObjV8Internal::contentDocumentAttrGetter(name, info);
1927 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 1927 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution");
1928 } 1928 }
1929 1929
1930 static void mutablePointAttrGetter(v8::Local<v8::String> name, const v8::Propert yCallbackInfo<v8::Value>& info) 1930 static void mutablePointAttrGetter(v8::Local<v8::String> name, const v8::Propert yCallbackInfo<v8::Value>& info)
1931 { 1931 {
1932 TestObj* imp = V8TestObject::toNative(info.Holder()); 1932 TestObj* imp = V8TestObject::toNative(info.Holder());
1933 v8SetReturnValue(info, toV8Fast(WTF::getPtr(SVGStaticPropertyTearOff<TestObj , FloatPoint>::create(imp, imp->mutablePoint(), &TestObj::updateMutablePoint)), info, imp)); 1933 v8SetReturnValue(info, toV8Fast(WTF::getPtr(SVGStaticPropertyTearOff<TestObj , SVGPoint>::create(imp, imp->mutablePoint(), &TestObj::updateMutablePoint)), in fo, imp));
1934 return; 1934 return;
1935 } 1935 }
1936 1936
1937 static void mutablePointAttrGetterCallback(v8::Local<v8::String> name, const v8: :PropertyCallbackInfo<v8::Value>& info) 1937 static void mutablePointAttrGetterCallback(v8::Local<v8::String> name, const v8: :PropertyCallbackInfo<v8::Value>& info)
1938 { 1938 {
1939 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 1939 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
1940 TestObjV8Internal::mutablePointAttrGetter(name, info); 1940 TestObjV8Internal::mutablePointAttrGetter(name, info);
1941 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 1941 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution");
1942 } 1942 }
1943 1943
1944 static void mutablePointAttrSetter(v8::Local<v8::String> name, v8::Local<v8::Val ue> value, const v8::PropertyCallbackInfo<void>& info) 1944 static void mutablePointAttrSetter(v8::Local<v8::String> name, v8::Local<v8::Val ue> value, const v8::PropertyCallbackInfo<void>& info)
1945 { 1945 {
1946 TestObj* imp = V8TestObject::toNative(info.Holder()); 1946 TestObj* imp = V8TestObject::toNative(info.Holder());
1947 V8TRYCATCH_VOID(RefPtr<SVGPropertyTearOff<FloatPoint> >, v, V8SVGPoint::HasI nstance(value, info.GetIsolate(), worldType(info.GetIsolate())) ? V8SVGPoint::to Native(v8::Handle<v8::Object>::Cast(value)) : 0); 1947 V8TRYCATCH_VOID(RefPtr<SVGPropertyTearOff<SVGPoint> >, v, V8SVGPoint::HasIns tance(value, info.GetIsolate(), worldType(info.GetIsolate())) ? V8SVGPoint::toNa tive(v8::Handle<v8::Object>::Cast(value)) : 0);
1948 imp->setMutablePoint(WTF::getPtr(v)); 1948 imp->setMutablePoint(WTF::getPtr(v));
1949 return; 1949 return;
1950 } 1950 }
1951 1951
1952 static void mutablePointAttrSetterCallback(v8::Local<v8::String> name, v8::Local <v8::Value> value, const v8::PropertyCallbackInfo<void>& info) 1952 static void mutablePointAttrSetterCallback(v8::Local<v8::String> name, v8::Local <v8::Value> value, const v8::PropertyCallbackInfo<void>& info)
1953 { 1953 {
1954 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 1954 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
1955 TestObjV8Internal::mutablePointAttrSetter(name, value, info); 1955 TestObjV8Internal::mutablePointAttrSetter(name, value, info);
1956 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 1956 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution");
1957 } 1957 }
1958 1958
1959 static void immutablePointAttrGetter(v8::Local<v8::String> name, const v8::Prope rtyCallbackInfo<v8::Value>& info) 1959 static void immutablePointAttrGetter(v8::Local<v8::String> name, const v8::Prope rtyCallbackInfo<v8::Value>& info)
1960 { 1960 {
1961 TestObj* imp = V8TestObject::toNative(info.Holder()); 1961 TestObj* imp = V8TestObject::toNative(info.Holder());
1962 v8SetReturnValue(info, toV8Fast(WTF::getPtr(SVGPropertyTearOff<FloatPoint>:: create(imp->immutablePoint())), info, imp)); 1962 v8SetReturnValue(info, toV8Fast(WTF::getPtr(SVGPropertyTearOff<SVGPoint>::cr eate(imp->immutablePoint())), info, imp));
1963 return; 1963 return;
1964 } 1964 }
1965 1965
1966 static void immutablePointAttrGetterCallback(v8::Local<v8::String> name, const v 8::PropertyCallbackInfo<v8::Value>& info) 1966 static void immutablePointAttrGetterCallback(v8::Local<v8::String> name, const v 8::PropertyCallbackInfo<v8::Value>& info)
1967 { 1967 {
1968 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 1968 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
1969 TestObjV8Internal::immutablePointAttrGetter(name, info); 1969 TestObjV8Internal::immutablePointAttrGetter(name, info);
1970 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 1970 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution");
1971 } 1971 }
1972 1972
1973 static void immutablePointAttrSetter(v8::Local<v8::String> name, v8::Local<v8::V alue> value, const v8::PropertyCallbackInfo<void>& info) 1973 static void immutablePointAttrSetter(v8::Local<v8::String> name, v8::Local<v8::V alue> value, const v8::PropertyCallbackInfo<void>& info)
1974 { 1974 {
1975 TestObj* imp = V8TestObject::toNative(info.Holder()); 1975 TestObj* imp = V8TestObject::toNative(info.Holder());
1976 V8TRYCATCH_VOID(RefPtr<SVGPropertyTearOff<FloatPoint> >, v, V8SVGPoint::HasI nstance(value, info.GetIsolate(), worldType(info.GetIsolate())) ? V8SVGPoint::to Native(v8::Handle<v8::Object>::Cast(value)) : 0); 1976 V8TRYCATCH_VOID(RefPtr<SVGPropertyTearOff<SVGPoint> >, v, V8SVGPoint::HasIns tance(value, info.GetIsolate(), worldType(info.GetIsolate())) ? V8SVGPoint::toNa tive(v8::Handle<v8::Object>::Cast(value)) : 0);
1977 imp->setImmutablePoint(WTF::getPtr(v)); 1977 imp->setImmutablePoint(WTF::getPtr(v));
1978 return; 1978 return;
1979 } 1979 }
1980 1980
1981 static void immutablePointAttrSetterCallback(v8::Local<v8::String> name, v8::Loc al<v8::Value> value, const v8::PropertyCallbackInfo<void>& info) 1981 static void immutablePointAttrSetterCallback(v8::Local<v8::String> name, v8::Loc al<v8::Value> value, const v8::PropertyCallbackInfo<void>& info)
1982 { 1982 {
1983 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 1983 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
1984 TestObjV8Internal::immutablePointAttrSetter(name, value, info); 1984 TestObjV8Internal::immutablePointAttrSetter(name, value, info);
1985 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 1985 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution");
1986 } 1986 }
(...skipping 2599 matching lines...) Expand 10 before | Expand all | Expand 10 after
4586 static void convert5MethodCallback(const v8::FunctionCallbackInfo<v8::Value>& ar gs) 4586 static void convert5MethodCallback(const v8::FunctionCallbackInfo<v8::Value>& ar gs)
4587 { 4587 {
4588 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 4588 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
4589 TestObjV8Internal::convert5Method(args); 4589 TestObjV8Internal::convert5Method(args);
4590 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 4590 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution");
4591 } 4591 }
4592 4592
4593 static void mutablePointFunctionMethod(const v8::FunctionCallbackInfo<v8::Value> & args) 4593 static void mutablePointFunctionMethod(const v8::FunctionCallbackInfo<v8::Value> & args)
4594 { 4594 {
4595 TestObj* imp = V8TestObject::toNative(args.Holder()); 4595 TestObj* imp = V8TestObject::toNative(args.Holder());
4596 v8SetReturnValue(args, toV8(WTF::getPtr(SVGPropertyTearOff<FloatPoint>::crea te(imp->mutablePointFunction())), args.Holder(), args.GetIsolate())); 4596 v8SetReturnValue(args, toV8(WTF::getPtr(SVGPropertyTearOff<SVGPoint>::create (imp->mutablePointFunction())), args.Holder(), args.GetIsolate()));
4597 return; 4597 return;
4598 } 4598 }
4599 4599
4600 static void mutablePointFunctionMethodCallback(const v8::FunctionCallbackInfo<v8 ::Value>& args) 4600 static void mutablePointFunctionMethodCallback(const v8::FunctionCallbackInfo<v8 ::Value>& args)
4601 { 4601 {
4602 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 4602 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
4603 TestObjV8Internal::mutablePointFunctionMethod(args); 4603 TestObjV8Internal::mutablePointFunctionMethod(args);
4604 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 4604 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution");
4605 } 4605 }
4606 4606
4607 static void immutablePointFunctionMethod(const v8::FunctionCallbackInfo<v8::Valu e>& args) 4607 static void immutablePointFunctionMethod(const v8::FunctionCallbackInfo<v8::Valu e>& args)
4608 { 4608 {
4609 TestObj* imp = V8TestObject::toNative(args.Holder()); 4609 TestObj* imp = V8TestObject::toNative(args.Holder());
4610 v8SetReturnValue(args, toV8(WTF::getPtr(SVGPropertyTearOff<FloatPoint>::crea te(imp->immutablePointFunction())), args.Holder(), args.GetIsolate())); 4610 v8SetReturnValue(args, toV8(WTF::getPtr(SVGPropertyTearOff<SVGPoint>::create (imp->immutablePointFunction())), args.Holder(), args.GetIsolate()));
4611 return; 4611 return;
4612 } 4612 }
4613 4613
4614 static void immutablePointFunctionMethodCallback(const v8::FunctionCallbackInfo< v8::Value>& args) 4614 static void immutablePointFunctionMethodCallback(const v8::FunctionCallbackInfo< v8::Value>& args)
4615 { 4615 {
4616 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 4616 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
4617 TestObjV8Internal::immutablePointFunctionMethod(args); 4617 TestObjV8Internal::immutablePointFunctionMethod(args);
4618 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 4618 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution");
4619 } 4619 }
4620 4620
(...skipping 1103 matching lines...) Expand 10 before | Expand all | Expand 10 after
5724 installPerContextProperties(wrapper, impl.get(), isolate); 5724 installPerContextProperties(wrapper, impl.get(), isolate);
5725 V8DOMWrapper::associateObjectWithWrapper<V8TestObject>(impl, &info, wrapper, isolate, WrapperConfiguration::Independent); 5725 V8DOMWrapper::associateObjectWithWrapper<V8TestObject>(impl, &info, wrapper, isolate, WrapperConfiguration::Independent);
5726 return wrapper; 5726 return wrapper;
5727 } 5727 }
5728 void V8TestObject::derefObject(void* object) 5728 void V8TestObject::derefObject(void* object)
5729 { 5729 {
5730 fromInternalPointer(object)->deref(); 5730 fromInternalPointer(object)->deref();
5731 } 5731 }
5732 5732
5733 } // namespace WebCore 5733 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/bindings/scripts/deprecated_code_generator_v8.pm ('k') | Source/bindings/tests/results/V8TestTypedefs.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698