Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(85)

Side by Side Diff: webkit/glue/devtools/tools_agent.h

Issue 113836: DevTools: introduce bound object on the agent side. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « webkit/glue/devtools/net_agent_impl.cc ('k') | webkit/glue/inspector_client_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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, METHOD4) \ 12 #define TOOLS_AGENT_STRUCT(METHOD0, METHOD1, METHOD2, METHOD3, METHOD4) \
13 /* Highlights Dom node with given ID */ \ 13 /* Highlights Dom node with given ID */ \
14 METHOD1(HighlightDOMNode, int /* node_id */) \ 14 METHOD1(HighlightDOMNode, int /* node_id */) \
15 \ 15 \
16 /* Clears Dom Node highlight. */ \ 16 /* Clears Dom Node highlight. */ \
17 METHOD0(HideDOMNodeHighlight) \ 17 METHOD0(HideDOMNodeHighlight) \
18 \ 18 \
19 /* Executes JavaScript in the context of the inspected window. */ \ 19 /* Executes JavaScript in the context of the inspected window. */ \
20 METHOD2(EvaluateJavaScript, int /* call_id */, String /* JS expression */) \ 20 METHOD2(EvaluateJavaScript, int /* call_id */, String /* JS expression */) \
21 \ 21 \
22 /* Requests that utility js function is executed with the given args. */ \ 22 /* Requests that utility js function is executed with the given args. */ \
23 METHOD4(ExecuteUtilityFunction, int /* call_id */, \ 23 METHOD4(ExecuteUtilityFunction, int /* call_id */, \
24 String /* function_name */, int /* context_node_id */, \ 24 String /* function_name */, int /* context_node_id */, \
25 String /* json_args */) \ 25 String /* json_args */) \
26 \ 26 \
27 /* Clears cached console messages. */ \ 27 /* Clears cached console messages. */ \
28 METHOD0(ClearConsoleMessages) 28 METHOD0(ClearConsoleMessages) \
29 /* Requests that the agent sends content of the resource with given id to the
30 delegate. */ \
31 METHOD2(GetResourceContent, int /* call_id */, int /* identifier */)
29 32
30 DEFINE_RPC_CLASS(ToolsAgent, TOOLS_AGENT_STRUCT) 33 DEFINE_RPC_CLASS(ToolsAgent, TOOLS_AGENT_STRUCT)
31 34
32 #define TOOLS_AGENT_DELEGATE_STRUCT(METHOD0, METHOD1, METHOD2, METHOD3, \ 35 #define TOOLS_AGENT_DELEGATE_STRUCT(METHOD0, METHOD1, METHOD2, METHOD3, \
33 METHOD4) \ 36 METHOD4) \
34 /* Updates focused node on the client. */ \ 37 /* Updates focused node on the client. */ \
35 METHOD1(UpdateFocusedNode, int /* node_id */) \ 38 METHOD1(UpdateFocusedNode, int /* node_id */) \
36 \ 39 \
37 /* Response message to EvaluateJavaScript. */ \ 40 /* Response message to EvaluateJavaScript. */ \
38 METHOD2(DidEvaluateJavaScript, int /* call_id */, String /* result */) \ 41 METHOD2(DidEvaluateJavaScript, int /* call_id */, String /* result */) \
39 \ 42 \
40 /* Updates focused node on the client. */ \ 43 /* Updates focused node on the client. */ \
41 METHOD2(FrameNavigate, std::string /* url */, bool /* top_level */) \ 44 METHOD2(FrameNavigate, std::string /* url */, bool /* top_level */) \
42 \ 45 \
43 /* Response to the GetNodeProperties. */ \ 46 /* Response to the GetNodeProperties. */ \
44 METHOD3(DidExecuteUtilityFunction, int /* call_id */, String /* result */, \ 47 METHOD3(DidExecuteUtilityFunction, int /* call_id */, String /* result */, \
45 String /* exception */) \ 48 String /* exception */) \
46 \ 49 \
47 /* Adds message to console. */ \ 50 /* Sends InspectorFrontend message to be dispatched on client. */ \
48 METHOD1(AddMessageToConsole, Value /* message */) 51 METHOD1(DispatchOnClient, String /* data */) \
52 \
53 /* Response to the async call. */ \
54 METHOD2(DidGetResourceContent, int /* call_id */, String /* content */)
49 55
50 DEFINE_RPC_CLASS(ToolsAgentDelegate, TOOLS_AGENT_DELEGATE_STRUCT) 56 DEFINE_RPC_CLASS(ToolsAgentDelegate, TOOLS_AGENT_DELEGATE_STRUCT)
51 57
52 #endif // WEBKIT_GLUE_DEVTOOLS_TOOLS_AGENT_H_ 58 #endif // WEBKIT_GLUE_DEVTOOLS_TOOLS_AGENT_H_
OLDNEW
« no previous file with comments | « webkit/glue/devtools/net_agent_impl.cc ('k') | webkit/glue/inspector_client_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698