tizen beta release
[framework/web/webkit-efl.git] / DerivedSources / WebCore / JSJavaScriptCallFrame.h
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 JSJavaScriptCallFrame_h
22 #define JSJavaScriptCallFrame_h
23
24 #if ENABLE(JAVASCRIPT_DEBUGGER)
25
26 #include "JSDOMBinding.h"
27 #include "JavaScriptCallFrame.h"
28 #include <runtime/JSGlobalObject.h>
29 #include <runtime/JSObject.h>
30 #include <runtime/ObjectPrototype.h>
31
32 namespace WebCore {
33
34 class JSJavaScriptCallFrame : public JSDOMWrapper {
35 public:
36     typedef JSDOMWrapper Base;
37     static JSJavaScriptCallFrame* create(JSC::Structure* structure, JSDOMGlobalObject* globalObject, PassRefPtr<JavaScriptCallFrame> impl)
38     {
39         JSJavaScriptCallFrame* ptr = new (JSC::allocateCell<JSJavaScriptCallFrame>(globalObject->globalData().heap)) JSJavaScriptCallFrame(structure, globalObject, impl);
40         ptr->finishCreation(globalObject->globalData());
41         return ptr;
42     }
43
44     static JSC::JSObject* createPrototype(JSC::ExecState*, JSC::JSGlobalObject*);
45     static bool getOwnPropertySlot(JSC::JSCell*, JSC::ExecState*, const JSC::Identifier& propertyName, JSC::PropertySlot&);
46     static bool getOwnPropertyDescriptor(JSC::JSObject*, JSC::ExecState*, const JSC::Identifier& propertyName, JSC::PropertyDescriptor&);
47     static const JSC::ClassInfo s_info;
48
49     static JSC::Structure* createStructure(JSC::JSGlobalData& globalData, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype)
50     {
51         return JSC::Structure::create(globalData, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), &s_info);
52     }
53
54
55     // Custom attributes
56     JSC::JSValue scopeChain(JSC::ExecState*) const;
57     JSC::JSValue thisObject(JSC::ExecState*) const;
58     JSC::JSValue type(JSC::ExecState*) const;
59
60     // Custom functions
61     JSC::JSValue evaluate(JSC::ExecState*);
62     JSC::JSValue scopeType(JSC::ExecState*);
63     JavaScriptCallFrame* impl() const { return m_impl; }
64     void releaseImpl() { m_impl->deref(); m_impl = 0; }
65
66 private:
67     JavaScriptCallFrame* m_impl;
68 protected:
69     JSJavaScriptCallFrame(JSC::Structure*, JSDOMGlobalObject*, PassRefPtr<JavaScriptCallFrame>);
70     void finishCreation(JSC::JSGlobalData&);
71     static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | Base::StructureFlags;
72 };
73
74 class JSJavaScriptCallFrameOwner : public JSC::WeakHandleOwner {
75     virtual bool isReachableFromOpaqueRoots(JSC::Handle<JSC::Unknown>, void* context, JSC::SlotVisitor&);
76     virtual void finalize(JSC::Handle<JSC::Unknown>, void* context);
77 };
78
79 inline JSC::WeakHandleOwner* wrapperOwner(DOMWrapperWorld*, JavaScriptCallFrame*)
80 {
81     DEFINE_STATIC_LOCAL(JSJavaScriptCallFrameOwner, jsJavaScriptCallFrameOwner, ());
82     return &jsJavaScriptCallFrameOwner;
83 }
84
85 inline void* wrapperContext(DOMWrapperWorld* world, JavaScriptCallFrame*)
86 {
87     return world;
88 }
89
90 JSC::JSValue toJS(JSC::ExecState*, JSDOMGlobalObject*, JavaScriptCallFrame*);
91 JavaScriptCallFrame* toJavaScriptCallFrame(JSC::JSValue);
92
93 class JSJavaScriptCallFramePrototype : public JSC::JSNonFinalObject {
94 public:
95     typedef JSC::JSNonFinalObject Base;
96     static JSC::JSObject* self(JSC::ExecState*, JSC::JSGlobalObject*);
97     static JSJavaScriptCallFramePrototype* create(JSC::JSGlobalData& globalData, JSC::JSGlobalObject* globalObject, JSC::Structure* structure)
98     {
99         JSJavaScriptCallFramePrototype* ptr = new (JSC::allocateCell<JSJavaScriptCallFramePrototype>(globalData.heap)) JSJavaScriptCallFramePrototype(globalData, globalObject, structure);
100         ptr->finishCreation(globalData);
101         return ptr;
102     }
103
104     static const JSC::ClassInfo s_info;
105     static bool getOwnPropertySlot(JSC::JSCell*, JSC::ExecState*, const JSC::Identifier&, JSC::PropertySlot&);
106     static bool getOwnPropertyDescriptor(JSC::JSObject*, JSC::ExecState*, const JSC::Identifier&, JSC::PropertyDescriptor&);
107     static JSC::Structure* createStructure(JSC::JSGlobalData& globalData, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype)
108     {
109         return JSC::Structure::create(globalData, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), &s_info);
110     }
111
112 private:
113     JSJavaScriptCallFramePrototype(JSC::JSGlobalData& globalData, JSC::JSGlobalObject*, JSC::Structure* structure) : JSC::JSNonFinalObject(globalData, structure) { }
114 protected:
115     static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | Base::StructureFlags;
116 };
117
118 // Functions
119
120 JSC::EncodedJSValue JSC_HOST_CALL jsJavaScriptCallFramePrototypeFunctionEvaluate(JSC::ExecState*);
121 JSC::EncodedJSValue JSC_HOST_CALL jsJavaScriptCallFramePrototypeFunctionScopeType(JSC::ExecState*);
122 // Attributes
123
124 JSC::JSValue jsJavaScriptCallFrameCaller(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
125 JSC::JSValue jsJavaScriptCallFrameSourceID(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
126 JSC::JSValue jsJavaScriptCallFrameLine(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
127 JSC::JSValue jsJavaScriptCallFrameColumn(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
128 JSC::JSValue jsJavaScriptCallFrameScopeChain(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
129 JSC::JSValue jsJavaScriptCallFrameThisObject(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
130 JSC::JSValue jsJavaScriptCallFrameFunctionName(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
131 JSC::JSValue jsJavaScriptCallFrameType(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
132 // Constants
133
134 JSC::JSValue jsJavaScriptCallFrameGLOBAL_SCOPE(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
135 JSC::JSValue jsJavaScriptCallFrameLOCAL_SCOPE(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
136 JSC::JSValue jsJavaScriptCallFrameWITH_SCOPE(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
137 JSC::JSValue jsJavaScriptCallFrameCLOSURE_SCOPE(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
138 JSC::JSValue jsJavaScriptCallFrameCATCH_SCOPE(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
139
140 } // namespace WebCore
141
142 #endif // ENABLE(JAVASCRIPT_DEBUGGER)
143
144 #endif