WebCore/generated/JSStorageEvent.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 JSStorageEvent_h
       
    22 #define JSStorageEvent_h
       
    23 
       
    24 #if ENABLE(DOM_STORAGE)
       
    25 
       
    26 #include "JSEvent.h"
       
    27 #include <runtime/JSObjectWithGlobalObject.h>
       
    28 
       
    29 namespace WebCore {
       
    30 
       
    31 class StorageEvent;
       
    32 
       
    33 class JSStorageEvent : public JSEvent {
       
    34     typedef JSEvent Base;
       
    35 public:
       
    36     JSStorageEvent(NonNullPassRefPtr<JSC::Structure>, JSDOMGlobalObject*, PassRefPtr<StorageEvent>);
       
    37     static JSC::JSObject* createPrototype(JSC::ExecState*, JSC::JSGlobalObject*);
       
    38     virtual bool getOwnPropertySlot(JSC::ExecState*, const JSC::Identifier& propertyName, JSC::PropertySlot&);
       
    39     virtual bool getOwnPropertyDescriptor(JSC::ExecState*, const JSC::Identifier& propertyName, JSC::PropertyDescriptor&);
       
    40     virtual const JSC::ClassInfo* classInfo() const { return &s_info; }
       
    41     static const JSC::ClassInfo s_info;
       
    42 
       
    43     static PassRefPtr<JSC::Structure> createStructure(JSC::JSValue prototype)
       
    44     {
       
    45         return JSC::Structure::create(prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), AnonymousSlotCount);
       
    46     }
       
    47 
       
    48     static JSC::JSValue getConstructor(JSC::ExecState*, JSC::JSGlobalObject*);
       
    49 protected:
       
    50     static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | Base::StructureFlags;
       
    51 };
       
    52 
       
    53 
       
    54 class JSStorageEventPrototype : public JSC::JSObjectWithGlobalObject {
       
    55     typedef JSC::JSObjectWithGlobalObject Base;
       
    56 public:
       
    57     static JSC::JSObject* self(JSC::ExecState*, JSC::JSGlobalObject*);
       
    58     virtual const JSC::ClassInfo* classInfo() const { return &s_info; }
       
    59     static const JSC::ClassInfo s_info;
       
    60     virtual bool getOwnPropertySlot(JSC::ExecState*, const JSC::Identifier&, JSC::PropertySlot&);
       
    61     virtual bool getOwnPropertyDescriptor(JSC::ExecState*, const JSC::Identifier&, JSC::PropertyDescriptor&);
       
    62     static PassRefPtr<JSC::Structure> createStructure(JSC::JSValue prototype)
       
    63     {
       
    64         return JSC::Structure::create(prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), AnonymousSlotCount);
       
    65     }
       
    66     JSStorageEventPrototype(JSC::JSGlobalObject* globalObject, NonNullPassRefPtr<JSC::Structure> structure) : JSC::JSObjectWithGlobalObject(globalObject, structure) { }
       
    67 protected:
       
    68     static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | Base::StructureFlags;
       
    69 };
       
    70 
       
    71 // Functions
       
    72 
       
    73 JSC::EncodedJSValue JSC_HOST_CALL jsStorageEventPrototypeFunctionInitStorageEvent(JSC::ExecState*);
       
    74 // Attributes
       
    75 
       
    76 JSC::JSValue jsStorageEventKey(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
       
    77 JSC::JSValue jsStorageEventOldValue(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
       
    78 JSC::JSValue jsStorageEventNewValue(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
       
    79 JSC::JSValue jsStorageEventUrl(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
       
    80 JSC::JSValue jsStorageEventStorageArea(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
       
    81 JSC::JSValue jsStorageEventConstructor(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
       
    82 
       
    83 } // namespace WebCore
       
    84 
       
    85 #endif // ENABLE(DOM_STORAGE)
       
    86 
       
    87 #endif