| 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_WEBDEVTOOLSFRONTEND_IMPL_H_ | 5 #ifndef WEBKIT_GLUE_WEBDEVTOOLSFRONTEND_IMPL_H_ |
| 6 #define WEBKIT_GLUE_WEBDEVTOOLSFRONTEND_IMPL_H_ | 6 #define WEBKIT_GLUE_WEBDEVTOOLSFRONTEND_IMPL_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include <wtf/HashMap.h> | 10 #include <wtf/HashMap.h> |
| 11 #include <wtf/Noncopyable.h> | 11 #include <wtf/Noncopyable.h> |
| 12 #include <wtf/OwnPtr.h> | 12 #include <wtf/OwnPtr.h> |
| 13 #include <wtf/RefPtr.h> | 13 #include <wtf/RefPtr.h> |
| 14 | 14 |
| 15 #include "v8.h" | 15 #include "v8.h" |
| 16 #include "webkit/api/public/WebDevToolsFrontend.h" | 16 #include "webkit/api/public/WebDevToolsFrontend.h" |
| 17 #include "webkit/glue/devtools/devtools_rpc.h" | 17 #include "webkit/glue/devtools/devtools_rpc.h" |
| 18 | 18 |
| 19 namespace WebCore { | 19 namespace WebCore { |
| 20 class Node; | 20 class Node; |
| 21 class Page; | 21 class Page; |
| 22 class String; | 22 class String; |
| 23 } | 23 } |
| 24 | 24 |
| 25 namespace WebKit { |
| 26 class WebViewImpl; |
| 27 } |
| 28 |
| 25 class BoundObject; | 29 class BoundObject; |
| 26 class JsDebuggerAgentBoundObj; | 30 class JsDebuggerAgentBoundObj; |
| 27 class JsNetAgentBoundObj; | 31 class JsNetAgentBoundObj; |
| 28 class JsToolsAgentBoundObj; | 32 class JsToolsAgentBoundObj; |
| 29 class ToolsAgentNativeDelegateImpl; | 33 class ToolsAgentNativeDelegateImpl; |
| 30 class WebDevToolsClientDelegate; | 34 class WebDevToolsClientDelegate; |
| 31 class WebViewImpl; | |
| 32 | 35 |
| 33 class WebDevToolsFrontendImpl : public WebKit::WebDevToolsFrontend, | 36 class WebDevToolsFrontendImpl : public WebKit::WebDevToolsFrontend, |
| 34 public DevToolsRpc::Delegate, | 37 public DevToolsRpc::Delegate, |
| 35 public Noncopyable { | 38 public Noncopyable { |
| 36 public: | 39 public: |
| 37 WebDevToolsFrontendImpl( | 40 WebDevToolsFrontendImpl( |
| 38 WebViewImpl* web_view_impl, | 41 WebKit::WebViewImpl* web_view_impl, |
| 39 WebKit::WebDevToolsFrontendClient* client, | 42 WebKit::WebDevToolsFrontendClient* client, |
| 40 const String& application_locale); | 43 const String& application_locale); |
| 41 virtual ~WebDevToolsFrontendImpl(); | 44 virtual ~WebDevToolsFrontendImpl(); |
| 42 | 45 |
| 43 // DevToolsRpc::Delegate implementation. | 46 // DevToolsRpc::Delegate implementation. |
| 44 virtual void SendRpcMessage(const String& class_name, | 47 virtual void SendRpcMessage(const String& class_name, |
| 45 const String& method_name, | 48 const String& method_name, |
| 46 const String& param1, | 49 const String& param1, |
| 47 const String& param2, | 50 const String& param2, |
| 48 const String& param3); | 51 const String& param3); |
| (...skipping 24 matching lines...) Expand all Loading... |
| 73 static v8::Handle<v8::Value> JsUndockWindow(const v8::Arguments& args); | 76 static v8::Handle<v8::Value> JsUndockWindow(const v8::Arguments& args); |
| 74 static v8::Handle<v8::Value> JsToggleInspectElementMode( | 77 static v8::Handle<v8::Value> JsToggleInspectElementMode( |
| 75 const v8::Arguments& args); | 78 const v8::Arguments& args); |
| 76 static v8::Handle<v8::Value> JsGetApplicationLocale( | 79 static v8::Handle<v8::Value> JsGetApplicationLocale( |
| 77 const v8::Arguments& args); | 80 const v8::Arguments& args); |
| 78 static v8::Handle<v8::Value> JsHiddenPanels( | 81 static v8::Handle<v8::Value> JsHiddenPanels( |
| 79 const v8::Arguments& args); | 82 const v8::Arguments& args); |
| 80 static v8::Handle<v8::Value> JsDebuggerCommand( | 83 static v8::Handle<v8::Value> JsDebuggerCommand( |
| 81 const v8::Arguments& args); | 84 const v8::Arguments& args); |
| 82 | 85 |
| 83 WebViewImpl* web_view_impl_; | 86 WebKit::WebViewImpl* web_view_impl_; |
| 84 WebKit::WebDevToolsFrontendClient* client_; | 87 WebKit::WebDevToolsFrontendClient* client_; |
| 85 String application_locale_; | 88 String application_locale_; |
| 86 OwnPtr<BoundObject> debugger_command_executor_obj_; | 89 OwnPtr<BoundObject> debugger_command_executor_obj_; |
| 87 OwnPtr<JsDebuggerAgentBoundObj> debugger_agent_obj_; | 90 OwnPtr<JsDebuggerAgentBoundObj> debugger_agent_obj_; |
| 88 OwnPtr<JsToolsAgentBoundObj> tools_agent_obj_; | 91 OwnPtr<JsToolsAgentBoundObj> tools_agent_obj_; |
| 89 bool loaded_; | 92 bool loaded_; |
| 90 Vector<Vector<String> > pending_incoming_messages_; | 93 Vector<Vector<String> > pending_incoming_messages_; |
| 91 OwnPtr<BoundObject> dev_tools_host_; | 94 OwnPtr<BoundObject> dev_tools_host_; |
| 92 OwnPtr<ToolsAgentNativeDelegateImpl> tools_agent_native_delegate_impl_; | 95 OwnPtr<ToolsAgentNativeDelegateImpl> tools_agent_native_delegate_impl_; |
| 93 }; | 96 }; |
| 94 | 97 |
| 95 #endif // WEBKIT_GLUE_WEBDEVTOOLSFRONTEND_IMPL_H_ | 98 #endif // WEBKIT_GLUE_WEBDEVTOOLSFRONTEND_IMPL_H_ |
| OLD | NEW |