OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2007 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007 Apple Inc. All rights reserved. |
3 * Copyright (C) 2009 Google Inc. All rights reserved. | 3 * Copyright (C) 2009 Google Inc. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * | 8 * |
9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 void disconnect(); | 73 void disconnect(); |
74 | 74 |
75 class InspectableObject { | 75 class InspectableObject { |
76 WTF_MAKE_FAST_ALLOCATED; | 76 WTF_MAKE_FAST_ALLOCATED; |
77 public: | 77 public: |
78 virtual ScriptValue get(ScriptState*); | 78 virtual ScriptValue get(ScriptState*); |
79 virtual ~InspectableObject() { } | 79 virtual ~InspectableObject() { } |
80 }; | 80 }; |
81 void addInspectedObject(PassOwnPtr<InspectableObject>); | 81 void addInspectedObject(PassOwnPtr<InspectableObject>); |
82 void clearInspectedObjects(); | 82 void clearInspectedObjects(); |
83 InspectableObject* inspectedObject(unsigned int num); | 83 InspectableObject* inspectedObject(unsigned num); |
84 | 84 |
85 void inspectImpl(PassRefPtr<JSONValue> objectToInspect, PassRefPtr<JSONValue
> hints); | 85 void inspectImpl(PassRefPtr<JSONValue> objectToInspect, PassRefPtr<JSONValue
> hints); |
86 void getEventListenersImpl(EventTarget*, Vector<EventListenerInfo>& listener
sArray); | 86 void getEventListenersImpl(EventTarget*, Vector<EventListenerInfo>& listener
sArray); |
87 | 87 |
88 void clearConsoleMessages(); | 88 void clearConsoleMessages(); |
89 void debugFunction(const String& scriptId, int lineNumber, int columnNumber)
; | 89 void debugFunction(const String& scriptId, int lineNumber, int columnNumber)
; |
90 void undebugFunction(const String& scriptId, int lineNumber, int columnNumbe
r); | 90 void undebugFunction(const String& scriptId, int lineNumber, int columnNumbe
r); |
91 void monitorFunction(const String& scriptId, int lineNumber, int columnNumbe
r, const String& functionName); | 91 void monitorFunction(const String& scriptId, int lineNumber, int columnNumbe
r, const String& functionName); |
92 void unmonitorFunction(const String& scriptId, int lineNumber, int columnNum
ber); | 92 void unmonitorFunction(const String& scriptId, int lineNumber, int columnNum
ber); |
93 | 93 |
94 ScriptDebugServer& scriptDebugServer() { return *m_scriptDebugServer; } | 94 ScriptDebugServer& scriptDebugServer() { return *m_scriptDebugServer; } |
95 | 95 |
96 private: | 96 private: |
97 InjectedScriptHost(); | 97 InjectedScriptHost(); |
98 | 98 |
99 InstrumentingAgents* m_instrumentingAgents; | 99 InstrumentingAgents* m_instrumentingAgents; |
100 ScriptDebugServer* m_scriptDebugServer; | 100 ScriptDebugServer* m_scriptDebugServer; |
101 Vector<OwnPtr<InspectableObject> > m_inspectedObjects; | 101 Vector<OwnPtr<InspectableObject> > m_inspectedObjects; |
102 OwnPtr<InspectableObject> m_defaultInspectableObject; | 102 OwnPtr<InspectableObject> m_defaultInspectableObject; |
103 }; | 103 }; |
104 | 104 |
105 } // namespace WebCore | 105 } // namespace WebCore |
106 | 106 |
107 #endif // !defined(InjectedScriptHost_h) | 107 #endif // !defined(InjectedScriptHost_h) |
OLD | NEW |