webengine/osswebengine/DerivedSources/WebCore/JSSVGDefsElement.h
changeset 0 dd21522fd290
equal deleted inserted replaced
-1:000000000000 0:dd21522fd290
       
     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 JSSVGDefsElement_H
       
    22 #define JSSVGDefsElement_H
       
    23 
       
    24 
       
    25 #if ENABLE(SVG)
       
    26 
       
    27 #include "JSSVGElement.h"
       
    28 
       
    29 namespace WebCore {
       
    30 
       
    31 class SVGDefsElement;
       
    32 
       
    33 class JSSVGDefsElement : public JSSVGElement {
       
    34 public:
       
    35     JSSVGDefsElement(KJS::ExecState*, SVGDefsElement*);
       
    36     virtual bool getOwnPropertySlot(KJS::ExecState*, const KJS::Identifier&, KJS::PropertySlot&);
       
    37     KJS::JSValue* getValueProperty(KJS::ExecState*, int token) const;
       
    38     virtual void put(KJS::ExecState*, const KJS::Identifier&, KJS::JSValue*, int attr = KJS::None);
       
    39     void putValueProperty(KJS::ExecState*, int, KJS::JSValue*, int attr);
       
    40     virtual const KJS::ClassInfo* classInfo() const { return &info; }
       
    41     static const KJS::ClassInfo info;
       
    42 
       
    43     enum {
       
    44         // Attributes
       
    45         RequiredFeaturesAttrNum, RequiredExtensionsAttrNum, SystemLanguageAttrNum, XmllangAttrNum, 
       
    46         XmlspaceAttrNum, ExternalResourcesRequiredAttrNum, ClassNameAttrNum, StyleAttrNum, 
       
    47         TransformAttrNum, NearestViewportElementAttrNum, FarthestViewportElementAttrNum, 
       
    48 
       
    49         // Functions
       
    50         HasExtensionFuncNum, GetBBoxFuncNum, GetCTMFuncNum, GetScreenCTMFuncNum, 
       
    51         GetTransformToElementFuncNum
       
    52     };
       
    53 };
       
    54 
       
    55 
       
    56 class JSSVGDefsElementPrototype : public KJS::JSObject {
       
    57 public:
       
    58     static KJS::JSObject* self(KJS::ExecState* exec);
       
    59     virtual const KJS::ClassInfo* classInfo() const { return &info; }
       
    60     static const KJS::ClassInfo info;
       
    61     bool getOwnPropertySlot(KJS::ExecState*, const KJS::Identifier&, KJS::PropertySlot&);
       
    62     JSSVGDefsElementPrototype(KJS::ExecState* exec)
       
    63         : KJS::JSObject(JSSVGElementPrototype::self(exec)) { }
       
    64 };
       
    65 
       
    66 class JSSVGDefsElementPrototypeFunction : public KJS::InternalFunctionImp {
       
    67 public:
       
    68     JSSVGDefsElementPrototypeFunction(KJS::ExecState* exec, int i, int len, const KJS::Identifier& name)
       
    69         : KJS::InternalFunctionImp(static_cast<KJS::FunctionPrototype*>(exec->lexicalInterpreter()->builtinFunctionPrototype()), name)
       
    70         , id(i)
       
    71     {
       
    72         put(exec, exec->propertyNames().length, KJS::jsNumber(len), KJS::DontDelete|KJS::ReadOnly|KJS::DontEnum);
       
    73     }
       
    74     virtual KJS::JSValue* callAsFunction(KJS::ExecState*, KJS::JSObject*, const KJS::List&);
       
    75 
       
    76 private:
       
    77     int id;
       
    78 };
       
    79 
       
    80 } // namespace WebCore
       
    81 
       
    82 #endif // ENABLE(SVG)
       
    83 
       
    84 #endif