WebCore/generated/JSHTMLOptionsCollection.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 JSHTMLOptionsCollection_h
       
    22 #define JSHTMLOptionsCollection_h
       
    23 
       
    24 #include "HTMLOptionsCollection.h"
       
    25 #include "JSHTMLCollection.h"
       
    26 #include <runtime/JSObjectWithGlobalObject.h>
       
    27 
       
    28 namespace WebCore {
       
    29 
       
    30 class HTMLOptionsCollection;
       
    31 
       
    32 class JSHTMLOptionsCollection : public JSHTMLCollection {
       
    33     typedef JSHTMLCollection Base;
       
    34 public:
       
    35     JSHTMLOptionsCollection(NonNullPassRefPtr<JSC::Structure>, JSDOMGlobalObject*, PassRefPtr<HTMLOptionsCollection>);
       
    36     static JSC::JSObject* createPrototype(JSC::ExecState*, JSC::JSGlobalObject*);
       
    37     virtual bool getOwnPropertySlot(JSC::ExecState*, const JSC::Identifier& propertyName, JSC::PropertySlot&);
       
    38     virtual bool getOwnPropertyDescriptor(JSC::ExecState*, const JSC::Identifier& propertyName, JSC::PropertyDescriptor&);
       
    39     virtual void put(JSC::ExecState*, const JSC::Identifier& propertyName, JSC::JSValue, JSC::PutPropertySlot&);
       
    40     virtual void put(JSC::ExecState*, unsigned propertyName, JSC::JSValue);
       
    41     virtual const JSC::ClassInfo* classInfo() const { return &s_info; }
       
    42     static const JSC::ClassInfo s_info;
       
    43 
       
    44     static PassRefPtr<JSC::Structure> createStructure(JSC::JSValue prototype)
       
    45     {
       
    46         return JSC::Structure::create(prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), AnonymousSlotCount);
       
    47     }
       
    48 
       
    49     static JSC::JSValue getConstructor(JSC::ExecState*, JSC::JSGlobalObject*);
       
    50 
       
    51     // Custom attributes
       
    52     JSC::JSValue length(JSC::ExecState*) const;
       
    53     void setLength(JSC::ExecState*, JSC::JSValue);
       
    54 
       
    55     // Custom functions
       
    56     JSC::JSValue add(JSC::ExecState*);
       
    57     JSC::JSValue remove(JSC::ExecState*);
       
    58     HTMLOptionsCollection* impl() const
       
    59     {
       
    60         return static_cast<HTMLOptionsCollection*>(Base::impl());
       
    61     }
       
    62 protected:
       
    63     static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | Base::StructureFlags;
       
    64     void indexSetter(JSC::ExecState*, unsigned index, JSC::JSValue);
       
    65 };
       
    66 
       
    67 HTMLOptionsCollection* toHTMLOptionsCollection(JSC::JSValue);
       
    68 
       
    69 class JSHTMLOptionsCollectionPrototype : public JSC::JSObjectWithGlobalObject {
       
    70     typedef JSC::JSObjectWithGlobalObject Base;
       
    71 public:
       
    72     static JSC::JSObject* self(JSC::ExecState*, JSC::JSGlobalObject*);
       
    73     virtual const JSC::ClassInfo* classInfo() const { return &s_info; }
       
    74     static const JSC::ClassInfo s_info;
       
    75     virtual bool getOwnPropertySlot(JSC::ExecState*, const JSC::Identifier&, JSC::PropertySlot&);
       
    76     virtual bool getOwnPropertyDescriptor(JSC::ExecState*, const JSC::Identifier&, JSC::PropertyDescriptor&);
       
    77     static PassRefPtr<JSC::Structure> createStructure(JSC::JSValue prototype)
       
    78     {
       
    79         return JSC::Structure::create(prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), AnonymousSlotCount);
       
    80     }
       
    81     JSHTMLOptionsCollectionPrototype(JSC::JSGlobalObject* globalObject, NonNullPassRefPtr<JSC::Structure> structure) : JSC::JSObjectWithGlobalObject(globalObject, structure) { }
       
    82 protected:
       
    83     static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | Base::StructureFlags;
       
    84 };
       
    85 
       
    86 // Functions
       
    87 
       
    88 JSC::EncodedJSValue JSC_HOST_CALL jsHTMLOptionsCollectionPrototypeFunctionAdd(JSC::ExecState*);
       
    89 JSC::EncodedJSValue JSC_HOST_CALL jsHTMLOptionsCollectionPrototypeFunctionRemove(JSC::ExecState*);
       
    90 // Attributes
       
    91 
       
    92 JSC::JSValue jsHTMLOptionsCollectionSelectedIndex(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
       
    93 void setJSHTMLOptionsCollectionSelectedIndex(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
       
    94 JSC::JSValue jsHTMLOptionsCollectionLength(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
       
    95 void setJSHTMLOptionsCollectionLength(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
       
    96 JSC::JSValue jsHTMLOptionsCollectionConstructor(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
       
    97 
       
    98 } // namespace WebCore
       
    99 
       
   100 #endif