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

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

Issue 173480: DevTools: Remove base/values dependency from devtools. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 3 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/devtools.js ('k') | webkit/glue/webdevtoolsagent.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) \
13 /* Requests that utility js function is executed with the given args. */ \ 13 /* Requests that utility js function is executed with the given args. */ \
14 METHOD3(ExecuteUtilityFunction, int /* call_id */, \ 14 METHOD3(ExecuteUtilityFunction, int /* call_id */, \
15 String /* function_name */, String /* json_args */) \ 15 String /* function_name */, String /* json_args */) \
16 \ 16 \
17 /* Requests that the agent sends content of the resource with given id to the 17 /* Requests that the agent sends content of the resource with given id to the
18 delegate. */ \ 18 delegate. */ \
19 METHOD2(GetResourceContent, int /* call_id */, int /* identifier */) 19 METHOD2(GetResourceContent, int /* call_id */, int /* identifier */)
20 20
21 DEFINE_RPC_CLASS(ToolsAgent, TOOLS_AGENT_STRUCT) 21 DEFINE_RPC_CLASS(ToolsAgent, TOOLS_AGENT_STRUCT)
22 22
23 #define TOOLS_AGENT_DELEGATE_STRUCT(METHOD0, METHOD1, METHOD2, METHOD3, \ 23 #define TOOLS_AGENT_DELEGATE_STRUCT(METHOD0, METHOD1, METHOD2, METHOD3) \
24 METHOD4) \
25 /* Updates focused node on the client. */ \ 24 /* Updates focused node on the client. */ \
26 METHOD1(FrameNavigate, std::string /* url */) \ 25 METHOD1(FrameNavigate, std::string /* url */) \
27 \ 26 \
28 /* Response to the GetNodeProperties. */ \ 27 /* Response to the GetNodeProperties. */ \
29 METHOD3(DidExecuteUtilityFunction, int /* call_id */, String /* result */, \ 28 METHOD3(DidExecuteUtilityFunction, int /* call_id */, String /* result */, \
30 String /* exception */) \ 29 String /* exception */) \
31 \ 30 \
32 /* Sends InspectorFrontend message to be dispatched on client. */ \ 31 /* Sends InspectorFrontend message to be dispatched on client. */ \
33 METHOD1(DispatchOnClient, String /* data */) 32 METHOD1(DispatchOnClient, String /* data */)
34 33
35 DEFINE_RPC_CLASS(ToolsAgentDelegate, TOOLS_AGENT_DELEGATE_STRUCT) 34 DEFINE_RPC_CLASS(ToolsAgentDelegate, TOOLS_AGENT_DELEGATE_STRUCT)
36 35
37 #define TOOLS_AGENT_NATIVE_DELEGATE_STRUCT(METHOD0, METHOD1, METHOD2, METHOD3, \ 36 #define TOOLS_AGENT_NATIVE_DELEGATE_STRUCT(METHOD0, METHOD1, METHOD2, METHOD3) \
38 METHOD4) \
39 /* Response to the async call. */ \ 37 /* Response to the async call. */ \
40 METHOD2(DidGetResourceContent, int /* call_id */, String /* content */) \ 38 METHOD2(DidGetResourceContent, int /* call_id */, String /* content */) \
41 39
42 DEFINE_RPC_CLASS(ToolsAgentNativeDelegate, TOOLS_AGENT_NATIVE_DELEGATE_STRUCT) 40 DEFINE_RPC_CLASS(ToolsAgentNativeDelegate, TOOLS_AGENT_NATIVE_DELEGATE_STRUCT)
43 41
44 #endif // WEBKIT_GLUE_DEVTOOLS_TOOLS_AGENT_H_ 42 #endif // WEBKIT_GLUE_DEVTOOLS_TOOLS_AGENT_H_
OLDNEW
« no previous file with comments | « webkit/glue/devtools/js/devtools.js ('k') | webkit/glue/webdevtoolsagent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698