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 |
11 // API for auxiliary UI functions such as dom elements highlighting. | 11 // API for auxiliary UI functions such as dom elements highlighting. |
12 #define TOOLS_AGENT_STRUCT(METHOD0, METHOD1, METHOD2, METHOD3) \ | 12 #define TOOLS_AGENT_STRUCT(METHOD0, METHOD1, METHOD2, METHOD3) \ |
13 /* Enables / disables Dom agent. */ \ | 13 /* Enables / disables the agent */ \ |
14 METHOD1(SetDomAgentEnabled, bool /* enabled */) \ | 14 METHOD1(SetEnabled, bool /* enabled */) \ |
15 \ | |
16 /* Enables / disables Net agent */ \ | |
17 METHOD1(SetNetAgentEnabled, bool /* enabled */) \ | |
18 \ | 15 \ |
19 /* Highlights Dom node with given ID */ \ | 16 /* Highlights Dom node with given ID */ \ |
20 METHOD1(HighlightDOMNode, int /* node_id */) \ | 17 METHOD1(HighlightDOMNode, int /* node_id */) \ |
21 \ | 18 \ |
22 /* Clears Dom Node highlight. */ \ | 19 /* Clears Dom Node highlight. */ \ |
23 METHOD0(HideDOMNodeHighlight) | 20 METHOD0(HideDOMNodeHighlight) |
24 | 21 |
25 DEFINE_RPC_CLASS(ToolsAgent, TOOLS_AGENT_STRUCT) | 22 DEFINE_RPC_CLASS(ToolsAgent, TOOLS_AGENT_STRUCT) |
26 | 23 |
27 #define TOOLS_AGENT_DELEGATE_STRUCT(METHOD0, METHOD1, METHOD2, METHOD3) \ | 24 #define TOOLS_AGENT_DELEGATE_STRUCT(METHOD0, METHOD1, METHOD2, METHOD3) \ |
| 25 /* Updates focused node on the client. */ \ |
28 METHOD1(UpdateFocusedNode, int /* node_id */) \ | 26 METHOD1(UpdateFocusedNode, int /* node_id */) \ |
| 27 \ |
| 28 /* Updates focused node on the client. */ \ |
| 29 METHOD2(FrameNavigate, std::string /* url */, bool /* top_level */) |
29 | 30 |
30 DEFINE_RPC_CLASS(ToolsAgentDelegate, TOOLS_AGENT_DELEGATE_STRUCT) | 31 DEFINE_RPC_CLASS(ToolsAgentDelegate, TOOLS_AGENT_DELEGATE_STRUCT) |
31 | 32 |
32 #endif // WEBKIT_GLUE_DEVTOOLS_TOOLS_AGENT_H_ | 33 #endif // WEBKIT_GLUE_DEVTOOLS_TOOLS_AGENT_H_ |
OLD | NEW |