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 JSFileException_h
22 #define JSFileException_h
23 
24 #if ENABLE(BLOB) || ENABLE(FILE_SYSTEM)
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 FileException;
34 
35 class JSFileException : public JSDOMWrapper {
36     typedef JSDOMWrapper Base;
37 public:
38     JSFileException(JSC::Structure*, JSDOMGlobalObject*, PassRefPtr<FileException>);
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     static const JSC::ClassInfo s_info;
43 
createStructure(JSC::JSGlobalData & globalData,JSC::JSValue prototype)44     static JSC::Structure* createStructure(JSC::JSGlobalData& globalData, JSC::JSValue prototype)
45     {
46         return JSC::Structure::create(globalData, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), AnonymousSlotCount, &s_info);
47     }
48 
49     static JSC::JSValue getConstructor(JSC::ExecState*, JSC::JSGlobalObject*);
impl()50     FileException* impl() const { return m_impl.get(); }
51 
52 private:
53     RefPtr<FileException> m_impl;
54 protected:
55     static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | Base::StructureFlags;
56 };
57 
58 JSC::JSValue toJS(JSC::ExecState*, JSDOMGlobalObject*, FileException*);
59 FileException* toFileException(JSC::JSValue);
60 
61 class JSFileExceptionPrototype : public JSC::JSObjectWithGlobalObject {
62     typedef JSC::JSObjectWithGlobalObject Base;
63 public:
64     static JSC::JSObject* self(JSC::ExecState*, JSC::JSGlobalObject*);
65     static const JSC::ClassInfo s_info;
66     virtual bool getOwnPropertySlot(JSC::ExecState*, const JSC::Identifier&, JSC::PropertySlot&);
67     virtual bool getOwnPropertyDescriptor(JSC::ExecState*, const JSC::Identifier&, JSC::PropertyDescriptor&);
createStructure(JSC::JSGlobalData & globalData,JSC::JSValue prototype)68     static JSC::Structure* createStructure(JSC::JSGlobalData& globalData, JSC::JSValue prototype)
69     {
70         return JSC::Structure::create(globalData, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), AnonymousSlotCount, &s_info);
71     }
JSFileExceptionPrototype(JSC::JSGlobalData & globalData,JSC::JSGlobalObject * globalObject,JSC::Structure * structure)72     JSFileExceptionPrototype(JSC::JSGlobalData& globalData, JSC::JSGlobalObject* globalObject, JSC::Structure* structure) : JSC::JSObjectWithGlobalObject(globalData, globalObject, structure) { }
73 protected:
74     static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | Base::StructureFlags;
75 };
76 
77 // Functions
78 
79 JSC::EncodedJSValue JSC_HOST_CALL jsFileExceptionPrototypeFunctionToString(JSC::ExecState*);
80 // Attributes
81 
82 JSC::JSValue jsFileExceptionCode(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
83 JSC::JSValue jsFileExceptionName(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
84 JSC::JSValue jsFileExceptionMessage(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
85 JSC::JSValue jsFileExceptionConstructor(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
86 // Constants
87 
88 JSC::JSValue jsFileExceptionNOT_FOUND_ERR(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
89 JSC::JSValue jsFileExceptionSECURITY_ERR(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
90 JSC::JSValue jsFileExceptionABORT_ERR(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
91 JSC::JSValue jsFileExceptionNOT_READABLE_ERR(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
92 JSC::JSValue jsFileExceptionENCODING_ERR(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
93 JSC::JSValue jsFileExceptionNO_MODIFICATION_ALLOWED_ERR(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
94 JSC::JSValue jsFileExceptionINVALID_STATE_ERR(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
95 JSC::JSValue jsFileExceptionSYNTAX_ERR(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
96 JSC::JSValue jsFileExceptionINVALID_MODIFICATION_ERR(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
97 JSC::JSValue jsFileExceptionQUOTA_EXCEEDED_ERR(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
98 JSC::JSValue jsFileExceptionTYPE_MISMATCH_ERR(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
99 JSC::JSValue jsFileExceptionPATH_EXISTS_ERR(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
100 
101 } // namespace WebCore
102 
103 #endif // ENABLE(BLOB) || ENABLE(FILE_SYSTEM)
104 
105 #endif
106