| 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 WEBKIT_GLUE_WEBDEVTOOLSAGENT_H_ | 5 #ifndef WEBKIT_GLUE_WEBDEVTOOLSAGENT_H_ |
| 6 #define WEBKIT_GLUE_WEBDEVTOOLSAGENT_H_ | 6 #define WEBKIT_GLUE_WEBDEVTOOLSAGENT_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 | 10 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 virtual ~WebDevToolsAgent() {} | 25 virtual ~WebDevToolsAgent() {} |
| 26 | 26 |
| 27 virtual void Attach() = 0; | 27 virtual void Attach() = 0; |
| 28 | 28 |
| 29 virtual void Detach() = 0; | 29 virtual void Detach() = 0; |
| 30 | 30 |
| 31 virtual void OnNavigate() = 0; | 31 virtual void OnNavigate() = 0; |
| 32 | 32 |
| 33 virtual void DispatchMessageFromClient(const std::string& class_name, | 33 virtual void DispatchMessageFromClient(const std::string& class_name, |
| 34 const std::string& method_name, | 34 const std::string& method_name, |
| 35 const std::string& raw_msg) = 0; | 35 const std::string& param1, |
| 36 const std::string& param2, |
| 37 const std::string& param3) = 0; |
| 36 | 38 |
| 37 virtual void InspectElement(int x, int y) = 0; | 39 virtual void InspectElement(int x, int y) = 0; |
| 38 | 40 |
| 39 // Asynchronously executes debugger command in the render thread. | 41 // Asynchronously executes debugger command in the render thread. |
| 40 // |caller_id| will be used for sending response. | 42 // |caller_id| will be used for sending response. |
| 41 static void ExecuteDebuggerCommand(const std::string& command, | 43 static void ExecuteDebuggerCommand(const std::string& command, |
| 42 int caller_id); | 44 int caller_id); |
| 43 | 45 |
| 44 typedef void (*MessageLoopDispatchHandler)(); | 46 typedef void (*MessageLoopDispatchHandler)(); |
| 45 | 47 |
| 46 // Installs dispatch handle that is going to be called periodically | 48 // Installs dispatch handle that is going to be called periodically |
| 47 // while on a breakpoint. | 49 // while on a breakpoint. |
| 48 static void SetMessageLoopDispatchHandler( | 50 static void SetMessageLoopDispatchHandler( |
| 49 MessageLoopDispatchHandler handler); | 51 MessageLoopDispatchHandler handler); |
| 50 | 52 |
| 51 private: | 53 private: |
| 52 DISALLOW_COPY_AND_ASSIGN(WebDevToolsAgent); | 54 DISALLOW_COPY_AND_ASSIGN(WebDevToolsAgent); |
| 53 }; | 55 }; |
| 54 | 56 |
| 55 #endif // WEBKIT_GLUE_WEBDEVTOOLSAGENT_H_ | 57 #endif // WEBKIT_GLUE_WEBDEVTOOLSAGENT_H_ |
| OLD | NEW |