OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include "content/browser/devtools/devtools_agent_host_impl.h" | 5 #include "content/browser/devtools/devtools_agent_host_impl.h" |
6 | 6 |
7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
8 #include "content/common/devtools_messages.h" | 8 #include "content/common/devtools_messages.h" |
9 | 9 |
10 namespace content { | 10 namespace content { |
(...skipping 17 matching lines...) Expand all Loading... |
28 MSG_ROUTING_NONE, | 28 MSG_ROUTING_NONE, |
29 saved_agent_state)); | 29 saved_agent_state)); |
30 NotifyClientAttaching(); | 30 NotifyClientAttaching(); |
31 } | 31 } |
32 | 32 |
33 void DevToolsAgentHostImpl::Detach() { | 33 void DevToolsAgentHostImpl::Detach() { |
34 SendMessageToAgent(new DevToolsAgentMsg_Detach(MSG_ROUTING_NONE)); | 34 SendMessageToAgent(new DevToolsAgentMsg_Detach(MSG_ROUTING_NONE)); |
35 NotifyClientDetaching(); | 35 NotifyClientDetaching(); |
36 } | 36 } |
37 | 37 |
38 void DevToolsAgentHostImpl::DipatchOnInspectorBackend( | 38 void DevToolsAgentHostImpl::DispatchOnInspectorBackend( |
39 const std::string& message) { | 39 const std::string& message) { |
40 SendMessageToAgent(new DevToolsAgentMsg_DispatchOnInspectorBackend( | 40 SendMessageToAgent(new DevToolsAgentMsg_DispatchOnInspectorBackend( |
41 MSG_ROUTING_NONE, message)); | 41 MSG_ROUTING_NONE, message)); |
42 } | 42 } |
43 | 43 |
44 void DevToolsAgentHostImpl::InspectElement(int x, int y) { | 44 void DevToolsAgentHostImpl::InspectElement(int x, int y) { |
45 SendMessageToAgent(new DevToolsAgentMsg_InspectElement(MSG_ROUTING_NONE, | 45 SendMessageToAgent(new DevToolsAgentMsg_InspectElement(MSG_ROUTING_NONE, |
46 x, y)); | 46 x, y)); |
47 } | 47 } |
48 | 48 |
(...skipping 11 matching lines...) Expand all Loading... |
60 | 60 |
61 void DevToolsAgentHostImpl::NotifyCloseListener() { | 61 void DevToolsAgentHostImpl::NotifyCloseListener() { |
62 if (close_listener_) { | 62 if (close_listener_) { |
63 scoped_refptr<DevToolsAgentHostImpl> protect(this); | 63 scoped_refptr<DevToolsAgentHostImpl> protect(this); |
64 close_listener_->AgentHostClosing(this); | 64 close_listener_->AgentHostClosing(this); |
65 close_listener_ = NULL; | 65 close_listener_ = NULL; |
66 } | 66 } |
67 } | 67 } |
68 | 68 |
69 } // namespace content | 69 } // namespace content |
OLD | NEW |