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

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

Issue 54002: Make DevTools client survive 'refresh' of the inspectable tab. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 9 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
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) \ 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_
OLDNEW
« no previous file with comments | « webkit/glue/devtools/js/inspector_controller_impl.js ('k') | webkit/glue/webdevtoolsagent_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698