WebCore/generated/JSHTMLAllCollection.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 JSHTMLAllCollection_h
       
    22 #define JSHTMLAllCollection_h
       
    23 
       
    24 #include "JSDOMBinding.h"
       
    25 #include <runtime/CallData.h>
       
    26 #include <runtime/JSGlobalObject.h>
       
    27 #include <runtime/JSObjectWithGlobalObject.h>
       
    28 #include <runtime/ObjectPrototype.h>
       
    29 
       
    30 namespace WebCore {
       
    31 
       
    32 class HTMLAllCollection;
       
    33 
       
    34 class JSHTMLAllCollection : public DOMObjectWithGlobalPointer {
       
    35     typedef DOMObjectWithGlobalPointer Base;
       
    36 public:
       
    37     JSHTMLAllCollection(NonNullPassRefPtr<JSC::Structure>, JSDOMGlobalObject*, PassRefPtr<HTMLAllCollection>);
       
    38     virtual ~JSHTMLAllCollection();
       
    39     static JSC::JSObject* createPrototype(JSC::ExecState*, JSC::JSGlobalObject*);
       
    40     virtual bool getOwnPropertySlot(JSC::ExecState*, const JSC::Identifier& propertyName, JSC::PropertySlot&);
       
    41     virtual bool getOwnPropertyDescriptor(JSC::ExecState*, const JSC::Identifier& propertyName, JSC::PropertyDescriptor&);
       
    42     virtual bool getOwnPropertySlot(JSC::ExecState*, unsigned propertyName, JSC::PropertySlot&);
       
    43     virtual const JSC::ClassInfo* classInfo() const { return &s_info; }
       
    44     static const JSC::ClassInfo s_info;
       
    45 
       
    46     static PassRefPtr<JSC::Structure> createStructure(JSC::JSValue prototype)
       
    47     {
       
    48         return JSC::Structure::create(prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), AnonymousSlotCount);
       
    49     }
       
    50 
       
    51     virtual JSC::CallType getCallData(JSC::CallData&);
       
    52 
       
    53     virtual void getOwnPropertyNames(JSC::ExecState*, JSC::PropertyNameArray&, JSC::EnumerationMode mode = JSC::ExcludeDontEnumProperties);
       
    54     virtual bool toBoolean(JSC::ExecState*) const { return false; };
       
    55     static JSC::JSValue getConstructor(JSC::ExecState*, JSC::JSGlobalObject*);
       
    56 
       
    57     // Custom functions
       
    58     JSC::JSValue item(JSC::ExecState*);
       
    59     JSC::JSValue namedItem(JSC::ExecState*);
       
    60     HTMLAllCollection* impl() const { return m_impl.get(); }
       
    61 
       
    62 private:
       
    63     RefPtr<HTMLAllCollection> m_impl;
       
    64 protected:
       
    65     static const unsigned StructureFlags = JSC::OverridesGetPropertyNames | JSC::OverridesGetOwnPropertySlot | JSC::MasqueradesAsUndefined | Base::StructureFlags;
       
    66     static JSC::JSValue indexGetter(JSC::ExecState*, JSC::JSValue, unsigned);
       
    67 private:
       
    68     static bool canGetItemsForName(JSC::ExecState*, HTMLAllCollection*, const JSC::Identifier&);
       
    69     static JSC::JSValue nameGetter(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
       
    70 };
       
    71 
       
    72 JSC::JSValue toJS(JSC::ExecState*, JSDOMGlobalObject*, HTMLAllCollection*);
       
    73 HTMLAllCollection* toHTMLAllCollection(JSC::JSValue);
       
    74 
       
    75 class JSHTMLAllCollectionPrototype : public JSC::JSObjectWithGlobalObject {
       
    76     typedef JSC::JSObjectWithGlobalObject Base;
       
    77 public:
       
    78     static JSC::JSObject* self(JSC::ExecState*, JSC::JSGlobalObject*);
       
    79     virtual const JSC::ClassInfo* classInfo() const { return &s_info; }
       
    80     static const JSC::ClassInfo s_info;
       
    81     virtual bool getOwnPropertySlot(JSC::ExecState*, const JSC::Identifier&, JSC::PropertySlot&);
       
    82     virtual bool getOwnPropertyDescriptor(JSC::ExecState*, const JSC::Identifier&, JSC::PropertyDescriptor&);
       
    83     static PassRefPtr<JSC::Structure> createStructure(JSC::JSValue prototype)
       
    84     {
       
    85         return JSC::Structure::create(prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), AnonymousSlotCount);
       
    86     }
       
    87     JSHTMLAllCollectionPrototype(JSC::JSGlobalObject* globalObject, NonNullPassRefPtr<JSC::Structure> structure) : JSC::JSObjectWithGlobalObject(globalObject, structure) { }
       
    88 protected:
       
    89     static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | Base::StructureFlags;
       
    90 };
       
    91 
       
    92 // Functions
       
    93 
       
    94 JSC::EncodedJSValue JSC_HOST_CALL jsHTMLAllCollectionPrototypeFunctionItem(JSC::ExecState*);
       
    95 JSC::EncodedJSValue JSC_HOST_CALL jsHTMLAllCollectionPrototypeFunctionNamedItem(JSC::ExecState*);
       
    96 JSC::EncodedJSValue JSC_HOST_CALL jsHTMLAllCollectionPrototypeFunctionTags(JSC::ExecState*);
       
    97 // Attributes
       
    98 
       
    99 JSC::JSValue jsHTMLAllCollectionLength(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
       
   100 JSC::JSValue jsHTMLAllCollectionConstructor(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
       
   101 
       
   102 } // namespace WebCore
       
   103 
       
   104 #endif