|
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 JSScriptProfileNode_h |
|
22 #define JSScriptProfileNode_h |
|
23 |
|
24 #if ENABLE(JAVASCRIPT_DEBUGGER) |
|
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 typedef JSC::ProfileNode ScriptProfileNode; |
|
34 |
|
35 class JSScriptProfileNode : public DOMObjectWithGlobalPointer { |
|
36 typedef DOMObjectWithGlobalPointer Base; |
|
37 public: |
|
38 JSScriptProfileNode(NonNullPassRefPtr<JSC::Structure>, JSDOMGlobalObject*, PassRefPtr<ScriptProfileNode>); |
|
39 virtual ~JSScriptProfileNode(); |
|
40 static JSC::JSObject* createPrototype(JSC::ExecState*, JSC::JSGlobalObject*); |
|
41 virtual bool getOwnPropertySlot(JSC::ExecState*, const JSC::Identifier& propertyName, JSC::PropertySlot&); |
|
42 virtual bool getOwnPropertyDescriptor(JSC::ExecState*, const JSC::Identifier& propertyName, JSC::PropertyDescriptor&); |
|
43 virtual const JSC::ClassInfo* classInfo() const { return &s_info; } |
|
44 static const JSC::ClassInfo s_info; |
|
45 |
|
46 static PassRefPtr<JSC::Structure> createStructure(JSC::JSValue prototype) |
|
47 { |
|
48 return JSC::Structure::create(prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), AnonymousSlotCount); |
|
49 } |
|
50 |
|
51 |
|
52 // Custom attributes |
|
53 JSC::JSValue children(JSC::ExecState*) const; |
|
54 JSC::JSValue callUID(JSC::ExecState*) const; |
|
55 ScriptProfileNode* impl() const { return m_impl.get(); } |
|
56 |
|
57 private: |
|
58 RefPtr<ScriptProfileNode> m_impl; |
|
59 protected: |
|
60 static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | Base::StructureFlags; |
|
61 }; |
|
62 |
|
63 JSC::JSValue toJS(JSC::ExecState*, JSDOMGlobalObject*, ScriptProfileNode*); |
|
64 ScriptProfileNode* toScriptProfileNode(JSC::JSValue); |
|
65 |
|
66 class JSScriptProfileNodePrototype : public JSC::JSObjectWithGlobalObject { |
|
67 typedef JSC::JSObjectWithGlobalObject Base; |
|
68 public: |
|
69 static JSC::JSObject* self(JSC::ExecState*, JSC::JSGlobalObject*); |
|
70 virtual const JSC::ClassInfo* classInfo() const { return &s_info; } |
|
71 static const JSC::ClassInfo s_info; |
|
72 static PassRefPtr<JSC::Structure> createStructure(JSC::JSValue prototype) |
|
73 { |
|
74 return JSC::Structure::create(prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), AnonymousSlotCount); |
|
75 } |
|
76 JSScriptProfileNodePrototype(JSC::JSGlobalObject* globalObject, NonNullPassRefPtr<JSC::Structure> structure) : JSC::JSObjectWithGlobalObject(globalObject, structure) { } |
|
77 protected: |
|
78 static const unsigned StructureFlags = Base::StructureFlags; |
|
79 }; |
|
80 |
|
81 // Attributes |
|
82 |
|
83 JSC::JSValue jsScriptProfileNodeFunctionName(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&); |
|
84 JSC::JSValue jsScriptProfileNodeUrl(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&); |
|
85 JSC::JSValue jsScriptProfileNodeLineNumber(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&); |
|
86 JSC::JSValue jsScriptProfileNodeTotalTime(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&); |
|
87 JSC::JSValue jsScriptProfileNodeSelfTime(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&); |
|
88 JSC::JSValue jsScriptProfileNodeNumberOfCalls(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&); |
|
89 JSC::JSValue jsScriptProfileNodeChildren(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&); |
|
90 JSC::JSValue jsScriptProfileNodeVisible(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&); |
|
91 JSC::JSValue jsScriptProfileNodeCallUID(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&); |
|
92 |
|
93 } // namespace WebCore |
|
94 |
|
95 #endif // ENABLE(JAVASCRIPT_DEBUGGER) |
|
96 |
|
97 #endif |