|
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 JSConsole_h |
|
22 #define JSConsole_h |
|
23 |
|
24 #include "JSDOMBinding.h" |
|
25 #include <runtime/JSGlobalObject.h> |
|
26 #include <runtime/JSObjectWithGlobalObject.h> |
|
27 #include <runtime/ObjectPrototype.h> |
|
28 |
|
29 namespace WebCore { |
|
30 |
|
31 class Console; |
|
32 |
|
33 class JSConsole : public DOMObjectWithGlobalPointer { |
|
34 typedef DOMObjectWithGlobalPointer Base; |
|
35 public: |
|
36 JSConsole(NonNullPassRefPtr<JSC::Structure>, JSDOMGlobalObject*, PassRefPtr<Console>); |
|
37 virtual ~JSConsole(); |
|
38 static JSC::JSObject* createPrototype(JSC::ExecState*, JSC::JSGlobalObject*); |
|
39 virtual bool getOwnPropertySlot(JSC::ExecState*, const JSC::Identifier& propertyName, JSC::PropertySlot&); |
|
40 virtual bool getOwnPropertyDescriptor(JSC::ExecState*, const JSC::Identifier& propertyName, JSC::PropertyDescriptor&); |
|
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 attributes |
|
51 JSC::JSValue profiles(JSC::ExecState*) const; |
|
52 Console* impl() const { return m_impl.get(); } |
|
53 |
|
54 private: |
|
55 RefPtr<Console> m_impl; |
|
56 protected: |
|
57 static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | Base::StructureFlags; |
|
58 }; |
|
59 |
|
60 JSC::JSValue toJS(JSC::ExecState*, JSDOMGlobalObject*, Console*); |
|
61 Console* toConsole(JSC::JSValue); |
|
62 |
|
63 class JSConsolePrototype : 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 JSConsolePrototype(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 jsConsolePrototypeFunctionDebug(JSC::ExecState*); |
|
83 JSC::EncodedJSValue JSC_HOST_CALL jsConsolePrototypeFunctionError(JSC::ExecState*); |
|
84 JSC::EncodedJSValue JSC_HOST_CALL jsConsolePrototypeFunctionInfo(JSC::ExecState*); |
|
85 JSC::EncodedJSValue JSC_HOST_CALL jsConsolePrototypeFunctionLog(JSC::ExecState*); |
|
86 JSC::EncodedJSValue JSC_HOST_CALL jsConsolePrototypeFunctionWarn(JSC::ExecState*); |
|
87 JSC::EncodedJSValue JSC_HOST_CALL jsConsolePrototypeFunctionDir(JSC::ExecState*); |
|
88 JSC::EncodedJSValue JSC_HOST_CALL jsConsolePrototypeFunctionDirxml(JSC::ExecState*); |
|
89 JSC::EncodedJSValue JSC_HOST_CALL jsConsolePrototypeFunctionTrace(JSC::ExecState*); |
|
90 JSC::EncodedJSValue JSC_HOST_CALL jsConsolePrototypeFunctionAssert(JSC::ExecState*); |
|
91 JSC::EncodedJSValue JSC_HOST_CALL jsConsolePrototypeFunctionCount(JSC::ExecState*); |
|
92 JSC::EncodedJSValue JSC_HOST_CALL jsConsolePrototypeFunctionMarkTimeline(JSC::ExecState*); |
|
93 JSC::EncodedJSValue JSC_HOST_CALL jsConsolePrototypeFunctionProfile(JSC::ExecState*); |
|
94 JSC::EncodedJSValue JSC_HOST_CALL jsConsolePrototypeFunctionProfileEnd(JSC::ExecState*); |
|
95 JSC::EncodedJSValue JSC_HOST_CALL jsConsolePrototypeFunctionTime(JSC::ExecState*); |
|
96 JSC::EncodedJSValue JSC_HOST_CALL jsConsolePrototypeFunctionTimeEnd(JSC::ExecState*); |
|
97 JSC::EncodedJSValue JSC_HOST_CALL jsConsolePrototypeFunctionGroup(JSC::ExecState*); |
|
98 JSC::EncodedJSValue JSC_HOST_CALL jsConsolePrototypeFunctionGroupCollapsed(JSC::ExecState*); |
|
99 JSC::EncodedJSValue JSC_HOST_CALL jsConsolePrototypeFunctionGroupEnd(JSC::ExecState*); |
|
100 // Attributes |
|
101 |
|
102 JSC::JSValue jsConsoleProfiles(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&); |
|
103 JSC::JSValue jsConsoleMemory(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&); |
|
104 |
|
105 } // namespace WebCore |
|
106 |
|
107 #endif |