WebCore/generated/JSElement.h
changeset 0 4f2f89ce4247
equal deleted inserted replaced
-1:000000000000 0:4f2f89ce4247
       
     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 JSElement_h
       
    22 #define JSElement_h
       
    23 
       
    24 #include "Element.h"
       
    25 #include "JSNode.h"
       
    26 #include <runtime/JSObjectWithGlobalObject.h>
       
    27 #include <runtime/Lookup.h>
       
    28 #include <wtf/AlwaysInline.h>
       
    29 
       
    30 namespace WebCore {
       
    31 
       
    32 class Element;
       
    33 
       
    34 class JSElement : public JSNode {
       
    35     typedef JSNode Base;
       
    36 public:
       
    37     JSElement(NonNullPassRefPtr<JSC::Structure>, JSDOMGlobalObject*, PassRefPtr<Element>);
       
    38     static JSC::JSObject* createPrototype(JSC::ExecState*, JSC::JSGlobalObject*);
       
    39     virtual bool getOwnPropertySlot(JSC::ExecState*, const JSC::Identifier& propertyName, JSC::PropertySlot&);
       
    40     virtual bool getOwnPropertyDescriptor(JSC::ExecState*, const JSC::Identifier& propertyName, JSC::PropertyDescriptor&);
       
    41     virtual void put(JSC::ExecState*, const JSC::Identifier& propertyName, JSC::JSValue, JSC::PutPropertySlot&);
       
    42     virtual const JSC::ClassInfo* classInfo() const { return &s_info; }
       
    43     static const JSC::ClassInfo s_info;
       
    44 
       
    45     static PassRefPtr<JSC::Structure> createStructure(JSC::JSValue prototype)
       
    46     {
       
    47         return JSC::Structure::create(prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), AnonymousSlotCount);
       
    48     }
       
    49 
       
    50     virtual void markChildren(JSC::MarkStack&);
       
    51 
       
    52     static JSC::JSValue getConstructor(JSC::ExecState*, JSC::JSGlobalObject*);
       
    53     Element* impl() const
       
    54     {
       
    55         return static_cast<Element*>(Base::impl());
       
    56     }
       
    57 protected:
       
    58     static const unsigned StructureFlags = JSC::OverridesMarkChildren | JSC::OverridesGetOwnPropertySlot | Base::StructureFlags;
       
    59 };
       
    60 
       
    61 ALWAYS_INLINE bool JSElement::getOwnPropertySlot(JSC::ExecState* exec, const JSC::Identifier& propertyName, JSC::PropertySlot& slot)
       
    62 {
       
    63     return JSC::getStaticValueSlot<JSElement, Base>(exec, s_info.staticPropHashTable, this, propertyName, slot);
       
    64 }
       
    65 
       
    66 ALWAYS_INLINE bool JSElement::getOwnPropertyDescriptor(JSC::ExecState* exec, const JSC::Identifier& propertyName, JSC::PropertyDescriptor& descriptor)
       
    67 {
       
    68     return JSC::getStaticValueDescriptor<JSElement, Base>(exec, s_info.staticPropHashTable, this, propertyName, descriptor);
       
    69 }
       
    70 
       
    71 Element* toElement(JSC::JSValue);
       
    72 JSC::JSValue toJSNewlyCreated(JSC::ExecState*, JSDOMGlobalObject*, Element*);
       
    73 
       
    74 class JSElementPrototype : public JSC::JSObjectWithGlobalObject {
       
    75     typedef JSC::JSObjectWithGlobalObject Base;
       
    76 public:
       
    77     static JSC::JSObject* self(JSC::ExecState*, JSC::JSGlobalObject*);
       
    78     virtual const JSC::ClassInfo* classInfo() const { return &s_info; }
       
    79     static const JSC::ClassInfo s_info;
       
    80     virtual bool getOwnPropertySlot(JSC::ExecState*, const JSC::Identifier&, JSC::PropertySlot&);
       
    81     virtual bool getOwnPropertyDescriptor(JSC::ExecState*, const JSC::Identifier&, JSC::PropertyDescriptor&);
       
    82     static PassRefPtr<JSC::Structure> createStructure(JSC::JSValue prototype)
       
    83     {
       
    84         return JSC::Structure::create(prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), AnonymousSlotCount);
       
    85     }
       
    86     JSElementPrototype(JSC::JSGlobalObject* globalObject, NonNullPassRefPtr<JSC::Structure> structure) : JSC::JSObjectWithGlobalObject(globalObject, structure) { }
       
    87 protected:
       
    88     static const unsigned StructureFlags = JSC::OverridesMarkChildren | JSC::OverridesGetOwnPropertySlot | Base::StructureFlags;
       
    89 };
       
    90 
       
    91 // Functions
       
    92 
       
    93 JSC::EncodedJSValue JSC_HOST_CALL jsElementPrototypeFunctionGetAttribute(JSC::ExecState*);
       
    94 JSC::EncodedJSValue JSC_HOST_CALL jsElementPrototypeFunctionSetAttribute(JSC::ExecState*);
       
    95 JSC::EncodedJSValue JSC_HOST_CALL jsElementPrototypeFunctionRemoveAttribute(JSC::ExecState*);
       
    96 JSC::EncodedJSValue JSC_HOST_CALL jsElementPrototypeFunctionGetAttributeNode(JSC::ExecState*);
       
    97 JSC::EncodedJSValue JSC_HOST_CALL jsElementPrototypeFunctionSetAttributeNode(JSC::ExecState*);
       
    98 JSC::EncodedJSValue JSC_HOST_CALL jsElementPrototypeFunctionRemoveAttributeNode(JSC::ExecState*);
       
    99 JSC::EncodedJSValue JSC_HOST_CALL jsElementPrototypeFunctionGetElementsByTagName(JSC::ExecState*);
       
   100 JSC::EncodedJSValue JSC_HOST_CALL jsElementPrototypeFunctionGetAttributeNS(JSC::ExecState*);
       
   101 JSC::EncodedJSValue JSC_HOST_CALL jsElementPrototypeFunctionSetAttributeNS(JSC::ExecState*);
       
   102 JSC::EncodedJSValue JSC_HOST_CALL jsElementPrototypeFunctionRemoveAttributeNS(JSC::ExecState*);
       
   103 JSC::EncodedJSValue JSC_HOST_CALL jsElementPrototypeFunctionGetElementsByTagNameNS(JSC::ExecState*);
       
   104 JSC::EncodedJSValue JSC_HOST_CALL jsElementPrototypeFunctionGetAttributeNodeNS(JSC::ExecState*);
       
   105 JSC::EncodedJSValue JSC_HOST_CALL jsElementPrototypeFunctionSetAttributeNodeNS(JSC::ExecState*);
       
   106 JSC::EncodedJSValue JSC_HOST_CALL jsElementPrototypeFunctionHasAttribute(JSC::ExecState*);
       
   107 JSC::EncodedJSValue JSC_HOST_CALL jsElementPrototypeFunctionHasAttributeNS(JSC::ExecState*);
       
   108 JSC::EncodedJSValue JSC_HOST_CALL jsElementPrototypeFunctionFocus(JSC::ExecState*);
       
   109 JSC::EncodedJSValue JSC_HOST_CALL jsElementPrototypeFunctionBlur(JSC::ExecState*);
       
   110 JSC::EncodedJSValue JSC_HOST_CALL jsElementPrototypeFunctionScrollIntoView(JSC::ExecState*);
       
   111 JSC::EncodedJSValue JSC_HOST_CALL jsElementPrototypeFunctionContains(JSC::ExecState*);
       
   112 JSC::EncodedJSValue JSC_HOST_CALL jsElementPrototypeFunctionScrollIntoViewIfNeeded(JSC::ExecState*);
       
   113 JSC::EncodedJSValue JSC_HOST_CALL jsElementPrototypeFunctionScrollByLines(JSC::ExecState*);
       
   114 JSC::EncodedJSValue JSC_HOST_CALL jsElementPrototypeFunctionScrollByPages(JSC::ExecState*);
       
   115 JSC::EncodedJSValue JSC_HOST_CALL jsElementPrototypeFunctionGetElementsByClassName(JSC::ExecState*);
       
   116 JSC::EncodedJSValue JSC_HOST_CALL jsElementPrototypeFunctionQuerySelector(JSC::ExecState*);
       
   117 JSC::EncodedJSValue JSC_HOST_CALL jsElementPrototypeFunctionQuerySelectorAll(JSC::ExecState*);
       
   118 JSC::EncodedJSValue JSC_HOST_CALL jsElementPrototypeFunctionWebkitMatchesSelector(JSC::ExecState*);
       
   119 JSC::EncodedJSValue JSC_HOST_CALL jsElementPrototypeFunctionGetClientRects(JSC::ExecState*);
       
   120 JSC::EncodedJSValue JSC_HOST_CALL jsElementPrototypeFunctionGetBoundingClientRect(JSC::ExecState*);
       
   121 // Attributes
       
   122 
       
   123 JSC::JSValue jsElementTagName(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
       
   124 JSC::JSValue jsElementStyle(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
       
   125 JSC::JSValue jsElementOffsetLeft(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
       
   126 JSC::JSValue jsElementOffsetTop(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
       
   127 JSC::JSValue jsElementOffsetWidth(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
       
   128 JSC::JSValue jsElementOffsetHeight(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
       
   129 JSC::JSValue jsElementOffsetParent(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
       
   130 JSC::JSValue jsElementClientLeft(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
       
   131 JSC::JSValue jsElementClientTop(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
       
   132 JSC::JSValue jsElementClientWidth(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
       
   133 JSC::JSValue jsElementClientHeight(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
       
   134 JSC::JSValue jsElementScrollLeft(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
       
   135 void setJSElementScrollLeft(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
       
   136 JSC::JSValue jsElementScrollTop(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
       
   137 void setJSElementScrollTop(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
       
   138 JSC::JSValue jsElementScrollWidth(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
       
   139 JSC::JSValue jsElementScrollHeight(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
       
   140 JSC::JSValue jsElementDataset(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
       
   141 JSC::JSValue jsElementFirstElementChild(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
       
   142 JSC::JSValue jsElementLastElementChild(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
       
   143 JSC::JSValue jsElementPreviousElementSibling(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
       
   144 JSC::JSValue jsElementNextElementSibling(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
       
   145 JSC::JSValue jsElementChildElementCount(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
       
   146 JSC::JSValue jsElementOnabort(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
       
   147 void setJSElementOnabort(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
       
   148 JSC::JSValue jsElementOnblur(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
       
   149 void setJSElementOnblur(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
       
   150 JSC::JSValue jsElementOnchange(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
       
   151 void setJSElementOnchange(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
       
   152 JSC::JSValue jsElementOnclick(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
       
   153 void setJSElementOnclick(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
       
   154 JSC::JSValue jsElementOncontextmenu(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
       
   155 void setJSElementOncontextmenu(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
       
   156 JSC::JSValue jsElementOndblclick(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
       
   157 void setJSElementOndblclick(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
       
   158 JSC::JSValue jsElementOndrag(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
       
   159 void setJSElementOndrag(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
       
   160 JSC::JSValue jsElementOndragend(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
       
   161 void setJSElementOndragend(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
       
   162 JSC::JSValue jsElementOndragenter(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
       
   163 void setJSElementOndragenter(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
       
   164 JSC::JSValue jsElementOndragleave(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
       
   165 void setJSElementOndragleave(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
       
   166 JSC::JSValue jsElementOndragover(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
       
   167 void setJSElementOndragover(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
       
   168 JSC::JSValue jsElementOndragstart(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
       
   169 void setJSElementOndragstart(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
       
   170 JSC::JSValue jsElementOndrop(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
       
   171 void setJSElementOndrop(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
       
   172 JSC::JSValue jsElementOnerror(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
       
   173 void setJSElementOnerror(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
       
   174 JSC::JSValue jsElementOnfocus(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
       
   175 void setJSElementOnfocus(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
       
   176 JSC::JSValue jsElementOninput(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
       
   177 void setJSElementOninput(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
       
   178 JSC::JSValue jsElementOninvalid(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
       
   179 void setJSElementOninvalid(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
       
   180 JSC::JSValue jsElementOnkeydown(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
       
   181 void setJSElementOnkeydown(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
       
   182 JSC::JSValue jsElementOnkeypress(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
       
   183 void setJSElementOnkeypress(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
       
   184 JSC::JSValue jsElementOnkeyup(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
       
   185 void setJSElementOnkeyup(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
       
   186 JSC::JSValue jsElementOnload(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
       
   187 void setJSElementOnload(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
       
   188 JSC::JSValue jsElementOnmousedown(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
       
   189 void setJSElementOnmousedown(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
       
   190 JSC::JSValue jsElementOnmousemove(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
       
   191 void setJSElementOnmousemove(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
       
   192 JSC::JSValue jsElementOnmouseout(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
       
   193 void setJSElementOnmouseout(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
       
   194 JSC::JSValue jsElementOnmouseover(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
       
   195 void setJSElementOnmouseover(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
       
   196 JSC::JSValue jsElementOnmouseup(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
       
   197 void setJSElementOnmouseup(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
       
   198 JSC::JSValue jsElementOnmousewheel(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
       
   199 void setJSElementOnmousewheel(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
       
   200 JSC::JSValue jsElementOnscroll(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
       
   201 void setJSElementOnscroll(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
       
   202 JSC::JSValue jsElementOnselect(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
       
   203 void setJSElementOnselect(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
       
   204 JSC::JSValue jsElementOnsubmit(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
       
   205 void setJSElementOnsubmit(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
       
   206 JSC::JSValue jsElementOnbeforecut(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
       
   207 void setJSElementOnbeforecut(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
       
   208 JSC::JSValue jsElementOncut(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
       
   209 void setJSElementOncut(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
       
   210 JSC::JSValue jsElementOnbeforecopy(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
       
   211 void setJSElementOnbeforecopy(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
       
   212 JSC::JSValue jsElementOncopy(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
       
   213 void setJSElementOncopy(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
       
   214 JSC::JSValue jsElementOnbeforepaste(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
       
   215 void setJSElementOnbeforepaste(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
       
   216 JSC::JSValue jsElementOnpaste(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
       
   217 void setJSElementOnpaste(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
       
   218 JSC::JSValue jsElementOnreset(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
       
   219 void setJSElementOnreset(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
       
   220 JSC::JSValue jsElementOnsearch(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
       
   221 void setJSElementOnsearch(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
       
   222 JSC::JSValue jsElementOnselectstart(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
       
   223 void setJSElementOnselectstart(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
       
   224 JSC::JSValue jsElementOntouchstart(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
       
   225 void setJSElementOntouchstart(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
       
   226 JSC::JSValue jsElementOntouchmove(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
       
   227 void setJSElementOntouchmove(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
       
   228 JSC::JSValue jsElementOntouchend(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
       
   229 void setJSElementOntouchend(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
       
   230 JSC::JSValue jsElementOntouchcancel(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
       
   231 void setJSElementOntouchcancel(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
       
   232 JSC::JSValue jsElementOntransformactionstart(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
       
   233 void setJSElementOntransformactionstart(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
       
   234 JSC::JSValue jsElementOntransformactionupdate(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
       
   235 void setJSElementOntransformactionupdate(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
       
   236 JSC::JSValue jsElementOntransformactionend(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
       
   237 void setJSElementOntransformactionend(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
       
   238 JSC::JSValue jsElementConstructor(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
       
   239 
       
   240 } // namespace WebCore
       
   241 
       
   242 #endif