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

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

Issue 159395: DevTools: make pause work for script evaluations (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 4 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/js/tests.js ('k') | webkit/glue/webdevtoolsagent_impl.h » ('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 /* Requests that utility js function is executed with the given args. */ \ 19 /* Requests that utility js function is executed with the given args. */ \
20 METHOD3(ExecuteUtilityFunction, int /* call_id */, \ 20 METHOD3(ExecuteUtilityFunction, int /* call_id */, \
21 String /* function_name */, String /* json_args */) \ 21 String /* function_name */, String /* json_args */) \
22 \ 22 \
23 /* Requests that the js source is executed within the inspected page. */ \
24 METHOD2(EvaluateJavaScript, int /* call_id */, String /* source*/) \
25 \
23 /* Clears cached console messages. */ \ 26 /* Clears cached console messages. */ \
24 METHOD0(ClearConsoleMessages) \ 27 METHOD0(ClearConsoleMessages) \
25 \ 28 \
26 /* Requests that the agent sends content of the resource with given id to the 29 /* Requests that the agent sends content of the resource with given id to the
27 delegate. */ \ 30 delegate. */ \
28 METHOD2(GetResourceContent, int /* call_id */, int /* identifier */) \ 31 METHOD2(GetResourceContent, int /* call_id */, int /* identifier */) \
29 \ 32 \
30 /* Turns resource tracking on / off. */ \ 33 /* Turns resource tracking on / off. */ \
31 METHOD2(SetResourceTrackingEnabled, bool /* enabled */, bool /* always */) 34 METHOD2(SetResourceTrackingEnabled, bool /* enabled */, bool /* always */)
32 35
33 DEFINE_RPC_CLASS(ToolsAgent, TOOLS_AGENT_STRUCT) 36 DEFINE_RPC_CLASS(ToolsAgent, TOOLS_AGENT_STRUCT)
34 37
35 #define TOOLS_AGENT_DELEGATE_STRUCT(METHOD0, METHOD1, METHOD2, METHOD3, \ 38 #define TOOLS_AGENT_DELEGATE_STRUCT(METHOD0, METHOD1, METHOD2, METHOD3, \
36 METHOD4) \ 39 METHOD4) \
37 /* Updates focused node on the client. */ \ 40 /* Updates focused node on the client. */ \
38 METHOD1(UpdateFocusedNode, int /* node_id */) \ 41 METHOD1(UpdateFocusedNode, int /* node_id */) \
39 \ 42 \
40 /* Updates focused node on the client. */ \ 43 /* Updates focused node on the client. */ \
41 METHOD1(FrameNavigate, std::string /* url */) \ 44 METHOD1(FrameNavigate, std::string /* url */) \
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 \
50 /* Response to the EvaluateJavaScript. */ \
51 METHOD3(DidEvaluateJavaScript, int /* call_id */, String /* result */, \
52 String /* exception */) \
53 \
47 /* Sends InspectorFrontend message to be dispatched on client. */ \ 54 /* Sends InspectorFrontend message to be dispatched on client. */ \
48 METHOD1(DispatchOnClient, String /* data */) \ 55 METHOD1(DispatchOnClient, String /* data */) \
49 \ 56 \
50 /* Tells frontend if resources panel should be enabled in the UI. */ \ 57 /* Tells frontend if resources panel should be enabled in the UI. */ \
51 METHOD1(SetResourcesPanelEnabled, bool /* enabled. */) 58 METHOD1(SetResourcesPanelEnabled, bool /* enabled. */)
52 59
53 DEFINE_RPC_CLASS(ToolsAgentDelegate, TOOLS_AGENT_DELEGATE_STRUCT) 60 DEFINE_RPC_CLASS(ToolsAgentDelegate, TOOLS_AGENT_DELEGATE_STRUCT)
54 61
55 #define TOOLS_AGENT_NATIVE_DELEGATE_STRUCT(METHOD0, METHOD1, METHOD2, METHOD3, \ 62 #define TOOLS_AGENT_NATIVE_DELEGATE_STRUCT(METHOD0, METHOD1, METHOD2, METHOD3, \
56 METHOD4) \ 63 METHOD4) \
57 /* Response to the async call. */ \ 64 /* Response to the async call. */ \
58 METHOD2(DidGetResourceContent, int /* call_id */, String /* content */) \ 65 METHOD2(DidGetResourceContent, int /* call_id */, String /* content */) \
59 66
60 DEFINE_RPC_CLASS(ToolsAgentNativeDelegate, TOOLS_AGENT_NATIVE_DELEGATE_STRUCT) 67 DEFINE_RPC_CLASS(ToolsAgentNativeDelegate, TOOLS_AGENT_NATIVE_DELEGATE_STRUCT)
61 68
62 #endif // WEBKIT_GLUE_DEVTOOLS_TOOLS_AGENT_H_ 69 #endif // WEBKIT_GLUE_DEVTOOLS_TOOLS_AGENT_H_
OLDNEW
« no previous file with comments | « webkit/glue/devtools/js/tests.js ('k') | webkit/glue/webdevtoolsagent_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698