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

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