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 20 matching lines...) Expand all Loading... |
31 #define InjectedScriptHost_h | 31 #define InjectedScriptHost_h |
32 | 32 |
33 #include "bindings/v8/ScriptState.h" | 33 #include "bindings/v8/ScriptState.h" |
34 #include "bindings/v8/ScriptWrappable.h" | 34 #include "bindings/v8/ScriptWrappable.h" |
35 #include "wtf/RefCounted.h" | 35 #include "wtf/RefCounted.h" |
36 #include "wtf/Vector.h" | 36 #include "wtf/Vector.h" |
37 | 37 |
38 namespace WebCore { | 38 namespace WebCore { |
39 | 39 |
40 class Database; | 40 class Database; |
| 41 class EventTarget; |
41 class InjectedScript; | 42 class InjectedScript; |
42 class InstrumentingAgents; | 43 class InstrumentingAgents; |
43 class JSONValue; | 44 class JSONValue; |
44 class Node; | 45 class Node; |
45 class ScriptDebugServer; | 46 class ScriptDebugServer; |
46 class ScriptValue; | 47 class ScriptValue; |
47 class Storage; | 48 class Storage; |
48 | 49 |
49 struct EventListenerInfo; | 50 struct EventListenerInfo; |
50 | 51 |
(...skipping 22 matching lines...) Expand all Loading... |
73 WTF_MAKE_FAST_ALLOCATED; | 74 WTF_MAKE_FAST_ALLOCATED; |
74 public: | 75 public: |
75 virtual ScriptValue get(ScriptState*); | 76 virtual ScriptValue get(ScriptState*); |
76 virtual ~InspectableObject() { } | 77 virtual ~InspectableObject() { } |
77 }; | 78 }; |
78 void addInspectedObject(PassOwnPtr<InspectableObject>); | 79 void addInspectedObject(PassOwnPtr<InspectableObject>); |
79 void clearInspectedObjects(); | 80 void clearInspectedObjects(); |
80 InspectableObject* inspectedObject(unsigned int num); | 81 InspectableObject* inspectedObject(unsigned int num); |
81 | 82 |
82 void inspectImpl(PassRefPtr<JSONValue> objectToInspect, PassRefPtr<JSONValue
> hints); | 83 void inspectImpl(PassRefPtr<JSONValue> objectToInspect, PassRefPtr<JSONValue
> hints); |
83 void getEventListenersImpl(Node*, Vector<EventListenerInfo>& listenersArray)
; | 84 void getEventListenersImpl(EventTarget*, Vector<EventListenerInfo>& listener
sArray); |
84 | 85 |
85 void clearConsoleMessages(); | 86 void clearConsoleMessages(); |
86 String databaseIdImpl(Database*); | 87 String databaseIdImpl(Database*); |
87 String storageIdImpl(Storage*); | 88 String storageIdImpl(Storage*); |
88 void debugFunction(const String& scriptId, int lineNumber, int columnNumber)
; | 89 void debugFunction(const String& scriptId, int lineNumber, int columnNumber)
; |
89 void undebugFunction(const String& scriptId, int lineNumber, int columnNumbe
r); | 90 void undebugFunction(const String& scriptId, int lineNumber, int columnNumbe
r); |
90 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); |
91 void unmonitorFunction(const String& scriptId, int lineNumber, int columnNum
ber); | 92 void unmonitorFunction(const String& scriptId, int lineNumber, int columnNum
ber); |
92 | 93 |
93 ScriptDebugServer& scriptDebugServer() { return *m_scriptDebugServer; } | 94 ScriptDebugServer& scriptDebugServer() { return *m_scriptDebugServer; } |
94 | 95 |
95 private: | 96 private: |
96 InjectedScriptHost(); | 97 InjectedScriptHost(); |
97 | 98 |
98 InstrumentingAgents* m_instrumentingAgents; | 99 InstrumentingAgents* m_instrumentingAgents; |
99 ScriptDebugServer* m_scriptDebugServer; | 100 ScriptDebugServer* m_scriptDebugServer; |
100 Vector<OwnPtr<InspectableObject> > m_inspectedObjects; | 101 Vector<OwnPtr<InspectableObject> > m_inspectedObjects; |
101 OwnPtr<InspectableObject> m_defaultInspectableObject; | 102 OwnPtr<InspectableObject> m_defaultInspectableObject; |
102 }; | 103 }; |
103 | 104 |
104 } // namespace WebCore | 105 } // namespace WebCore |
105 | 106 |
106 #endif // !defined(InjectedScriptHost_h) | 107 #endif // !defined(InjectedScriptHost_h) |
OLD | NEW |