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

https://bitbucket.org/ultra_iter/qt-vtl · C Header · 109 lines · 70 code · 18 blank · 21 comment · 0 complexity · 9cb0c68db6a5629127f51b2ddbe7da8f 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 JSDOMPluginArray_h
  18. #define JSDOMPluginArray_h
  19. #include "JSDOMBinding.h"
  20. #include <runtime/JSGlobalObject.h>
  21. #include <runtime/JSObjectWithGlobalObject.h>
  22. #include <runtime/ObjectPrototype.h>
  23. namespace WebCore {
  24. class DOMPluginArray;
  25. class JSDOMPluginArray : public JSDOMWrapper {
  26. typedef JSDOMWrapper Base;
  27. public:
  28. JSDOMPluginArray(JSC::Structure*, JSDOMGlobalObject*, PassRefPtr<DOMPluginArray>);
  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. virtual bool getOwnPropertySlot(JSC::ExecState*, unsigned propertyName, JSC::PropertySlot&);
  33. static const JSC::ClassInfo s_info;
  34. static JSC::Structure* createStructure(JSC::JSGlobalData& globalData, JSC::JSValue prototype)
  35. {
  36. return JSC::Structure::create(globalData, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), AnonymousSlotCount, &s_info);
  37. }
  38. virtual void getOwnPropertyNames(JSC::ExecState*, JSC::PropertyNameArray&, JSC::EnumerationMode mode = JSC::ExcludeDontEnumProperties);
  39. static JSC::JSValue getConstructor(JSC::ExecState*, JSC::JSGlobalObject*);
  40. DOMPluginArray* impl() const { return m_impl.get(); }
  41. private:
  42. RefPtr<DOMPluginArray> m_impl;
  43. protected:
  44. static const unsigned StructureFlags = JSC::OverridesGetPropertyNames | JSC::OverridesGetOwnPropertySlot | Base::StructureFlags;
  45. static JSC::JSValue indexGetter(JSC::ExecState*, JSC::JSValue, unsigned);
  46. private:
  47. static bool canGetItemsForName(JSC::ExecState*, DOMPluginArray*, const JSC::Identifier&);
  48. static JSC::JSValue nameGetter(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
  49. };
  50. class JSDOMPluginArrayOwner : public JSC::WeakHandleOwner {
  51. virtual bool isReachableFromOpaqueRoots(JSC::Handle<JSC::Unknown>, void* context, JSC::SlotVisitor&);
  52. virtual void finalize(JSC::Handle<JSC::Unknown>, void* context);
  53. };
  54. inline JSC::WeakHandleOwner* wrapperOwner(DOMWrapperWorld*, DOMPluginArray*)
  55. {
  56. DEFINE_STATIC_LOCAL(JSDOMPluginArrayOwner, jsDOMPluginArrayOwner, ());
  57. return &jsDOMPluginArrayOwner;
  58. }
  59. inline void* wrapperContext(DOMWrapperWorld* world, DOMPluginArray*)
  60. {
  61. return world;
  62. }
  63. JSC::JSValue toJS(JSC::ExecState*, JSDOMGlobalObject*, DOMPluginArray*);
  64. DOMPluginArray* toDOMPluginArray(JSC::JSValue);
  65. class JSDOMPluginArrayPrototype : public JSC::JSObjectWithGlobalObject {
  66. typedef JSC::JSObjectWithGlobalObject Base;
  67. public:
  68. static JSC::JSObject* self(JSC::ExecState*, JSC::JSGlobalObject*);
  69. static const JSC::ClassInfo s_info;
  70. virtual bool getOwnPropertySlot(JSC::ExecState*, const JSC::Identifier&, JSC::PropertySlot&);
  71. virtual bool getOwnPropertyDescriptor(JSC::ExecState*, const JSC::Identifier&, JSC::PropertyDescriptor&);
  72. static JSC::Structure* createStructure(JSC::JSGlobalData& globalData, JSC::JSValue prototype)
  73. {
  74. return JSC::Structure::create(globalData, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), AnonymousSlotCount, &s_info);
  75. }
  76. JSDOMPluginArrayPrototype(JSC::JSGlobalData& globalData, JSC::JSGlobalObject* globalObject, JSC::Structure* structure) : JSC::JSObjectWithGlobalObject(globalData, globalObject, structure) { }
  77. protected:
  78. static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | Base::StructureFlags;
  79. };
  80. // Functions
  81. JSC::EncodedJSValue JSC_HOST_CALL jsDOMPluginArrayPrototypeFunctionItem(JSC::ExecState*);
  82. JSC::EncodedJSValue JSC_HOST_CALL jsDOMPluginArrayPrototypeFunctionNamedItem(JSC::ExecState*);
  83. JSC::EncodedJSValue JSC_HOST_CALL jsDOMPluginArrayPrototypeFunctionRefresh(JSC::ExecState*);
  84. // Attributes
  85. JSC::JSValue jsDOMPluginArrayLength(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
  86. JSC::JSValue jsDOMPluginArrayConstructor(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
  87. } // namespace WebCore
  88. #endif