diff options
Diffstat (limited to 'webkit/glue/devtools/tools_agent.h')
-rw-r--r-- | webkit/glue/devtools/tools_agent.h | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/webkit/glue/devtools/tools_agent.h b/webkit/glue/devtools/tools_agent.h index 853d7ae..39cb9c9 100644 --- a/webkit/glue/devtools/tools_agent.h +++ b/webkit/glue/devtools/tools_agent.h @@ -10,14 +10,18 @@ // Tools agent provides API for enabling / disabling other agents as well as // API for auxiliary UI functions such as dom elements highlighting. #define TOOLS_AGENT_STRUCT(METHOD0, METHOD1, METHOD2, METHOD3) \ - /* Requests that utility js function is executed with the given args. */ \ - METHOD3(ExecuteUtilityFunction, int /* call_id */, \ - String /* function_name */, String /* json_args */) \ - \ /* Request the agent to to run a no-op JavaScript function to trigger v8 execution. */ \ METHOD0(ExecuteVoidJavaScript) \ \ + /* Dispatches given function on the InspectorController object */ \ + METHOD3(DispatchOnInspectorController, int /* call_id */, \ + String /* function_name */, String /* json_args */) \ + \ + /* Dispatches given function on the InjectedScript object */ \ + METHOD3(DispatchOnInjectedScript, int /* call_id */, \ + String /* function_name */, String /* json_args */) \ + \ /* Requests that the agent sends content of the resource with given id to the delegate. */ \ METHOD2(GetResourceContent, int /* call_id */, int /* identifier */) @@ -28,8 +32,8 @@ DEFINE_RPC_CLASS(ToolsAgent, TOOLS_AGENT_STRUCT) /* Updates focused node on the client. */ \ METHOD1(FrameNavigate, std::string /* url */) \ \ - /* Response to the GetNodeProperties. */ \ - METHOD3(DidExecuteUtilityFunction, int /* call_id */, String /* result */, \ + /* Response to the DispatchOn*. */ \ + METHOD3(DidDispatchOn, int /* call_id */, String /* result */, \ String /* exception */) \ \ /* Sends InspectorFrontend message to be dispatched on client. */ \ |