| 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" and "InspectorInstrumentationCook
ie" are supported. | 55 * returnValue: C++ return value. Only "void", "bool" and "InspectorInstrumenta
tionCookie" 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 |
| 70 [Page, Inspector, PageDebugger, PageRuntime] | 73 [Page, Inspector, PageDebugger, PageRuntime] |
| 71 void didClearDocumentOfWindowObject([Keep] LocalFrame*); | 74 void didClearDocumentOfWindowObject([Keep] LocalFrame*); |
| 72 | 75 |
| 73 [DOMDebugger, Inline=FastReturn] | 76 [DOMDebugger, Inline=FastReturn] |
| 74 void willInsertDOMNode([Keep] Node* parent); | 77 void willInsertDOMNode([Keep] Node* parent); |
| 75 | 78 |
| 76 [DOM, DOMDebugger, Inline=FastReturn] | 79 [DOM, DOMDebugger, Inline=FastReturn] |
| 77 void didInsertDOMNode([Keep] Node*); | 80 void didInsertDOMNode([Keep] Node*); |
| 78 | 81 |
| 79 [DOMDebugger, DOM, Inline=FastReturn] | 82 [DOMDebugger, DOM, Inline=FastReturn] |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 195 | 198 |
| 196 [Debugger, Inline=FastReturn] | 199 [Debugger, Inline=FastReturn] |
| 197 void didKillAllExecutionContextTasks([Keep] ExecutionContext*); | 200 void didKillAllExecutionContextTasks([Keep] ExecutionContext*); |
| 198 | 201 |
| 199 [Debugger, Inline=FastReturn] | 202 [Debugger, Inline=FastReturn] |
| 200 void willPerformExecutionContextTask([Keep] ExecutionContext*, ExecutionCont
extTask*); | 203 void willPerformExecutionContextTask([Keep] ExecutionContext*, ExecutionCont
extTask*); |
| 201 | 204 |
| 202 [Debugger, Inline=FastReturn] | 205 [Debugger, Inline=FastReturn] |
| 203 void didPerformExecutionContextTask(ExecutionContext*); | 206 void didPerformExecutionContextTask(ExecutionContext*); |
| 204 | 207 |
| 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 |
| 205 [Timeline, Inline=FastReturn] | 220 [Timeline, Inline=FastReturn] |
| 206 InspectorInstrumentationCookie willEvaluateScript([Keep] LocalFrame*, const
String& url, int lineNumber); | 221 InspectorInstrumentationCookie willEvaluateScript([Keep] LocalFrame*, const
String& url, int lineNumber); |
| 207 | 222 |
| 208 [Timeline, Inline=FastReturn] | 223 [Timeline, Inline=FastReturn] |
| 209 void didEvaluateScript(const InspectorInstrumentationCookie&); | 224 void didEvaluateScript(const InspectorInstrumentationCookie&); |
| 210 | 225 |
| 211 [PageRuntime, Inline=FastReturn] | 226 [PageRuntime, Inline=FastReturn] |
| 212 void didCreateIsolatedContext([Keep] LocalFrame*, ScriptState*, SecurityOrig
in*); | 227 void didCreateIsolatedContext([Keep] LocalFrame*, ScriptState*, SecurityOrig
in*); |
| 213 | 228 |
| 214 [DOMDebugger, Debugger, Timeline, Inline=FastReturn] | 229 [DOMDebugger, Debugger, Timeline, Inline=FastReturn] |
| (...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 507 interface InspectorCanvasInstrumentation { | 522 interface InspectorCanvasInstrumentation { |
| 508 | 523 |
| 509 #include "bindings/core/v8/ScriptValue.h" | 524 #include "bindings/core/v8/ScriptValue.h" |
| 510 | 525 |
| 511 [Canvas] | 526 [Canvas] |
| 512 ScriptValue wrapCanvas2DRenderingContextForInstrumentation(Document*, const
ScriptValue&); | 527 ScriptValue wrapCanvas2DRenderingContextForInstrumentation(Document*, const
ScriptValue&); |
| 513 | 528 |
| 514 [Canvas] | 529 [Canvas] |
| 515 ScriptValue wrapWebGLRenderingContextForInstrumentation(Document*, const Scr
iptValue&); | 530 ScriptValue wrapWebGLRenderingContextForInstrumentation(Document*, const Scr
iptValue&); |
| 516 } | 531 } |
| OLD | NEW |