| 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_DEVTOOLS_DEBUGGER_AGENT_IMPL_H_ | 5 #ifndef WEBKIT_GLUE_DEVTOOLS_DEBUGGER_AGENT_IMPL_H_ |
| 6 #define WEBKIT_GLUE_DEVTOOLS_DEBUGGER_AGENT_IMPL_H_ | 6 #define WEBKIT_GLUE_DEVTOOLS_DEBUGGER_AGENT_IMPL_H_ |
| 7 | 7 |
| 8 #include <wtf/HashSet.h> | 8 #include <wtf/HashSet.h> |
| 9 | 9 |
| 10 #include "v8.h" | 10 #include "v8.h" |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 virtual void DebugBreak(); | 35 virtual void DebugBreak(); |
| 36 | 36 |
| 37 void DebuggerOutput(const std::string& out); | 37 void DebuggerOutput(const std::string& out); |
| 38 | 38 |
| 39 // Executes utility function with the given node and json | 39 // Executes utility function with the given node and json |
| 40 // args as parameters. These functions must be implemented in | 40 // args as parameters. These functions must be implemented in |
| 41 // the inject.js file. | 41 // the inject.js file. |
| 42 WebCore::String ExecuteUtilityFunction( | 42 WebCore::String ExecuteUtilityFunction( |
| 43 const WebCore::String& function_name, | 43 const WebCore::String& function_name, |
| 44 WebCore::Node* node, | 44 WebCore::Node* node, |
| 45 const WebCore::String& json_args); | 45 const WebCore::String& json_args, |
| 46 WebCore::String* exception); |
| 46 | 47 |
| 47 static void RunWithDeferredMessages( | 48 static void RunWithDeferredMessages( |
| 48 const HashSet<DebuggerAgentImpl*>& agents, | 49 const HashSet<DebuggerAgentImpl*>& agents, |
| 49 WebDevToolsAgent::MessageLoopDispatchHandler handler); | 50 WebDevToolsAgent::MessageLoopDispatchHandler handler); |
| 50 | 51 |
| 51 WebCore::Page* GetPage(); | 52 WebCore::Page* GetPage(); |
| 52 WebDevToolsAgentImpl* webdevtools_agent() { return webdevtools_agent_; }; | 53 WebDevToolsAgentImpl* webdevtools_agent() { return webdevtools_agent_; }; |
| 53 | 54 |
| 54 WebViewImpl* web_view() { return web_view_impl_; } | 55 WebViewImpl* web_view() { return web_view_impl_; } |
| 55 | 56 |
| 56 private: | 57 private: |
| 57 v8::Persistent<v8::Context> context_; | 58 v8::Persistent<v8::Context> context_; |
| 58 WebViewImpl* web_view_impl_; | 59 WebViewImpl* web_view_impl_; |
| 59 DebuggerAgentDelegate* delegate_; | 60 DebuggerAgentDelegate* delegate_; |
| 60 WebDevToolsAgentImpl* webdevtools_agent_; | 61 WebDevToolsAgentImpl* webdevtools_agent_; |
| 61 | 62 |
| 62 DISALLOW_COPY_AND_ASSIGN(DebuggerAgentImpl); | 63 DISALLOW_COPY_AND_ASSIGN(DebuggerAgentImpl); |
| 63 }; | 64 }; |
| 64 | 65 |
| 65 #endif // WEBKIT_GLUE_DEVTOOLS_DEBUGGER_AGENT_IMPL_H_ | 66 #endif // WEBKIT_GLUE_DEVTOOLS_DEBUGGER_AGENT_IMPL_H_ |
| OLD | NEW |