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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 * Inline=FastReturn - return early from the inline method if there are
no frontends. | 45 * Inline=FastReturn - return early from the inline method if there are
no frontends. |
46 * Inline=Forward - generate a simple forwarding inline method that doe
s not | 46 * Inline=Forward - generate a simple forwarding inline method that doe
s not |
47 modify the parameter list (implies Inline=FastRetur
n) | 47 modify the parameter list (implies Inline=FastRetur
n) |
48 * Attributes without "=" are the names of the agents to be invoked. | 48 * Attributes without "=" are the names of the agents to be invoked. |
49 * Examples: DOM, Page, Debugger. | 49 * Examples: DOM, Page, Debugger. |
50 * | 50 * |
51 * paramAttr - optional attribute controlling the parameters handling (one attr
ibute per parameter max). | 51 * paramAttr - optional attribute controlling the parameters handling (one attr
ibute per parameter max). |
52 * Keep - pass first parameter (used to access the InstrumentingAgents inst
ance) to agents. | 52 * Keep - pass first parameter (used to access the InstrumentingAgents inst
ance) to agents. |
53 * FastReturn - return early from the inline method if this parameter is 0/
false. | 53 * FastReturn - return early from the inline method if this parameter is 0/
false. |
54 * | 54 * |
55 * returnValue: C++ return value. Only "void", "bool" and "InspectorInstrumenta
tionCookie" are supported. | 55 * returnValue: C++ return value. Only "void" and "InspectorInstrumentationCook
ie" are supported. |
56 * | 56 * |
57 * methodName: C++ name for the public instrumentation method and agents method
s. | 57 * methodName: C++ name for the public instrumentation method and agents method
s. |
58 * | 58 * |
59 * paramList: C++ parameter list with optional names. Names will be deduced fro
m types if omitted but you have to | 59 * paramList: C++ parameter list with optional names. Names will be deduced fro
m types if omitted but you have to |
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 // Forward declarations. | |
71 class AsyncFileSystemCallbacks; | |
72 | |
73 [Page, Inspector, PageDebugger, PageRuntime] | 70 [Page, Inspector, PageDebugger, PageRuntime] |
74 void didClearDocumentOfWindowObject([Keep] LocalFrame*); | 71 void didClearDocumentOfWindowObject([Keep] LocalFrame*); |
75 | 72 |
76 [DOMDebugger, Inline=FastReturn] | 73 [DOMDebugger, Inline=FastReturn] |
77 void willInsertDOMNode([Keep] Node* parent); | 74 void willInsertDOMNode([Keep] Node* parent); |
78 | 75 |
79 [DOM, DOMDebugger, Inline=FastReturn] | 76 [DOM, DOMDebugger, Inline=FastReturn] |
80 void didInsertDOMNode([Keep] Node*); | 77 void didInsertDOMNode([Keep] Node*); |
81 | 78 |
82 [DOMDebugger, DOM, Inline=FastReturn] | 79 [DOMDebugger, DOM, Inline=FastReturn] |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 | 195 |
199 [Debugger, Inline=FastReturn] | 196 [Debugger, Inline=FastReturn] |
200 void didKillAllExecutionContextTasks([Keep] ExecutionContext*); | 197 void didKillAllExecutionContextTasks([Keep] ExecutionContext*); |
201 | 198 |
202 [Debugger, Inline=FastReturn] | 199 [Debugger, Inline=FastReturn] |
203 void willPerformExecutionContextTask([Keep] ExecutionContext*, ExecutionCont
extTask*); | 200 void willPerformExecutionContextTask([Keep] ExecutionContext*, ExecutionCont
extTask*); |
204 | 201 |
205 [Debugger, Inline=FastReturn] | 202 [Debugger, Inline=FastReturn] |
206 void didPerformExecutionContextTask(ExecutionContext*); | 203 void didPerformExecutionContextTask(ExecutionContext*); |
207 | 204 |
208 [Debugger, Inline=FastReturn] | |
209 void didEnqueueAsyncFileSystemCallback([Keep] ExecutionContext*, AsyncFileSy
stemCallbacks*); | |
210 | |
211 [Debugger, Inline=FastReturn] | |
212 void didRemoveAsyncFileSystemCallback([Keep] ExecutionContext*, AsyncFileSys
temCallbacks*); | |
213 | |
214 [Debugger, Inline=FastReturn] | |
215 void willHandleAsyncFileSystemCallback([Keep] ExecutionContext*, AsyncFileSy
stemCallbacks*, bool willReschedule, bool hasMore); | |
216 | |
217 [Debugger, Inline=FastReturn] | |
218 void didHandleAsyncFileSystemCallback([Keep] ExecutionContext*, AsyncFileSys
temCallbacks*, bool didReschedule); | |
219 | |
220 [Timeline, Inline=FastReturn] | 205 [Timeline, Inline=FastReturn] |
221 InspectorInstrumentationCookie willEvaluateScript([Keep] LocalFrame*, const
String& url, int lineNumber); | 206 InspectorInstrumentationCookie willEvaluateScript([Keep] LocalFrame*, const
String& url, int lineNumber); |
222 | 207 |
223 [Timeline, Inline=FastReturn] | 208 [Timeline, Inline=FastReturn] |
224 void didEvaluateScript(const InspectorInstrumentationCookie&); | 209 void didEvaluateScript(const InspectorInstrumentationCookie&); |
225 | 210 |
226 [PageRuntime, Inline=FastReturn] | 211 [PageRuntime, Inline=FastReturn] |
227 void didCreateIsolatedContext([Keep] LocalFrame*, ScriptState*, SecurityOrig
in*); | 212 void didCreateIsolatedContext([Keep] LocalFrame*, ScriptState*, SecurityOrig
in*); |
228 | 213 |
229 [DOMDebugger, Debugger, Timeline, Inline=FastReturn] | 214 [DOMDebugger, Debugger, Timeline, Inline=FastReturn] |
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
522 interface InspectorCanvasInstrumentation { | 507 interface InspectorCanvasInstrumentation { |
523 | 508 |
524 #include "bindings/core/v8/ScriptValue.h" | 509 #include "bindings/core/v8/ScriptValue.h" |
525 | 510 |
526 [Canvas] | 511 [Canvas] |
527 ScriptValue wrapCanvas2DRenderingContextForInstrumentation(Document*, const
ScriptValue&); | 512 ScriptValue wrapCanvas2DRenderingContextForInstrumentation(Document*, const
ScriptValue&); |
528 | 513 |
529 [Canvas] | 514 [Canvas] |
530 ScriptValue wrapWebGLRenderingContextForInstrumentation(Document*, const Scr
iptValue&); | 515 ScriptValue wrapWebGLRenderingContextForInstrumentation(Document*, const Scr
iptValue&); |
531 } | 516 } |
OLD | NEW |