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 CHROME_RENDERER_DEVTOOLS_AGENT_H_ | 5 #ifndef CHROME_RENDERER_DEVTOOLS_AGENT_H_ |
6 #define CHROME_RENDERER_DEVTOOLS_AGENT_H_ | 6 #define CHROME_RENDERER_DEVTOOLS_AGENT_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 // IPC::ChannelProxy::MessageFilter overrides. Called on IO thread. | 49 // IPC::ChannelProxy::MessageFilter overrides. Called on IO thread. |
50 virtual void OnFilterAdded(IPC::Channel* channel); | 50 virtual void OnFilterAdded(IPC::Channel* channel); |
51 virtual bool OnMessageReceived(const IPC::Message& message); | 51 virtual bool OnMessageReceived(const IPC::Message& message); |
52 virtual void OnFilterRemoved(); | 52 virtual void OnFilterRemoved(); |
53 | 53 |
54 // Debugger::Delegate callback method to handle debugger output. | 54 // Debugger::Delegate callback method to handle debugger output. |
55 void DebuggerOutput(const std::wstring& out); | 55 void DebuggerOutput(const std::wstring& out); |
56 | 56 |
57 void DispatchRpcMessage(const std::string& raw_msg); | 57 void DispatchRpcMessage(const std::string& raw_msg); |
58 | 58 |
| 59 void InspectElement(int x, int y); |
| 60 |
59 // Evaluate javascript URL in the renderer | 61 // Evaluate javascript URL in the renderer |
60 void EvaluateScript(const std::wstring& script); | 62 void EvaluateScript(const std::wstring& script); |
61 | 63 |
62 // All these OnXXX methods will be executed in IO thread so that we can | 64 // All these OnXXX methods will be executed in IO thread so that we can |
63 // handle debug messages even when v8 is stopped. | 65 // handle debug messages even when v8 is stopped. |
64 void OnDebugAttach(); | 66 void OnDebugAttach(); |
65 void OnDebugDetach(); | 67 void OnDebugDetach(); |
66 void OnDebugBreak(bool force); | 68 void OnDebugBreak(bool force); |
67 void OnDebugCommand(const std::wstring& cmd); | 69 void OnDebugCommand(const std::wstring& cmd); |
68 void OnRpcMessage(const std::string& raw_msg); | 70 void OnRpcMessage(const std::string& raw_msg); |
69 void OnInspectElement(int x, int y); | 71 void OnInspectElement(int x, int y); |
70 | 72 |
71 scoped_refptr<DebuggerBridge> debugger_; | 73 scoped_refptr<DebuggerBridge> debugger_; |
72 | 74 |
73 int routing_id_; // View routing id that we can access from IO thread. | 75 int routing_id_; // View routing id that we can access from IO thread. |
74 RenderView* view_; | 76 RenderView* view_; |
75 MessageLoop* view_loop_; | 77 MessageLoop* view_loop_; |
76 | 78 |
77 IPC::Channel* channel_; | 79 IPC::Channel* channel_; |
78 MessageLoop* io_loop_; | 80 MessageLoop* io_loop_; |
79 | 81 |
80 DISALLOW_COPY_AND_ASSIGN(DevToolsAgent); | 82 DISALLOW_COPY_AND_ASSIGN(DevToolsAgent); |
81 }; | 83 }; |
82 | 84 |
83 #endif // CHROME_RENDERER_DEVTOOLS_AGENT_H_ | 85 #endif // CHROME_RENDERER_DEVTOOLS_AGENT_H_ |
OLD | NEW |