OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google 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 are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * 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 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 * specify explicit names for multiple parameters of the same type. | 60 * specify explicit names for multiple parameters of the same type. |
61 * | 61 * |
62 * Parameters with type PassRefPtr<T> are converted to raw pointers, | 62 * Parameters with type PassRefPtr<T> are converted to raw pointers, |
63 * so reference will not be passed or released until all agents are notified. | 63 * so reference will not be passed or released until all agents are notified. |
64 */ | 64 */ |
65 | 65 |
66 interface InspectorInstrumentation { | 66 interface InspectorInstrumentation { |
67 | 67 |
68 #include "core/dom/PseudoElement.h" | 68 #include "core/dom/PseudoElement.h" |
69 | 69 |
70 [Page, Inspector, PageDebugger, PageRuntime] | 70 // We should call PageDebuggerAgent method first otherwise this method reset
s script cache and removes scripts executed by other agents. |
| 71 [PageDebugger, Page, PageRuntime, Animation] |
71 void didClearDocumentOfWindowObject([Keep] LocalFrame*); | 72 void didClearDocumentOfWindowObject([Keep] LocalFrame*); |
72 | 73 |
73 [DOMDebugger, Inline=FastReturn] | 74 [DOMDebugger, Inline=FastReturn] |
74 void willCloseWindow(ExecutionContext*); | 75 void willCloseWindow(ExecutionContext*); |
75 | 76 |
76 [DOMDebugger, Inline=FastReturn] | 77 [DOMDebugger, Inline=FastReturn] |
77 void willInsertDOMNode([Keep] Node* parent); | 78 void willInsertDOMNode([Keep] Node* parent); |
78 | 79 |
79 [DOM, DOMDebugger, Inline=FastReturn] | 80 [DOM, DOMDebugger, Inline=FastReturn] |
80 void didInsertDOMNode([Keep] Node*); | 81 void didInsertDOMNode([Keep] Node*); |
81 | 82 |
82 [DOMDebugger, DOM, Inline=FastReturn] | 83 [DOMDebugger, DOM, Inline=FastReturn] |
83 void willRemoveDOMNode([Keep] Node*); | 84 void willRemoveDOMNode([Keep] Node*); |
84 | 85 |
85 [DOMDebugger, DOM, Inline=FastReturn] | 86 [DOMDebugger, DOM, Inline=FastReturn] |
86 void willModifyDOMAttr([Keep] Element*, const AtomicString& oldValue, const
AtomicString& newValue); | 87 void willModifyDOMAttr([Keep] Element*, const AtomicString& oldValue, const
AtomicString& newValue); |
87 | 88 |
88 [DOM, Inline=FastReturn] | 89 [DOM, Inline=FastReturn] |
89 void didModifyDOMAttr([Keep] Element*, const AtomicString& name, const Atomi
cString& value); | 90 void didModifyDOMAttr([Keep] Element*, const QualifiedName& name, const Atom
icString& value); |
90 | 91 |
91 [DOM, Inline=FastReturn] | 92 [DOM, Inline=FastReturn] |
92 void didRemoveDOMAttr([Keep] Element*, const AtomicString& name); | 93 void didRemoveDOMAttr([Keep] Element*, const QualifiedName& name); |
93 | 94 |
94 [DOM, Inline=FastReturn] | 95 [DOM, Inline=FastReturn] |
95 void characterDataModified([Keep] CharacterData*); | 96 void characterDataModified([Keep] CharacterData*); |
96 | 97 |
97 [DOM, DOMDebugger, Inline=FastReturn] | 98 [DOM, DOMDebugger, Inline=FastReturn] |
98 void didInvalidateStyleAttr([Keep] Node*); | 99 void didInvalidateStyleAttr([Keep] Node*); |
99 | 100 |
| 101 [DOM, Inline=FastReturn] |
| 102 void didPerformElementShadowDistribution([Keep] Element*); |
| 103 |
100 [CSS] | 104 [CSS] |
101 void documentDetached([Keep] Document*); | 105 void documentDetached([Keep] Document*); |
102 | 106 |
103 [CSS, Inline=FastReturn] | 107 [CSS, Inline=FastReturn] |
104 void willMutateRules(CSSStyleSheet*); | |
105 | |
106 [CSS, Inline=FastReturn] | |
107 void didMutateRules([Keep] CSSStyleSheet*); | |
108 | |
109 [CSS, Inline=FastReturn] | |
110 void willMutateStyle(CSSStyleDeclaration*); | |
111 | |
112 [CSS, Inline=FastReturn] | |
113 void didMutateStyle([Keep] CSSStyleDeclaration*, bool); | |
114 | |
115 [CSS, Inline=FastReturn] | |
116 void activeStyleSheetsUpdated([Keep] Document*); | 108 void activeStyleSheetsUpdated([Keep] Document*); |
117 | 109 |
118 [Console, PageRuntime] | |
119 void frameWindowDiscarded(LocalFrame*, LocalDOMWindow* domWindow); | |
120 | |
121 [CSS, Inline=FastReturn] | 110 [CSS, Inline=FastReturn] |
122 void mediaQueryResultChanged(Document*); | 111 void mediaQueryResultChanged(Document*); |
123 | 112 |
124 [DOM, Inline=FastReturn] | 113 [DOM, Inline=FastReturn] |
125 void didPushShadowRoot([Keep] Element* host, ShadowRoot*); | 114 void didPushShadowRoot([Keep] Element* host, ShadowRoot*); |
126 | 115 |
127 [DOM, Inline=FastReturn] | 116 [DOM, Inline=FastReturn] |
128 void willPopShadowRoot([Keep] Element* host, ShadowRoot*); | 117 void willPopShadowRoot([Keep] Element* host, ShadowRoot*); |
129 | 118 |
| 119 [DOMDebugger] |
| 120 void willSetInnerHTML(Element* element); |
| 121 |
130 [DOMDebugger, Inline=FastReturn] | 122 [DOMDebugger, Inline=FastReturn] |
131 void willSendXMLHttpRequest(ExecutionContext*, const String& url); | 123 void willSendXMLHttpRequest(ExecutionContext*, const String& url); |
132 | 124 |
133 [DOMDebugger, Inline=FastReturn] | 125 [DOMDebugger, Inline=FastReturn] |
134 void didFireWebGLError(Element*, const String& errorName); | 126 void didFireWebGLError(Element*, const String& errorName); |
135 | 127 |
136 [DOMDebugger, Inline=FastReturn] | 128 [DOMDebugger, Inline=FastReturn] |
137 void didFireWebGLWarning(Element*); | 129 void didFireWebGLWarning(Element*); |
138 | 130 |
139 [DOMDebugger, Inline=FastReturn] | 131 [DOMDebugger, Inline=FastReturn] |
140 void didFireWebGLErrorOrWarning(Element*, const String& message); | 132 void didFireWebGLErrorOrWarning(Element*, const String& message); |
141 | 133 |
142 [DOMDebugger, Debugger, Timeline, Inline=FastReturn] | 134 [AsyncCallTracker, DOMDebugger, Inline=FastReturn] |
143 void didInstallTimer([Keep] ExecutionContext*, int timerId, int timeout, boo
l singleShot); | 135 void didInstallTimer([Keep] ExecutionContext*, int timerId, int timeout, boo
l singleShot); |
144 | 136 |
145 [DOMDebugger, Debugger, Timeline, Inline=FastReturn] | 137 [AsyncCallTracker, DOMDebugger, Inline=FastReturn] |
146 void didRemoveTimer([Keep] ExecutionContext*, int timerId); | 138 void didRemoveTimer([Keep] ExecutionContext*, int timerId); |
147 | 139 |
148 [Timeline, Inline=FastReturn] | 140 [Debugger, Inline=FastReturn] |
149 InspectorInstrumentationCookie willCallFunction([Keep] ExecutionContext*, in
t scriptId, const String& scriptName, int scriptLine); | 141 InspectorInstrumentationCookie willCallFunction([Keep] ExecutionContext*, co
nst DevToolsFunctionInfo&); |
150 | 142 |
151 [Timeline, Inline=FastReturn] | 143 [Debugger, Inline=FastReturn] |
152 void didCallFunction(const InspectorInstrumentationCookie&); | 144 void didCallFunction(const InspectorInstrumentationCookie&); |
153 | 145 |
154 [Timeline, Inline=FastReturn] | 146 [AsyncCallTracker, Inline=FastReturn] |
155 InspectorInstrumentationCookie willDispatchXHRReadyStateChangeEvent([Keep] E
xecutionContext*, XMLHttpRequest*); | 147 void didEnqueueEvent([Keep] EventTarget*, Event*); |
156 | 148 |
157 [Timeline, Inline=FastReturn] | 149 [AsyncCallTracker, Inline=FastReturn] |
158 void didDispatchXHRReadyStateChangeEvent(const InspectorInstrumentationCooki
e&); | 150 void didRemoveEvent([Keep] EventTarget*, Event*); |
159 | 151 |
160 [Timeline, Inline=FastReturn] | 152 [AsyncCallTracker, DOMDebugger, Inline=FastReturn] |
161 InspectorInstrumentationCookie willDispatchEvent([Keep] Document*, const Eve
nt&, LocalDOMWindow*, Node*, const EventPath&); | 153 InspectorInstrumentationCookie willHandleEvent([Keep] EventTarget*, Event*,
EventListener* listener, bool useCapture); |
162 | 154 |
163 [Timeline, Inline=FastReturn] | 155 [AsyncCallTracker, Debugger, Inline=FastReturn] |
164 void didDispatchEvent(const InspectorInstrumentationCookie&); | 156 void didHandleEvent(const InspectorInstrumentationCookie&); |
| 157 |
| 158 [AsyncCallTracker, Inline=FastReturn] |
| 159 void didEnqueueMutationRecord([Keep] ExecutionContext*, MutationObserver*); |
| 160 |
| 161 [AsyncCallTracker, Inline=FastReturn] |
| 162 void didClearAllMutationRecords([Keep] ExecutionContext*, MutationObserver*)
; |
| 163 |
| 164 [AsyncCallTracker, Inline=FastReturn] |
| 165 void willDeliverMutationRecords([Keep] ExecutionContext*, MutationObserver*)
; |
| 166 |
| 167 [AsyncCallTracker, Inline=FastReturn] |
| 168 void didDeliverMutationRecords(ExecutionContext*); |
| 169 |
| 170 [AsyncCallTracker, Inline=FastReturn] |
| 171 void didPostExecutionContextTask([Keep] ExecutionContext*, ExecutionContextT
ask*); |
| 172 |
| 173 [AsyncCallTracker, Inline=FastReturn] |
| 174 void didKillAllExecutionContextTasks([Keep] ExecutionContext*); |
| 175 |
| 176 [AsyncCallTracker, Inline=FastReturn] |
| 177 void willPerformExecutionContextTask([Keep] ExecutionContext*, ExecutionCont
extTask*); |
| 178 |
| 179 [AsyncCallTracker, Inline=FastReturn] |
| 180 void didPerformExecutionContextTask(ExecutionContext*); |
| 181 |
| 182 [Debugger, DOMDebugger, Inline=FastReturn] |
| 183 InspectorInstrumentationCookie willEvaluateScript([Keep] LocalFrame*, const
String& url, int lineNumber); |
165 | 184 |
166 [Debugger, Inline=FastReturn] | 185 [Debugger, Inline=FastReturn] |
167 void didEnqueueEvent([Keep] EventTarget*, Event*); | |
168 | |
169 [Debugger, Inline=FastReturn] | |
170 void didRemoveEvent([Keep] EventTarget*, Event*); | |
171 | |
172 [Debugger, DOMDebugger, Inline=FastReturn] | |
173 InspectorInstrumentationCookie willHandleEvent([Keep] EventTarget*, Event*,
EventListener* listener, bool useCapture); | |
174 | |
175 [Debugger, Inline=FastReturn] | |
176 void didHandleEvent(const InspectorInstrumentationCookie&); | |
177 | |
178 [Timeline, Inline=FastReturn] | |
179 InspectorInstrumentationCookie willDispatchEventOnWindow(LocalFrame*, const
Event&, LocalDOMWindow*); | |
180 | |
181 [Timeline, Inline=FastReturn] | |
182 void didDispatchEventOnWindow(const InspectorInstrumentationCookie&); | |
183 | |
184 [Debugger, Inline=FastReturn] | |
185 void didEnqueueMutationRecord([Keep] ExecutionContext*, MutationObserver*); | |
186 | |
187 [Debugger, Inline=FastReturn] | |
188 void didClearAllMutationRecords([Keep] ExecutionContext*, MutationObserver*)
; | |
189 | |
190 [Debugger, Inline=FastReturn] | |
191 void willDeliverMutationRecords([Keep] ExecutionContext*, MutationObserver*)
; | |
192 | |
193 [Debugger, Inline=FastReturn] | |
194 void didDeliverMutationRecords(ExecutionContext*); | |
195 | |
196 [Debugger, Inline=FastReturn] | |
197 void didPostExecutionContextTask([Keep] ExecutionContext*, ExecutionContextT
ask*); | |
198 | |
199 [Debugger, Inline=FastReturn] | |
200 void didKillAllExecutionContextTasks([Keep] ExecutionContext*); | |
201 | |
202 [Debugger, Inline=FastReturn] | |
203 void willPerformExecutionContextTask([Keep] ExecutionContext*, ExecutionCont
extTask*); | |
204 | |
205 [Debugger, Inline=FastReturn] | |
206 void didPerformExecutionContextTask(ExecutionContext*); | |
207 | |
208 [Timeline, Inline=FastReturn] | |
209 InspectorInstrumentationCookie willEvaluateScript([Keep] LocalFrame*, const
String& url, int lineNumber); | |
210 | |
211 [Timeline, Inline=FastReturn] | |
212 void didEvaluateScript(const InspectorInstrumentationCookie&); | 186 void didEvaluateScript(const InspectorInstrumentationCookie&); |
213 | 187 |
| 188 [PageRuntime] |
| 189 void didCreateScriptContext([Keep] LocalFrame*, ScriptState*, SecurityOrigin
*, int worldId); |
| 190 |
214 [PageRuntime, Inline=FastReturn] | 191 [PageRuntime, Inline=FastReturn] |
215 void didCreateIsolatedContext([Keep] LocalFrame*, ScriptState*, SecurityOrig
in*); | 192 void willReleaseScriptContext([Keep] LocalFrame*, ScriptState*); |
216 | 193 |
217 [DOMDebugger, Debugger, Timeline, Inline=FastReturn] | 194 [AsyncCallTracker, DOMDebugger, Inline=FastReturn] |
218 InspectorInstrumentationCookie willFireTimer([Keep] ExecutionContext*, int t
imerId); | 195 InspectorInstrumentationCookie willFireTimer([Keep] ExecutionContext*, int t
imerId); |
219 | 196 |
220 [Debugger, Timeline, Inline=FastReturn] | 197 [AsyncCallTracker, Debugger, Inline=FastReturn] |
221 void didFireTimer(const InspectorInstrumentationCookie&); | 198 void didFireTimer(const InspectorInstrumentationCookie&); |
222 | 199 |
223 [Timeline, Inline=FastReturn] | 200 [Page, Inline=FastReturn] |
224 void didInvalidateLayout([Keep] LocalFrame*); | 201 void didLayout(LocalFrame*); |
225 | |
226 [Timeline, Inline=FastReturn] | |
227 InspectorInstrumentationCookie willLayout([Keep] LocalFrame*); | |
228 | |
229 [Timeline, Page, Inline=FastReturn] | |
230 void didLayout(const InspectorInstrumentationCookie&, RenderObject* root); | |
231 | 202 |
232 [Page, Inline=FastReturn] | 203 [Page, Inline=FastReturn] |
233 void didScroll(Page*); | 204 void didScroll(LocalFrame*); |
234 | 205 |
235 [Page, Inline=FastReturn] | 206 [Page, Inline=FastReturn] |
236 void didResizeMainFrame(Page*); | 207 void didResizeMainFrame(LocalFrame*); |
237 | 208 |
238 [Timeline, Inline=FastReturn] | 209 [AsyncCallTracker, Inline=FastReturn] |
239 InspectorInstrumentationCookie willDispatchXHRLoadEvent([Keep] ExecutionCont
ext*, XMLHttpRequest*); | |
240 | |
241 [Timeline, Inline=FastReturn] | |
242 void didDispatchXHRLoadEvent(const InspectorInstrumentationCookie&); | |
243 | |
244 [Debugger, Inline=FastReturn] | |
245 void didDispatchXHRLoadendEvent(ExecutionContext*, XMLHttpRequest*); | 210 void didDispatchXHRLoadendEvent(ExecutionContext*, XMLHttpRequest*); |
246 | 211 |
247 [Timeline, Inline=FastReturn] | 212 [LayerTree, Inline=FastReturn] |
248 void willScrollLayer([Keep] RenderObject*); | 213 void didPaint([Keep] LayoutObject*, const GraphicsLayer*, GraphicsContext*,
const LayoutRect&); |
249 | 214 |
250 [Timeline, Inline=FastReturn] | 215 [Resource, Inline=FastReturn] |
251 void didScrollLayer(RenderObject*); | |
252 | |
253 [Timeline, Inline=FastReturn] | |
254 void willPaint([Keep] RenderObject*, const GraphicsLayer*); | |
255 | |
256 [Timeline, Page, LayerTree, Inline=FastReturn] | |
257 void didPaint([Keep] RenderObject*, const GraphicsLayer*, GraphicsContext*,
const LayoutRect&); | |
258 | |
259 [Timeline, Inline=FastReturn] | |
260 void willPaintImage([Keep] RenderImage*); | |
261 | |
262 [Timeline, Inline=FastReturn] | |
263 void didPaintImage(RenderImage*); | |
264 | |
265 [Resource, Timeline, Inline=FastReturn] | |
266 InspectorInstrumentationCookie willRecalculateStyle([Keep] Document*); | 216 InspectorInstrumentationCookie willRecalculateStyle([Keep] Document*); |
267 | 217 |
268 [Timeline, Resource, Page, Inline=FastReturn] | 218 [Resource, Inline=FastReturn] |
269 void didRecalculateStyle(const InspectorInstrumentationCookie&, int elementC
ount); | 219 void didRecalculateStyle(const InspectorInstrumentationCookie&, int elementC
ount); |
270 | 220 |
271 [Timeline, Resource, Inline=FastReturn] | 221 [Resource, Inline=FastReturn] |
272 void didScheduleStyleRecalculation([Keep] Document*); | 222 void didScheduleStyleRecalculation([Keep] Document*); |
273 | 223 |
274 [Resource, Inline=FastReturn] | 224 [Resource, Inline=FastReturn] |
275 void applyUserAgentOverride(LocalFrame*, String* userAgent); | 225 void applyUserAgentOverride(LocalFrame*, String* userAgent); |
276 | 226 |
277 [Page, Inline=FastReturn] | 227 [Resource] |
278 bool applyViewportStyleOverride(Document*, StyleResolver*); | |
279 | |
280 [Page, Inline=FastReturn] | |
281 void applyEmulatedMedia(LocalFrame*, String* media); | |
282 | |
283 [Timeline, Resource] | |
284 void willSendRequest(LocalFrame*, unsigned long identifier, DocumentLoader*,
ResourceRequest&, const ResourceResponse& redirectResponse, const FetchInitiato
rInfo&); | 228 void willSendRequest(LocalFrame*, unsigned long identifier, DocumentLoader*,
ResourceRequest&, const ResourceResponse& redirectResponse, const FetchInitiato
rInfo&); |
285 | 229 |
286 [Resource] | 230 [Resource] |
287 void markResourceAsCached(Page*, unsigned long identifier); | 231 void markResourceAsCached(LocalFrame*, unsigned long identifier); |
288 | 232 |
289 [Timeline, Resource] | 233 [Resource] |
290 void didReceiveResourceResponse([Keep] LocalFrame*, unsigned long identifier
, DocumentLoader*, const ResourceResponse&, ResourceLoader*); | 234 void didReceiveResourceResponse([Keep] LocalFrame*, unsigned long identifier
, DocumentLoader*, const ResourceResponse&, ResourceLoader*); |
291 | 235 |
292 [Inline=Forward] | 236 [Inline=Forward] |
293 void continueAfterXFrameOptionsDenied(LocalFrame* frame, DocumentLoader* loa
der, unsigned long identifier, const ResourceResponse& r); | 237 void continueAfterXFrameOptionsDenied(LocalFrame* frame, DocumentLoader* loa
der, unsigned long identifier, const ResourceResponse& r); |
294 | 238 |
295 [Inline=Forward] | 239 [Inline=Forward] |
296 void continueWithPolicyIgnore(LocalFrame* frame, DocumentLoader* loader, uns
igned long identifier, const ResourceResponse& r); | 240 void continueWithPolicyIgnore(LocalFrame* frame, DocumentLoader* loader, uns
igned long identifier, const ResourceResponse& r); |
297 | 241 |
298 [Timeline, Resource, Inline=FastReturn] | 242 [Resource, Inline=FastReturn] |
299 void didReceiveData([Keep] LocalFrame*, unsigned long identifier, const char
* data, int dataLength, int encodedDataLength); | 243 void didReceiveData([Keep] LocalFrame*, unsigned long identifier, const char
* data, int dataLength, int encodedDataLength); |
300 | 244 |
301 [Timeline, Resource] | 245 [Resource] |
302 void didFinishLoading(LocalFrame* frame, unsigned long identifier, DocumentL
oader*, double finishTime, int64_t encodedDataLength); | 246 void didFinishLoading(LocalFrame* frame, unsigned long identifier, double fi
nishTime, int64_t encodedDataLength); |
303 | 247 |
304 [Resource] | 248 [Resource] |
305 void didReceiveCORSRedirectResponse([Keep] LocalFrame*, unsigned long identi
fier, DocumentLoader*, const ResourceResponse&, ResourceLoader*); | 249 void didReceiveCORSRedirectResponse([Keep] LocalFrame*, unsigned long identi
fier, DocumentLoader*, const ResourceResponse&, ResourceLoader*); |
306 | 250 |
307 [Timeline, Resource, Console] // Console should come AFTER Resource notifica
tion, front-end relies on this. | 251 [Resource] |
308 void didFailLoading(LocalFrame* frame, unsigned long identifier, const Resou
rceError&); | 252 void didFailLoading(LocalFrame* frame, unsigned long identifier, const Resou
rceError&); |
309 | 253 |
310 [Resource] | 254 [Resource] |
311 void documentThreadableLoaderStartedLoadingForClient(ExecutionContext*, unsi
gned long identifier, ThreadableLoaderClient* client); | 255 void documentThreadableLoaderStartedLoadingForClient(ExecutionContext*, unsi
gned long identifier, ThreadableLoaderClient* client); |
312 | 256 |
313 [Debugger, Resource] | 257 [Resource] |
| 258 void willSendEventSourceRequest(ExecutionContext*, ThreadableLoaderClient* e
ventSource); |
| 259 |
| 260 [Resource] |
| 261 void willDispachEventSourceEvent(ExecutionContext*, ThreadableLoaderClient*
eventSource, const AtomicString& eventName, const AtomicString& eventId, const V
ector<UChar>& data); |
| 262 |
| 263 [Resource] |
| 264 void didFinishEventSourceRequest(ExecutionContext*, ThreadableLoaderClient*
eventSource); |
| 265 |
| 266 [AsyncCallTracker, Resource] |
314 void willLoadXHR(ExecutionContext*, XMLHttpRequest* xhr, ThreadableLoaderCli
ent* client, const AtomicString& method, const KURL& url, bool async, PassRefPtr
<FormData>, const HTTPHeaderMap& headers, bool includeCredentials); | 267 void willLoadXHR(ExecutionContext*, XMLHttpRequest* xhr, ThreadableLoaderCli
ent* client, const AtomicString& method, const KURL& url, bool async, PassRefPtr
<FormData>, const HTTPHeaderMap& headers, bool includeCredentials); |
315 | 268 |
316 [Resource] | 269 [Resource] |
317 void didFailXHRLoading(ExecutionContext*, XMLHttpRequest* xhr, ThreadableLoa
derClient* client); | 270 void didFailXHRLoading([Keep] ExecutionContext*, XMLHttpRequest* xhr, Thread
ableLoaderClient* client, const AtomicString& method, const String& url); |
318 | 271 |
319 [Console, Resource] | 272 [Resource] |
320 void didFinishXHRLoading(ExecutionContext*, XMLHttpRequest* xhr, ThreadableL
oaderClient* client, unsigned long identifier, ScriptString sourceString, const
AtomicString& method, const String& url, const String& sendURL, unsigned sendLin
eNumber); | 273 void didFinishXHRLoading([Keep] ExecutionContext*, XMLHttpRequest* xhr, Thre
adableLoaderClient* client, const AtomicString& method, const String& url); |
321 | 274 |
322 [Resource] | 275 [Resource] |
323 void scriptImported(ExecutionContext*, unsigned long identifier, const Strin
g& sourceString); | 276 void scriptImported(ExecutionContext*, unsigned long identifier, const Strin
g& sourceString); |
324 | 277 |
325 [Debugger] | 278 [Debugger] |
326 void scriptExecutionBlockedByCSP(ExecutionContext*, const String& directiveT
ext); | 279 void scriptExecutionBlockedByCSP(ExecutionContext*, const String& directiveT
ext); |
327 | 280 |
328 [Resource] | 281 [Resource] |
329 void didReceiveScriptResponse(ExecutionContext*, unsigned long identifier); | 282 void didReceiveScriptResponse(ExecutionContext*, unsigned long identifier); |
330 | 283 |
331 [Timeline, Inspector, DOM, Page] | 284 [PageDebugger] |
| 285 void didStartProvisionalLoad([Keep] LocalFrame*); |
| 286 |
| 287 [DOM, Page] |
332 void domContentLoadedEventFired([Keep] LocalFrame*); | 288 void domContentLoadedEventFired([Keep] LocalFrame*); |
333 | 289 |
334 [Timeline, Page] | 290 [Page] |
335 void loadEventFired([Keep] LocalFrame*); | 291 void loadEventFired([Keep] LocalFrame*); |
336 | 292 |
337 [Page] | 293 [Page] |
338 void frameAttachedToParent([Keep] LocalFrame*); | 294 void frameAttachedToParent([Keep] LocalFrame*); |
339 | 295 |
340 [Canvas, Page] | 296 [Page] |
341 void frameDetachedFromParent([Keep] LocalFrame*); | 297 void frameDetachedFromParent([Keep] LocalFrame*); |
342 | 298 |
343 [Resource, DOM, Canvas, Page, PageDebugger] | 299 [Resource, DOM, Page] |
344 void didCommitLoad([Keep] LocalFrame*, DocumentLoader*); | 300 void didCommitLoad([Keep] LocalFrame*, DocumentLoader*); |
345 | 301 |
346 [DOM, Inline=FastReturn] | 302 [DOM, Inline=FastReturn] |
347 void frameDocumentUpdated([Keep] LocalFrame*); | 303 void frameDocumentUpdated([Keep] LocalFrame*); |
348 | 304 |
349 [Page] | 305 [Page] |
350 void loaderDetachedFromFrame(LocalFrame*, DocumentLoader*); | |
351 | |
352 [Page] | |
353 void frameStartedLoading([Keep] LocalFrame*); | 306 void frameStartedLoading([Keep] LocalFrame*); |
354 | 307 |
355 [Page] | 308 [Page] |
356 void frameStoppedLoading([Keep] LocalFrame*); | 309 void frameStoppedLoading([Keep] LocalFrame*); |
357 | 310 |
358 [Page, Resource] | 311 [Page, Resource] |
359 void frameScheduledNavigation([Keep] LocalFrame*, double delay); | 312 void frameScheduledNavigation([Keep] LocalFrame*, double delay); |
360 | 313 |
361 [Page, Resource] | 314 [Page, Resource] |
362 void frameClearedScheduledNavigation([Keep] LocalFrame*); | 315 void frameClearedScheduledNavigation([Keep] LocalFrame*); |
363 | 316 |
364 [Page, Inline=FastReturn] | 317 [Page, Inline=FastReturn] |
365 InspectorInstrumentationCookie willRunJavaScriptDialog(Page*, const String&
message); | 318 InspectorInstrumentationCookie willRunJavaScriptDialog(LocalFrame*, const St
ring& message, ChromeClient::DialogType dialogType); |
366 | 319 |
367 [Page, Inline=FastReturn] | 320 [Page, Inline=FastReturn] |
368 void didRunJavaScriptDialog(const InspectorInstrumentationCookie&); | 321 void didRunJavaScriptDialog(const InspectorInstrumentationCookie&, bool resu
lt); |
369 | 322 |
370 [Inline=Forward] | 323 [Inline=Forward] |
371 void willDestroyResource(Resource* cachedResource); | 324 void willDestroyResource(Resource* cachedResource); |
372 | 325 |
373 [Timeline, Inline=FastReturn] | 326 [AsyncCallTracker, DOMDebugger] |
374 InspectorInstrumentationCookie willWriteHTML([Keep] Document*, unsigned star
tLine); | 327 void didRequestAnimationFrame([Keep] ExecutionContext*, int callbackId); |
375 | 328 |
376 [Timeline, Inline=FastReturn] | 329 [AsyncCallTracker, DOMDebugger] |
377 void didWriteHTML(const InspectorInstrumentationCookie&, unsigned endLine); | 330 void didCancelAnimationFrame([Keep] ExecutionContext*, int callbackId); |
378 | 331 |
379 [DOMDebugger, Debugger, Timeline] | 332 [AsyncCallTracker, DOMDebugger] |
380 void didRequestAnimationFrame([Keep] Document*, int callbackId); | 333 InspectorInstrumentationCookie willFireAnimationFrame([Keep] ExecutionContex
t*, int callbackId); |
381 | 334 |
382 [DOMDebugger, Debugger, Timeline] | 335 [AsyncCallTracker, Inline=FastReturn] |
383 void didCancelAnimationFrame([Keep] Document*, int callbackId); | |
384 | |
385 [DOMDebugger, Debugger, Timeline] | |
386 InspectorInstrumentationCookie willFireAnimationFrame([Keep] Document*, int
callbackId); | |
387 | |
388 [Timeline, Debugger, Inline=FastReturn] | |
389 void didFireAnimationFrame(const InspectorInstrumentationCookie&); | 336 void didFireAnimationFrame(const InspectorInstrumentationCookie&); |
390 | 337 |
391 [DOMStorage, Inline=FastReturn] | |
392 void didDispatchDOMStorageEvent(Page* page, const String& key, const String&
oldValue, const String& newValue, StorageType storageType, SecurityOrigin* secu
rityOrigin); | |
393 | |
394 [Worker] | 338 [Worker] |
395 void didStartWorker(ExecutionContext*, WorkerInspectorProxy* proxy, const KU
RL& url); | 339 void didStartWorker(ExecutionContext*, WorkerInspectorProxy* proxy, const KU
RL& url); |
396 | 340 |
397 [Worker] | 341 [Worker, PageConsole] |
398 void workerTerminated(ExecutionContext*, WorkerInspectorProxy* proxy); | 342 void workerTerminated(ExecutionContext*, WorkerInspectorProxy* proxy); |
399 | 343 |
400 [WorkerRuntime] | 344 [Profiler] |
401 void willEvaluateWorkerScript([Keep] WorkerGlobalScope* context, int workerT
hreadStartMode); | |
402 | |
403 [Profiler, Timeline] | |
404 void willProcessTask(WorkerGlobalScope* context); | 345 void willProcessTask(WorkerGlobalScope* context); |
405 | 346 |
406 [Profiler, Timeline] | 347 [Profiler] |
407 void didProcessTask(WorkerGlobalScope* context); | 348 void didProcessTask(WorkerGlobalScope* context); |
408 | 349 |
409 [Profiler] | 350 [Profiler] |
410 void willEnterNestedRunLoop(WorkerGlobalScope* context); | 351 void willEnterNestedRunLoop(WorkerGlobalScope* context); |
411 | 352 |
412 [Profiler] | 353 [Profiler] |
413 void didLeaveNestedRunLoop(WorkerGlobalScope* context); | 354 void didLeaveNestedRunLoop(WorkerGlobalScope* context); |
414 | 355 |
415 [Resource, Timeline] | 356 [Resource] |
416 void didCreateWebSocket([Keep] Document*, unsigned long identifier, const KU
RL& requestURL, const String& protocol); | 357 void didCreateWebSocket([Keep] Document*, unsigned long identifier, const KU
RL& requestURL, const String& protocol); |
417 | 358 |
418 [Resource, Timeline] | 359 [Resource] |
419 void willSendWebSocketHandshakeRequest([Keep] Document*, unsigned long ident
ifier, const WebSocketHandshakeRequest* request); | 360 void willSendWebSocketHandshakeRequest([Keep] Document*, unsigned long ident
ifier, const WebSocketHandshakeRequest* request); |
420 | 361 |
421 [Resource, Timeline] | 362 [Resource] |
422 void didReceiveWebSocketHandshakeResponse([Keep] Document*, unsigned long id
entifier, const WebSocketHandshakeRequest* request, const WebSocketHandshakeResp
onse* response); | 363 void didReceiveWebSocketHandshakeResponse([Keep] Document*, unsigned long id
entifier, const WebSocketHandshakeRequest* request, const WebSocketHandshakeResp
onse* response); |
423 | 364 |
424 [Resource, Timeline] | 365 [Resource] |
425 void didCloseWebSocket([Keep] Document*, unsigned long identifier); | 366 void didCloseWebSocket([Keep] Document*, unsigned long identifier); |
426 | 367 |
427 [Resource] | 368 [Resource] |
428 void didReceiveWebSocketFrame(Document*, unsigned long identifier, int opCod
e, bool masked, const char* payload, size_t payloadLength); | 369 void didReceiveWebSocketFrame(Document*, unsigned long identifier, int opCod
e, bool masked, const char* payload, size_t payloadLength); |
429 | 370 |
430 [Resource] | 371 [Resource] |
431 void didSendWebSocketFrame(Document*, unsigned long identifier, int opCode,
bool masked, const char* payload, size_t payloadLength); | 372 void didSendWebSocketFrame(Document*, unsigned long identifier, int opCode,
bool masked, const char* payload, size_t payloadLength); |
432 | 373 |
433 [Resource] | 374 [Resource] |
434 void didReceiveWebSocketFrameError(Document*, unsigned long identifier, cons
t String& errorMessage); | 375 void didReceiveWebSocketFrameError(Document*, unsigned long identifier, cons
t String& errorMessage); |
435 | 376 |
436 [ApplicationCache, Inline=FastReturn] | 377 [ApplicationCache, Inline=FastReturn] |
437 void networkStateChanged(Page*, bool online); | 378 void networkStateChanged([Keep] LocalFrame*, bool online); |
438 | 379 |
439 [ApplicationCache, Inline=FastReturn] | 380 [ApplicationCache, Inline=FastReturn] |
440 void updateApplicationCacheStatus([Keep] LocalFrame*); | 381 void updateApplicationCacheStatus([Keep] LocalFrame*); |
441 | 382 |
442 [Timeline, Inline=FastReturn] | 383 [LayerTree, Inline=FastReturn] |
443 void willUpdateLayerTree(LocalFrame*); | |
444 [Timeline, LayerTree, Inline=FastReturn] | |
445 void layerTreeDidChange(LocalFrame*); | 384 void layerTreeDidChange(LocalFrame*); |
446 [Timeline, Inline=FastReturn] | |
447 void didUpdateLayerTree(LocalFrame*); | |
448 | 385 |
449 [DOM, Inline=FastReturn] | 386 [DOM, Inline=FastReturn] |
450 void pseudoElementCreated([Keep] PseudoElement*); | 387 void pseudoElementCreated([Keep] PseudoElement*); |
451 | 388 |
452 [DOM, Inline=FastReturn] | 389 [DOM, Inline=FastReturn] |
453 void pseudoElementDestroyed([Keep] PseudoElement*); | 390 void pseudoElementDestroyed([Keep] PseudoElement*); |
454 | 391 |
455 [DOMDebugger, Inline=FastReturn] | 392 [AsyncCallTracker, Inline=FastReturn] |
456 void willExecuteCustomElementCallback([Keep] Element*); | |
457 | |
458 [Debugger, Inline=FastReturn] | |
459 int traceAsyncOperationStarting([Keep] ExecutionContext*, const String& oper
ationName); | 393 int traceAsyncOperationStarting([Keep] ExecutionContext*, const String& oper
ationName); |
460 | 394 |
461 [Debugger, Inline=FastReturn] | 395 [AsyncCallTracker, Inline=FastReturn] |
462 int traceAsyncOperationStarting([Keep] ExecutionContext*, const String& oper
ationName, int prevOperationId); | 396 int traceAsyncOperationStarting([Keep] ExecutionContext*, const String& oper
ationName, int prevOperationId); |
463 | 397 |
464 [Debugger, Inline=FastReturn] | 398 [AsyncCallTracker, Inline=FastReturn] |
465 void traceAsyncOperationCompleted([Keep] ExecutionContext*, int operationId)
; | 399 void traceAsyncOperationCompleted([Keep] ExecutionContext*, int operationId)
; |
466 | 400 |
467 [Debugger, Inline=FastReturn] | 401 [AsyncCallTracker, Inline=FastReturn] |
468 InspectorInstrumentationCookie traceAsyncOperationCompletedCallbackStarting(
[Keep] ExecutionContext*, int operationId); | 402 InspectorInstrumentationCookie traceAsyncOperationCompletedCallbackStarting(
[Keep] ExecutionContext*, int operationId); |
469 | 403 |
470 [Debugger, Inline=FastReturn] | 404 [AsyncCallTracker, Inline=FastReturn] |
471 InspectorInstrumentationCookie traceAsyncCallbackStarting([Keep] ExecutionCo
ntext*, int operationId); | 405 InspectorInstrumentationCookie traceAsyncCallbackStarting([Keep] ExecutionCo
ntext*, int operationId); |
472 | 406 |
473 [Debugger, Inline=FastReturn] | 407 [AsyncCallTracker, Inline=FastReturn] |
474 void traceAsyncCallbackCompleted(const InspectorInstrumentationCookie&); | 408 void traceAsyncCallbackCompleted(const InspectorInstrumentationCookie&); |
| 409 |
| 410 [Animation, Inline=FastReturn] |
| 411 void didCreateAnimation(Document*, Animation* player); |
| 412 |
| 413 [Animation, Inline=FastReturn] |
| 414 void didCancelAnimation(Document*, Animation* player); |
475 } | 415 } |
476 | 416 |
477 interface InspectorConsoleInstrumentation { | 417 interface InspectorConsoleInstrumentation { |
478 | 418 |
479 #include "core/inspector/ScriptArguments.h" | 419 #include "core/inspector/ScriptArguments.h" |
480 | 420 |
481 class ConsoleMessage; | 421 class ConsoleMessage; |
482 | 422 |
483 [Console, Debugger] | 423 [Console] |
484 void addMessageToConsole(ExecutionContext* context, ConsoleMessage* consoleM
essage); | 424 void addMessageToConsole(ExecutionContext* context, ConsoleMessage* consoleM
essage); |
485 | 425 |
486 [Timeline] | |
487 void consoleTime([Keep] ExecutionContext* context, const String& title); | |
488 | |
489 [Timeline] | |
490 void consoleTimeEnd([Keep] ExecutionContext* context, const String& title, S
criptState* state); | |
491 | |
492 [Timeline, Inline=FastReturn] | |
493 void consoleTimeStamp([Keep] ExecutionContext* context, const String& title)
; | |
494 | |
495 [Console, Inline=FastReturn] | |
496 void consoleTimeline([Keep] ExecutionContext* context, const String& title,
ScriptState* state); | |
497 | |
498 [Console, Inline=FastReturn] | |
499 void consoleTimelineEnd([Keep] ExecutionContext* context, const String& titl
e, ScriptState* state); | |
500 | |
501 [Profiler, Inline=FastReturn] | 426 [Profiler, Inline=FastReturn] |
502 void consoleProfile([Keep] ExecutionContext* context, const String& title); | 427 void consoleProfile([Keep] ExecutionContext* context, const String& title); |
503 | 428 |
504 [Profiler, Inline=FastReturn] | 429 [Profiler, Inline=FastReturn] |
505 void consoleProfileEnd(ExecutionContext* context, const String& title); | 430 void consoleProfileEnd(ExecutionContext* context, const String& title); |
506 | 431 |
507 [Console] | 432 [Console] |
508 void consoleMessagesCleared(ExecutionContext* context); | 433 void consoleMessagesCleared(ExecutionContext* context); |
509 } | 434 } |
510 | 435 |
511 interface InspectorOverrides { | 436 interface InspectorOverrides { |
512 [CSS, Inline=FastReturn] | 437 [CSS, Inline=FastReturn] |
513 bool forcePseudoState([Keep] Element* element, CSSSelector::PseudoType pseud
oState); | 438 bool forcePseudoState([Keep] Element* element, CSSSelector::PseudoType pseud
oState); |
514 | 439 |
515 [Worker, Inline=FastReturn] | 440 [Worker, Inline=FastReturn] |
516 bool shouldPauseDedicatedWorkerOnStart(ExecutionContext* context); | 441 bool shouldPauseDedicatedWorkerOnStart(ExecutionContext* context); |
517 | 442 |
518 [Resource, Inline=FastReturn] | 443 [Resource, Inline=FastReturn] |
519 bool shouldForceCORSPreflight(Document*); | 444 bool shouldForceCORSPreflight(Document*); |
520 } | 445 } |
521 | |
522 | |
523 interface InspectorCanvasInstrumentation { | |
524 | |
525 #include "bindings/common/ScriptValue.h" | |
526 | |
527 [Canvas] | |
528 ScriptValue wrapCanvas2DRenderingContextForInstrumentation(Document*, const
ScriptValue&); | |
529 | |
530 [Canvas] | |
531 ScriptValue wrapWebGLRenderingContextForInstrumentation(Document*, const Scr
iptValue&); | |
532 } | |
OLD | NEW |