WebCore/generated/JSSVGPoint.h
changeset 0 4f2f89ce4247
equal deleted inserted replaced
-1:000000000000 0:4f2f89ce4247
       
     1 /*
       
     2     This file is part of the WebKit open source project.
       
     3     This file has been generated by generate-bindings.pl. DO NOT MODIFY!
       
     4 
       
     5     This library is free software; you can redistribute it and/or
       
     6     modify it under the terms of the GNU Library General Public
       
     7     License as published by the Free Software Foundation; either
       
     8     version 2 of the License, or (at your option) any later version.
       
     9 
       
    10     This library is distributed in the hope that it will be useful,
       
    11     but WITHOUT ANY WARRANTY; without even the implied warranty of
       
    12     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
       
    13     Library General Public License for more details.
       
    14 
       
    15     You should have received a copy of the GNU Library General Public License
       
    16     along with this library; see the file COPYING.LIB.  If not, write to
       
    17     the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
       
    18     Boston, MA 02110-1301, USA.
       
    19 */
       
    20 
       
    21 #ifndef JSSVGPoint_h
       
    22 #define JSSVGPoint_h
       
    23 
       
    24 #if ENABLE(SVG)
       
    25 
       
    26 #include "FloatPoint.h"
       
    27 #include "JSDOMBinding.h"
       
    28 #include "JSSVGPODTypeWrapper.h"
       
    29 #include "SVGElement.h"
       
    30 #include <runtime/JSGlobalObject.h>
       
    31 #include <runtime/JSObjectWithGlobalObject.h>
       
    32 #include <runtime/ObjectPrototype.h>
       
    33 
       
    34 namespace WebCore {
       
    35 
       
    36 class JSSVGPoint : public DOMObjectWithGlobalPointer {
       
    37     typedef DOMObjectWithGlobalPointer Base;
       
    38 public:
       
    39     JSSVGPoint(NonNullPassRefPtr<JSC::Structure>, JSDOMGlobalObject*, PassRefPtr<JSSVGPODTypeWrapper<FloatPoint> >);
       
    40     virtual ~JSSVGPoint();
       
    41     static JSC::JSObject* createPrototype(JSC::ExecState*, JSC::JSGlobalObject*);
       
    42     virtual bool getOwnPropertySlot(JSC::ExecState*, const JSC::Identifier& propertyName, JSC::PropertySlot&);
       
    43     virtual bool getOwnPropertyDescriptor(JSC::ExecState*, const JSC::Identifier& propertyName, JSC::PropertyDescriptor&);
       
    44     virtual void put(JSC::ExecState*, const JSC::Identifier& propertyName, JSC::JSValue, JSC::PutPropertySlot&);
       
    45     virtual const JSC::ClassInfo* classInfo() const { return &s_info; }
       
    46     static const JSC::ClassInfo s_info;
       
    47 
       
    48     static PassRefPtr<JSC::Structure> createStructure(JSC::JSValue prototype)
       
    49     {
       
    50         return JSC::Structure::create(prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), AnonymousSlotCount);
       
    51     }
       
    52 
       
    53     static JSC::JSValue getConstructor(JSC::ExecState*, JSC::JSGlobalObject*);
       
    54     JSSVGPODTypeWrapper<FloatPoint> * impl() const { return m_impl.get(); }
       
    55 
       
    56 private:
       
    57     RefPtr<JSSVGPODTypeWrapper<FloatPoint> > m_impl;
       
    58 protected:
       
    59     static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | Base::StructureFlags;
       
    60 };
       
    61 
       
    62 JSC::JSValue toJS(JSC::ExecState*, JSDOMGlobalObject*, JSSVGPODTypeWrapper<FloatPoint>*, SVGElement*);
       
    63 FloatPoint toSVGPoint(JSC::JSValue);
       
    64 
       
    65 class JSSVGPointPrototype : public JSC::JSObjectWithGlobalObject {
       
    66     typedef JSC::JSObjectWithGlobalObject Base;
       
    67 public:
       
    68     static JSC::JSObject* self(JSC::ExecState*, JSC::JSGlobalObject*);
       
    69     virtual const JSC::ClassInfo* classInfo() const { return &s_info; }
       
    70     static const JSC::ClassInfo s_info;
       
    71     virtual bool getOwnPropertySlot(JSC::ExecState*, const JSC::Identifier&, JSC::PropertySlot&);
       
    72     virtual bool getOwnPropertyDescriptor(JSC::ExecState*, const JSC::Identifier&, JSC::PropertyDescriptor&);
       
    73     static PassRefPtr<JSC::Structure> createStructure(JSC::JSValue prototype)
       
    74     {
       
    75         return JSC::Structure::create(prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), AnonymousSlotCount);
       
    76     }
       
    77     JSSVGPointPrototype(JSC::JSGlobalObject* globalObject, NonNullPassRefPtr<JSC::Structure> structure) : JSC::JSObjectWithGlobalObject(globalObject, structure) { }
       
    78 protected:
       
    79     static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | Base::StructureFlags;
       
    80 };
       
    81 
       
    82 // Functions
       
    83 
       
    84 JSC::EncodedJSValue JSC_HOST_CALL jsSVGPointPrototypeFunctionMatrixTransform(JSC::ExecState*);
       
    85 // Attributes
       
    86 
       
    87 JSC::JSValue jsSVGPointX(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
       
    88 void setJSSVGPointX(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
       
    89 JSC::JSValue jsSVGPointY(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
       
    90 void setJSSVGPointY(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
       
    91 JSC::JSValue jsSVGPointConstructor(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
       
    92 
       
    93 } // namespace WebCore
       
    94 
       
    95 #endif // ENABLE(SVG)
       
    96 
       
    97 #endif