webengine/osswebengine/DerivedSources/WebCore/JSSVGNumberList.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 JSSVGNumberList_H
       
    22 #define JSSVGNumberList_H
       
    23 
       
    24 
       
    25 #if ENABLE(SVG)
       
    26 
       
    27 #include "kjs_binding.h"
       
    28 
       
    29 namespace WebCore {
       
    30 
       
    31 class SVGNumberList;
       
    32 
       
    33 class JSSVGNumberList : public KJS::DOMObject {
       
    34 public:
       
    35     JSSVGNumberList(KJS::ExecState*, SVGNumberList*);
       
    36     virtual ~JSSVGNumberList();
       
    37     virtual bool getOwnPropertySlot(KJS::ExecState*, const KJS::Identifier&, KJS::PropertySlot&);
       
    38     KJS::JSValue* getValueProperty(KJS::ExecState*, int token) const;
       
    39     virtual const KJS::ClassInfo* classInfo() const { return &info; }
       
    40     static const KJS::ClassInfo info;
       
    41 
       
    42     enum {
       
    43         // Attributes
       
    44         NumberOfItemsAttrNum, 
       
    45 
       
    46         // Functions
       
    47         ClearFuncNum, InitializeFuncNum, GetItemFuncNum, InsertItemBeforeFuncNum, 
       
    48         ReplaceItemFuncNum, RemoveItemFuncNum, AppendItemFuncNum
       
    49     };
       
    50     SVGNumberList* impl() const { return m_impl.get(); }
       
    51 private:
       
    52     RefPtr<SVGNumberList> m_impl;
       
    53 };
       
    54 
       
    55 KJS::JSValue* toJS(KJS::ExecState*, SVGNumberList*);
       
    56 SVGNumberList* toSVGNumberList(KJS::JSValue*);
       
    57 
       
    58 class JSSVGNumberListPrototype : public KJS::JSObject {
       
    59 public:
       
    60     static KJS::JSObject* self(KJS::ExecState* exec);
       
    61     virtual const KJS::ClassInfo* classInfo() const { return &info; }
       
    62     static const KJS::ClassInfo info;
       
    63     bool getOwnPropertySlot(KJS::ExecState*, const KJS::Identifier&, KJS::PropertySlot&);
       
    64     JSSVGNumberListPrototype(KJS::ExecState* exec)
       
    65         : KJS::JSObject(exec->lexicalInterpreter()->builtinObjectPrototype()) { }
       
    66 };
       
    67 
       
    68 class JSSVGNumberListPrototypeFunction : public KJS::InternalFunctionImp {
       
    69 public:
       
    70     JSSVGNumberListPrototypeFunction(KJS::ExecState* exec, int i, int len, const KJS::Identifier& name)
       
    71         : KJS::InternalFunctionImp(static_cast<KJS::FunctionPrototype*>(exec->lexicalInterpreter()->builtinFunctionPrototype()), name)
       
    72         , id(i)
       
    73     {
       
    74         put(exec, exec->propertyNames().length, KJS::jsNumber(len), KJS::DontDelete|KJS::ReadOnly|KJS::DontEnum);
       
    75     }
       
    76     virtual KJS::JSValue* callAsFunction(KJS::ExecState*, KJS::JSObject*, const KJS::List&);
       
    77 
       
    78 private:
       
    79     int id;
       
    80 };
       
    81 
       
    82 } // namespace WebCore
       
    83 
       
    84 #endif // ENABLE(SVG)
       
    85 
       
    86 #endif