WebCore/generated/JSSQLTransaction.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 JSSQLTransaction_h
       
    22 #define JSSQLTransaction_h
       
    23 
       
    24 #if ENABLE(DATABASE)
       
    25 
       
    26 #include "JSDOMBinding.h"
       
    27 #include <runtime/JSGlobalObject.h>
       
    28 #include <runtime/JSObjectWithGlobalObject.h>
       
    29 #include <runtime/ObjectPrototype.h>
       
    30 
       
    31 namespace WebCore {
       
    32 
       
    33 class SQLTransaction;
       
    34 
       
    35 class JSSQLTransaction : public DOMObjectWithGlobalPointer {
       
    36     typedef DOMObjectWithGlobalPointer Base;
       
    37 public:
       
    38     JSSQLTransaction(NonNullPassRefPtr<JSC::Structure>, JSDOMGlobalObject*, PassRefPtr<SQLTransaction>);
       
    39     virtual ~JSSQLTransaction();
       
    40     static JSC::JSObject* createPrototype(JSC::ExecState*, JSC::JSGlobalObject*);
       
    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 
       
    50     // Custom functions
       
    51     JSC::JSValue executeSql(JSC::ExecState*);
       
    52     SQLTransaction* impl() const { return m_impl.get(); }
       
    53 
       
    54 private:
       
    55     RefPtr<SQLTransaction> m_impl;
       
    56 protected:
       
    57     static const unsigned StructureFlags = Base::StructureFlags;
       
    58 };
       
    59 
       
    60 JSC::JSValue toJS(JSC::ExecState*, JSDOMGlobalObject*, SQLTransaction*);
       
    61 SQLTransaction* toSQLTransaction(JSC::JSValue);
       
    62 
       
    63 class JSSQLTransactionPrototype : public JSC::JSObjectWithGlobalObject {
       
    64     typedef JSC::JSObjectWithGlobalObject Base;
       
    65 public:
       
    66     static JSC::JSObject* self(JSC::ExecState*, JSC::JSGlobalObject*);
       
    67     virtual const JSC::ClassInfo* classInfo() const { return &s_info; }
       
    68     static const JSC::ClassInfo s_info;
       
    69     virtual bool getOwnPropertySlot(JSC::ExecState*, const JSC::Identifier&, JSC::PropertySlot&);
       
    70     virtual bool getOwnPropertyDescriptor(JSC::ExecState*, const JSC::Identifier&, JSC::PropertyDescriptor&);
       
    71     static PassRefPtr<JSC::Structure> createStructure(JSC::JSValue prototype)
       
    72     {
       
    73         return JSC::Structure::create(prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), AnonymousSlotCount);
       
    74     }
       
    75     JSSQLTransactionPrototype(JSC::JSGlobalObject* globalObject, NonNullPassRefPtr<JSC::Structure> structure) : JSC::JSObjectWithGlobalObject(globalObject, structure) { }
       
    76 protected:
       
    77     static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | Base::StructureFlags;
       
    78 };
       
    79 
       
    80 // Functions
       
    81 
       
    82 JSC::EncodedJSValue JSC_HOST_CALL jsSQLTransactionPrototypeFunctionExecuteSql(JSC::ExecState*);
       
    83 
       
    84 } // namespace WebCore
       
    85 
       
    86 #endif // ENABLE(DATABASE)
       
    87 
       
    88 #endif