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

https://bitbucket.org/ultra_iter/qt-vtl · C Header · 82 lines · 45 code · 16 blank · 21 comment · 0 complexity · f3e4102b6b241da25fb805a4b85ef98b 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 JSSVGDocument_h
  18. #define JSSVGDocument_h
  19. #if ENABLE(SVG)
  20. #include "JSDocument.h"
  21. #include "SVGElement.h"
  22. #include <runtime/JSObjectWithGlobalObject.h>
  23. namespace WebCore {
  24. class SVGDocument;
  25. class JSSVGDocument : public JSDocument {
  26. typedef JSDocument Base;
  27. public:
  28. JSSVGDocument(JSC::Structure*, JSDOMGlobalObject*, PassRefPtr<SVGDocument>);
  29. static JSC::JSObject* createPrototype(JSC::ExecState*, JSC::JSGlobalObject*);
  30. virtual bool getOwnPropertySlot(JSC::ExecState*, const JSC::Identifier& propertyName, JSC::PropertySlot&);
  31. virtual bool getOwnPropertyDescriptor(JSC::ExecState*, const JSC::Identifier& propertyName, JSC::PropertyDescriptor&);
  32. static const JSC::ClassInfo s_info;
  33. static JSC::Structure* createStructure(JSC::JSGlobalData& globalData, JSC::JSValue prototype)
  34. {
  35. return JSC::Structure::create(globalData, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), AnonymousSlotCount, &s_info);
  36. }
  37. static JSC::JSValue getConstructor(JSC::ExecState*, JSC::JSGlobalObject*);
  38. protected:
  39. static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | Base::StructureFlags;
  40. };
  41. class JSSVGDocumentPrototype : public JSC::JSObjectWithGlobalObject {
  42. typedef JSC::JSObjectWithGlobalObject Base;
  43. public:
  44. static JSC::JSObject* self(JSC::ExecState*, JSC::JSGlobalObject*);
  45. static const JSC::ClassInfo s_info;
  46. virtual bool getOwnPropertySlot(JSC::ExecState*, const JSC::Identifier&, JSC::PropertySlot&);
  47. virtual bool getOwnPropertyDescriptor(JSC::ExecState*, const JSC::Identifier&, JSC::PropertyDescriptor&);
  48. static JSC::Structure* createStructure(JSC::JSGlobalData& globalData, JSC::JSValue prototype)
  49. {
  50. return JSC::Structure::create(globalData, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), AnonymousSlotCount, &s_info);
  51. }
  52. JSSVGDocumentPrototype(JSC::JSGlobalData& globalData, JSC::JSGlobalObject* globalObject, JSC::Structure* structure) : JSC::JSObjectWithGlobalObject(globalData, globalObject, structure) { }
  53. protected:
  54. static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | Base::StructureFlags;
  55. };
  56. // Functions
  57. JSC::EncodedJSValue JSC_HOST_CALL jsSVGDocumentPrototypeFunctionCreateEvent(JSC::ExecState*);
  58. // Attributes
  59. JSC::JSValue jsSVGDocumentRootElement(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
  60. JSC::JSValue jsSVGDocumentConstructor(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
  61. } // namespace WebCore
  62. #endif // ENABLE(SVG)
  63. #endif