|
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 JSInspectorFrontendHost_h |
|
22 #define JSInspectorFrontendHost_h |
|
23 |
|
24 #if ENABLE(INSPECTOR) |
|
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 InspectorFrontendHost; |
|
34 |
|
35 class JSInspectorFrontendHost : public DOMObjectWithGlobalPointer { |
|
36 typedef DOMObjectWithGlobalPointer Base; |
|
37 public: |
|
38 JSInspectorFrontendHost(NonNullPassRefPtr<JSC::Structure>, JSDOMGlobalObject*, PassRefPtr<InspectorFrontendHost>); |
|
39 virtual ~JSInspectorFrontendHost(); |
|
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 static JSC::JSValue getConstructor(JSC::ExecState*, JSC::JSGlobalObject*); |
|
52 |
|
53 // Custom functions |
|
54 JSC::JSValue platform(JSC::ExecState*); |
|
55 JSC::JSValue port(JSC::ExecState*); |
|
56 JSC::JSValue showContextMenu(JSC::ExecState*); |
|
57 InspectorFrontendHost* impl() const { return m_impl.get(); } |
|
58 |
|
59 private: |
|
60 RefPtr<InspectorFrontendHost> m_impl; |
|
61 protected: |
|
62 static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | Base::StructureFlags; |
|
63 }; |
|
64 |
|
65 JSC::JSValue toJS(JSC::ExecState*, JSDOMGlobalObject*, InspectorFrontendHost*); |
|
66 InspectorFrontendHost* toInspectorFrontendHost(JSC::JSValue); |
|
67 |
|
68 class JSInspectorFrontendHostPrototype : public JSC::JSObjectWithGlobalObject { |
|
69 typedef JSC::JSObjectWithGlobalObject Base; |
|
70 public: |
|
71 static JSC::JSObject* self(JSC::ExecState*, JSC::JSGlobalObject*); |
|
72 virtual const JSC::ClassInfo* classInfo() const { return &s_info; } |
|
73 static const JSC::ClassInfo s_info; |
|
74 virtual bool getOwnPropertySlot(JSC::ExecState*, const JSC::Identifier&, JSC::PropertySlot&); |
|
75 virtual bool getOwnPropertyDescriptor(JSC::ExecState*, const JSC::Identifier&, JSC::PropertyDescriptor&); |
|
76 static PassRefPtr<JSC::Structure> createStructure(JSC::JSValue prototype) |
|
77 { |
|
78 return JSC::Structure::create(prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), AnonymousSlotCount); |
|
79 } |
|
80 JSInspectorFrontendHostPrototype(JSC::JSGlobalObject* globalObject, NonNullPassRefPtr<JSC::Structure> structure) : JSC::JSObjectWithGlobalObject(globalObject, structure) { } |
|
81 protected: |
|
82 static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | Base::StructureFlags; |
|
83 }; |
|
84 |
|
85 // Functions |
|
86 |
|
87 JSC::EncodedJSValue JSC_HOST_CALL jsInspectorFrontendHostPrototypeFunctionLoaded(JSC::ExecState*); |
|
88 JSC::EncodedJSValue JSC_HOST_CALL jsInspectorFrontendHostPrototypeFunctionCloseWindow(JSC::ExecState*); |
|
89 JSC::EncodedJSValue JSC_HOST_CALL jsInspectorFrontendHostPrototypeFunctionBringToFront(JSC::ExecState*); |
|
90 JSC::EncodedJSValue JSC_HOST_CALL jsInspectorFrontendHostPrototypeFunctionInspectedURLChanged(JSC::ExecState*); |
|
91 JSC::EncodedJSValue JSC_HOST_CALL jsInspectorFrontendHostPrototypeFunctionRequestAttachWindow(JSC::ExecState*); |
|
92 JSC::EncodedJSValue JSC_HOST_CALL jsInspectorFrontendHostPrototypeFunctionRequestDetachWindow(JSC::ExecState*); |
|
93 JSC::EncodedJSValue JSC_HOST_CALL jsInspectorFrontendHostPrototypeFunctionSetAttachedWindowHeight(JSC::ExecState*); |
|
94 JSC::EncodedJSValue JSC_HOST_CALL jsInspectorFrontendHostPrototypeFunctionMoveWindowBy(JSC::ExecState*); |
|
95 JSC::EncodedJSValue JSC_HOST_CALL jsInspectorFrontendHostPrototypeFunctionLocalizedStringsURL(JSC::ExecState*); |
|
96 JSC::EncodedJSValue JSC_HOST_CALL jsInspectorFrontendHostPrototypeFunctionHiddenPanels(JSC::ExecState*); |
|
97 JSC::EncodedJSValue JSC_HOST_CALL jsInspectorFrontendHostPrototypeFunctionCopyText(JSC::ExecState*); |
|
98 JSC::EncodedJSValue JSC_HOST_CALL jsInspectorFrontendHostPrototypeFunctionPlatform(JSC::ExecState*); |
|
99 JSC::EncodedJSValue JSC_HOST_CALL jsInspectorFrontendHostPrototypeFunctionPort(JSC::ExecState*); |
|
100 JSC::EncodedJSValue JSC_HOST_CALL jsInspectorFrontendHostPrototypeFunctionShowContextMenu(JSC::ExecState*); |
|
101 // Attributes |
|
102 |
|
103 JSC::JSValue jsInspectorFrontendHostConstructor(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&); |
|
104 |
|
105 } // namespace WebCore |
|
106 |
|
107 #endif // ENABLE(INSPECTOR) |
|
108 |
|
109 #endif |