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 #ifndef CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_AGENT_HOST_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_AGENT_HOST_IMPL_H_ |
6 #define CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_AGENT_HOST_IMPL_H_ | 6 #define CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_AGENT_HOST_IMPL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 23 matching lines...) Expand all Loading... |
34 virtual void Detach() = 0; | 34 virtual void Detach() = 0; |
35 | 35 |
36 // Sends a message to the agent hosted by this object. | 36 // Sends a message to the agent hosted by this object. |
37 virtual void DispatchOnInspectorBackend(const std::string& message) = 0; | 37 virtual void DispatchOnInspectorBackend(const std::string& message) = 0; |
38 | 38 |
39 void set_close_listener(CloseListener* listener) { | 39 void set_close_listener(CloseListener* listener) { |
40 close_listener_ = listener; | 40 close_listener_ = listener; |
41 } | 41 } |
42 | 42 |
43 // DevToolsAgentHost implementation. | 43 // DevToolsAgentHost implementation. |
| 44 virtual bool IsAttached() OVERRIDE; |
| 45 |
44 virtual void InspectElement(int x, int y) OVERRIDE; | 46 virtual void InspectElement(int x, int y) OVERRIDE; |
45 | 47 |
46 virtual std::string GetId() OVERRIDE; | 48 virtual std::string GetId() OVERRIDE; |
47 | 49 |
48 virtual RenderViewHost* GetRenderViewHost() OVERRIDE; | 50 virtual RenderViewHost* GetRenderViewHost() OVERRIDE; |
49 | 51 |
50 protected: | 52 protected: |
51 DevToolsAgentHostImpl(); | 53 DevToolsAgentHostImpl(); |
52 virtual ~DevToolsAgentHostImpl(); | 54 virtual ~DevToolsAgentHostImpl(); |
53 | 55 |
54 void NotifyCloseListener(); | 56 void NotifyCloseListener(); |
55 | 57 |
56 private: | 58 private: |
57 CloseListener* close_listener_; | 59 CloseListener* close_listener_; |
58 const std::string id_; | 60 const std::string id_; |
59 }; | 61 }; |
60 | 62 |
61 } // namespace content | 63 } // namespace content |
62 | 64 |
63 #endif // CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_AGENT_HOST_IMPL_H_ | 65 #endif // CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_AGENT_HOST_IMPL_H_ |
OLD | NEW |