| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef WEBKIT_GLUE_DEVTOOLS_TOOLS_AGENT_H_ | 5 #ifndef WEBKIT_GLUE_DEVTOOLS_TOOLS_AGENT_H_ |
| 6 #define WEBKIT_GLUE_DEVTOOLS_TOOLS_AGENT_H_ | 6 #define WEBKIT_GLUE_DEVTOOLS_TOOLS_AGENT_H_ |
| 7 | 7 |
| 8 #include "webkit/glue/devtools/devtools_rpc.h" | 8 #include "webkit/glue/devtools/devtools_rpc.h" |
| 9 | 9 |
| 10 // Tools agent provides API for enabling / disabling other agents as well as | 10 // Tools agent provides API for enabling / disabling other agents as well as |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 METHOD2(SetResourceTrackingEnabled, bool /* enabled */, bool /* always */) | 31 METHOD2(SetResourceTrackingEnabled, bool /* enabled */, bool /* always */) |
| 32 | 32 |
| 33 DEFINE_RPC_CLASS(ToolsAgent, TOOLS_AGENT_STRUCT) | 33 DEFINE_RPC_CLASS(ToolsAgent, TOOLS_AGENT_STRUCT) |
| 34 | 34 |
| 35 #define TOOLS_AGENT_DELEGATE_STRUCT(METHOD0, METHOD1, METHOD2, METHOD3, \ | 35 #define TOOLS_AGENT_DELEGATE_STRUCT(METHOD0, METHOD1, METHOD2, METHOD3, \ |
| 36 METHOD4) \ | 36 METHOD4) \ |
| 37 /* Updates focused node on the client. */ \ | 37 /* Updates focused node on the client. */ \ |
| 38 METHOD1(UpdateFocusedNode, int /* node_id */) \ | 38 METHOD1(UpdateFocusedNode, int /* node_id */) \ |
| 39 \ | 39 \ |
| 40 /* Updates focused node on the client. */ \ | 40 /* Updates focused node on the client. */ \ |
| 41 METHOD2(FrameNavigate, std::string /* url */, bool /* top_level */) \ | 41 METHOD1(FrameNavigate, std::string /* url */) \ |
| 42 \ | 42 \ |
| 43 /* Response to the GetNodeProperties. */ \ | 43 /* Response to the GetNodeProperties. */ \ |
| 44 METHOD3(DidExecuteUtilityFunction, int /* call_id */, String /* result */, \ | 44 METHOD3(DidExecuteUtilityFunction, int /* call_id */, String /* result */, \ |
| 45 String /* exception */) \ | 45 String /* exception */) \ |
| 46 \ | 46 \ |
| 47 /* Sends InspectorFrontend message to be dispatched on client. */ \ | 47 /* Sends InspectorFrontend message to be dispatched on client. */ \ |
| 48 METHOD1(DispatchOnClient, String /* data */) \ | 48 METHOD1(DispatchOnClient, String /* data */) \ |
| 49 \ | 49 \ |
| 50 /* Tells frontend if resources panel should be enabled in the UI. */ \ | 50 /* Tells frontend if resources panel should be enabled in the UI. */ \ |
| 51 METHOD1(SetResourcesPanelEnabled, bool /* enabled. */) | 51 METHOD1(SetResourcesPanelEnabled, bool /* enabled. */) |
| 52 | 52 |
| 53 DEFINE_RPC_CLASS(ToolsAgentDelegate, TOOLS_AGENT_DELEGATE_STRUCT) | 53 DEFINE_RPC_CLASS(ToolsAgentDelegate, TOOLS_AGENT_DELEGATE_STRUCT) |
| 54 | 54 |
| 55 #define TOOLS_AGENT_NATIVE_DELEGATE_STRUCT(METHOD0, METHOD1, METHOD2, METHOD3, \ | 55 #define TOOLS_AGENT_NATIVE_DELEGATE_STRUCT(METHOD0, METHOD1, METHOD2, METHOD3, \ |
| 56 METHOD4) \ | 56 METHOD4) \ |
| 57 /* Response to the async call. */ \ | 57 /* Response to the async call. */ \ |
| 58 METHOD2(DidGetResourceContent, int /* call_id */, String /* content */) \ | 58 METHOD2(DidGetResourceContent, int /* call_id */, String /* content */) \ |
| 59 | 59 |
| 60 DEFINE_RPC_CLASS(ToolsAgentNativeDelegate, TOOLS_AGENT_NATIVE_DELEGATE_STRUCT) | 60 DEFINE_RPC_CLASS(ToolsAgentNativeDelegate, TOOLS_AGENT_NATIVE_DELEGATE_STRUCT) |
| 61 | 61 |
| 62 #endif // WEBKIT_GLUE_DEVTOOLS_TOOLS_AGENT_H_ | 62 #endif // WEBKIT_GLUE_DEVTOOLS_TOOLS_AGENT_H_ |
| OLD | NEW |