webengine/osswebengine/DerivedSources/WebCore/JSSVGAnimatedInteger.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 JSSVGAnimatedInteger_H
       
    22 #define JSSVGAnimatedInteger_H
       
    23 
       
    24 
       
    25 #if ENABLE(SVG)
       
    26 
       
    27 #include "kjs_binding.h"
       
    28 
       
    29 namespace WebCore {
       
    30 
       
    31 class JSSVGAnimatedInteger : public KJS::DOMObject {
       
    32 public:
       
    33     JSSVGAnimatedInteger(KJS::ExecState*, SVGAnimatedInteger*);
       
    34     virtual ~JSSVGAnimatedInteger();
       
    35     virtual bool getOwnPropertySlot(KJS::ExecState*, const KJS::Identifier&, KJS::PropertySlot&);
       
    36     KJS::JSValue* getValueProperty(KJS::ExecState*, int token) const;
       
    37     virtual void put(KJS::ExecState*, const KJS::Identifier&, KJS::JSValue*, int attr = KJS::None);
       
    38     void putValueProperty(KJS::ExecState*, int, KJS::JSValue*, int attr);
       
    39     virtual const KJS::ClassInfo* classInfo() const { return &info; }
       
    40     static const KJS::ClassInfo info;
       
    41 
       
    42     enum {
       
    43         // Attributes
       
    44         BaseValAttrNum, AnimValAttrNum
       
    45     };
       
    46     SVGAnimatedInteger* impl() const { return m_impl.get(); }
       
    47 private:
       
    48     RefPtr<SVGAnimatedInteger> m_impl;
       
    49 };
       
    50 
       
    51 KJS::JSValue* toJS(KJS::ExecState*, SVGAnimatedInteger*);
       
    52 SVGAnimatedInteger* toSVGAnimatedInteger(KJS::JSValue*);
       
    53 
       
    54 class JSSVGAnimatedIntegerPrototype : public KJS::JSObject {
       
    55 public:
       
    56     static KJS::JSObject* self(KJS::ExecState* exec);
       
    57     virtual const KJS::ClassInfo* classInfo() const { return &info; }
       
    58     static const KJS::ClassInfo info;
       
    59     JSSVGAnimatedIntegerPrototype(KJS::ExecState* exec)
       
    60         : KJS::JSObject(exec->lexicalInterpreter()->builtinObjectPrototype()) { }
       
    61 };
       
    62 
       
    63 } // namespace WebCore
       
    64 
       
    65 #endif // ENABLE(SVG)
       
    66 
       
    67 #endif