/src/3rdparty/webkit/Source/WebCore/generated/JSSVGAnimatedNumber.h

https://bitbucket.org/ultra_iter/qt-vtl · C Header · 87 lines · 52 code · 15 blank · 20 comment · 0 complexity · 3b8f8a2bff86c393a09079abb893adc0 MD5 · raw file

  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. This library is free software; you can redistribute it and/or
  5. modify it under the terms of the GNU Library General Public
  6. License as published by the Free Software Foundation; either
  7. version 2 of the License, or (at your option) any later version.
  8. This library is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  11. Library General Public License for more details.
  12. You should have received a copy of the GNU Library General Public License
  13. along with this library; see the file COPYING.LIB. If not, write to
  14. the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
  15. Boston, MA 02110-1301, USA.
  16. */
  17. #ifndef JSSVGAnimatedNumber_h
  18. #define JSSVGAnimatedNumber_h
  19. #if ENABLE(SVG)
  20. #include "JSDOMBinding.h"
  21. #include "SVGAnimatedNumber.h"
  22. #include "SVGElement.h"
  23. #include <runtime/JSGlobalObject.h>
  24. #include <runtime/JSObjectWithGlobalObject.h>
  25. #include <runtime/ObjectPrototype.h>
  26. namespace WebCore {
  27. class JSSVGAnimatedNumber : public JSDOMWrapper {
  28. typedef JSDOMWrapper Base;
  29. public:
  30. JSSVGAnimatedNumber(JSC::Structure*, JSDOMGlobalObject*, PassRefPtr<SVGAnimatedNumber>);
  31. static JSC::JSObject* createPrototype(JSC::ExecState*, JSC::JSGlobalObject*);
  32. virtual bool getOwnPropertySlot(JSC::ExecState*, const JSC::Identifier& propertyName, JSC::PropertySlot&);
  33. virtual bool getOwnPropertyDescriptor(JSC::ExecState*, const JSC::Identifier& propertyName, JSC::PropertyDescriptor&);
  34. virtual void put(JSC::ExecState*, const JSC::Identifier& propertyName, JSC::JSValue, JSC::PutPropertySlot&);
  35. static const JSC::ClassInfo s_info;
  36. static JSC::Structure* createStructure(JSC::JSGlobalData& globalData, JSC::JSValue prototype)
  37. {
  38. return JSC::Structure::create(globalData, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), AnonymousSlotCount, &s_info);
  39. }
  40. static JSC::JSValue getConstructor(JSC::ExecState*, JSC::JSGlobalObject*);
  41. SVGAnimatedNumber* impl() const { return m_impl.get(); }
  42. private:
  43. RefPtr<SVGAnimatedNumber> m_impl;
  44. protected:
  45. static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | Base::StructureFlags;
  46. };
  47. JSC::JSValue toJS(JSC::ExecState*, JSDOMGlobalObject*, SVGAnimatedNumber*);
  48. SVGAnimatedNumber* toSVGAnimatedNumber(JSC::JSValue);
  49. class JSSVGAnimatedNumberPrototype : public JSC::JSObjectWithGlobalObject {
  50. typedef JSC::JSObjectWithGlobalObject Base;
  51. public:
  52. static JSC::JSObject* self(JSC::ExecState*, JSC::JSGlobalObject*);
  53. static const JSC::ClassInfo s_info;
  54. static JSC::Structure* createStructure(JSC::JSGlobalData& globalData, JSC::JSValue prototype)
  55. {
  56. return JSC::Structure::create(globalData, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), AnonymousSlotCount, &s_info);
  57. }
  58. JSSVGAnimatedNumberPrototype(JSC::JSGlobalData& globalData, JSC::JSGlobalObject* globalObject, JSC::Structure* structure) : JSC::JSObjectWithGlobalObject(globalData, globalObject, structure) { }
  59. protected:
  60. static const unsigned StructureFlags = Base::StructureFlags;
  61. };
  62. // Attributes
  63. JSC::JSValue jsSVGAnimatedNumberBaseVal(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
  64. void setJSSVGAnimatedNumberBaseVal(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
  65. JSC::JSValue jsSVGAnimatedNumberAnimVal(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
  66. JSC::JSValue jsSVGAnimatedNumberConstructor(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
  67. } // namespace WebCore
  68. #endif // ENABLE(SVG)
  69. #endif