OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2007 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007 Apple Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 | 97 |
98 void startProfiling(); | 98 void startProfiling(); |
99 void stopProfiling(); | 99 void stopProfiling(); |
100 | 100 |
101 void getProfileHeaders(long callId); | 101 void getProfileHeaders(long callId); |
102 void getProfile(long callId, unsigned uid); | 102 void getProfile(long callId, unsigned uid); |
103 | 103 |
104 JavaScriptCallFrame* currentCallFrame() const; | 104 JavaScriptCallFrame* currentCallFrame() const; |
105 #endif | 105 #endif |
106 | 106 |
107 void dispatchOnInjectedScript(long callId, const String& methodName, const S
tring& arguments, bool async); | 107 void setInjectedScriptSource(const String& source); |
| 108 void dispatchOnInjectedScript(long callId, long injectedScriptId, const Stri
ng& methodName, const String& arguments, bool async); |
108 void getChildNodes(long callId, long nodeId); | 109 void getChildNodes(long callId, long nodeId); |
109 void setAttribute(long callId, long elementId, const String& name, const Str
ing& value); | 110 void setAttribute(long callId, long elementId, const String& name, const Str
ing& value); |
110 void removeAttribute(long callId, long elementId, const String& name); | 111 void removeAttribute(long callId, long elementId, const String& name); |
111 void setTextNodeValue(long callId, long nodeId, const String& value); | 112 void setTextNodeValue(long callId, long nodeId, const String& value); |
112 void getEventListenersForNode(long callId, long nodeId); | 113 void getEventListenersForNode(long callId, long nodeId); |
113 void copyNode(long nodeId); | 114 void copyNode(long nodeId); |
114 void removeNode(long callId, long nodeId); | 115 void removeNode(long callId, long nodeId); |
115 void highlightDOMNode(long nodeId); | 116 void highlightDOMNode(long nodeId); |
116 void hideDOMNodeHighlight(); | 117 void hideDOMNodeHighlight(); |
117 | 118 |
118 void getCookies(long callId); | 119 void getCookies(long callId); |
119 void deleteCookie(const String& cookieName, const String& domain); | 120 void deleteCookie(const String& cookieName, const String& domain); |
120 | 121 |
121 // Generic code called from custom implementations. | 122 // Generic code called from custom implementations. |
122 void releaseWrapperObjectGroup(const String& objectGroup); | 123 void releaseWrapperObjectGroup(long injectedScriptId, const String& objectGr
oup); |
123 void didEvaluateForTestInFrontend(long callId, const String& jsonResult); | 124 void didEvaluateForTestInFrontend(long callId, const String& jsonResult); |
124 | 125 |
125 #if ENABLE(DATABASE) | 126 #if ENABLE(DATABASE) |
126 void getDatabaseTableNames(long callId, long databaseId); | 127 void getDatabaseTableNames(long callId, long databaseId); |
127 #endif | 128 #endif |
128 | 129 |
129 #if ENABLE(DOM_STORAGE) | 130 #if ENABLE(DOM_STORAGE) |
130 void getDOMStorageEntries(long callId, long storageId); | 131 void getDOMStorageEntries(long callId, long storageId); |
131 void setDOMStorageItem(long callId, long storageId, const String& key, const
String& value); | 132 void setDOMStorageItem(long callId, long storageId, const String& key, const
String& value); |
132 void removeDOMStorageItem(long callId, long storageId, const String& key); | 133 void removeDOMStorageItem(long callId, long storageId, const String& key); |
133 #endif | 134 #endif |
134 | 135 |
135 private: | 136 private: |
136 InspectorBackend(InspectorController* inspectorController); | 137 InspectorBackend(InspectorController* inspectorController); |
137 InspectorDOMAgent* inspectorDOMAgent(); | 138 InspectorDOMAgent* inspectorDOMAgent(); |
138 InspectorFrontend* inspectorFrontend(); | 139 InspectorFrontend* inspectorFrontend(); |
139 Node* nodeForId(long nodeId); | 140 Node* nodeForId(long nodeId); |
140 | 141 |
141 InspectorController* m_inspectorController; | 142 InspectorController* m_inspectorController; |
142 }; | 143 }; |
143 | 144 |
144 } // namespace WebCore | 145 } // namespace WebCore |
145 | 146 |
146 #endif // !defined(InspectorBackend_h) | 147 #endif // !defined(InspectorBackend_h) |
OLD | NEW |