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_WEBDEVTOOLSCLIENT_IMPL_H_ | 5 #ifndef WEBKIT_GLUE_WEBDEVTOOLSCLIENT_IMPL_H_ |
6 #define WEBKIT_GLUE_WEBDEVTOOLSCLIENT_IMPL_H_ | 6 #define WEBKIT_GLUE_WEBDEVTOOLSCLIENT_IMPL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include <wtf/HashMap.h> | 10 #include <wtf/HashMap.h> |
(...skipping 27 matching lines...) Expand all Loading... |
38 | 38 |
39 // DevToolsRpc::Delegate implementation. | 39 // DevToolsRpc::Delegate implementation. |
40 virtual void SendRpcMessage(const std::string& raw_msg); | 40 virtual void SendRpcMessage(const std::string& raw_msg); |
41 | 41 |
42 // WebDevToolsClient implementation. | 42 // WebDevToolsClient implementation. |
43 virtual void DispatchMessageFromAgent(const std::string& raw_msg); | 43 virtual void DispatchMessageFromAgent(const std::string& raw_msg); |
44 | 44 |
45 private: | 45 private: |
46 static v8::Handle<v8::Value> JsAddSourceToFrame(const v8::Arguments& args); | 46 static v8::Handle<v8::Value> JsAddSourceToFrame(const v8::Arguments& args); |
47 static v8::Handle<v8::Value> JsLoaded(const v8::Arguments& args); | 47 static v8::Handle<v8::Value> JsLoaded(const v8::Arguments& args); |
| 48 static v8::Handle<v8::Value> JsSearch(const v8::Arguments& args); |
48 static v8::Persistent<v8::FunctionTemplate> host_template_; | 49 static v8::Persistent<v8::FunctionTemplate> host_template_; |
49 static HashMap<WebCore::Page*, WebDevToolsClientImpl*> page_to_client_; | 50 static HashMap<WebCore::Page*, WebDevToolsClientImpl*> page_to_client_; |
50 | 51 |
51 static void InitBoundObject(); | 52 static void InitBoundObject(); |
52 | 53 |
53 WebViewImpl* web_view_impl_; | 54 WebViewImpl* web_view_impl_; |
54 WebDevToolsClientDelegate* delegate_; | 55 WebDevToolsClientDelegate* delegate_; |
55 OwnPtr<CppBoundClass> debugger_command_executor_obj_; | 56 OwnPtr<CppBoundClass> debugger_command_executor_obj_; |
56 OwnPtr<JsDebuggerAgentBoundObj> debugger_agent_obj_; | 57 OwnPtr<JsDebuggerAgentBoundObj> debugger_agent_obj_; |
57 OwnPtr<JsDomAgentBoundObj> dom_agent_obj_; | 58 OwnPtr<JsDomAgentBoundObj> dom_agent_obj_; |
58 OwnPtr<JsNetAgentBoundObj> net_agent_obj_; | 59 OwnPtr<JsNetAgentBoundObj> net_agent_obj_; |
59 OwnPtr<JsToolsAgentBoundObj> tools_agent_obj_; | 60 OwnPtr<JsToolsAgentBoundObj> tools_agent_obj_; |
60 bool loaded_; | 61 bool loaded_; |
61 Vector<std::string> pending_incoming_messages_; | 62 Vector<std::string> pending_incoming_messages_; |
62 WebCore::Page* page_; | 63 WebCore::Page* page_; |
63 DISALLOW_COPY_AND_ASSIGN(WebDevToolsClientImpl); | 64 DISALLOW_COPY_AND_ASSIGN(WebDevToolsClientImpl); |
64 }; | 65 }; |
65 | 66 |
66 #endif // WEBKIT_GLUE_WEBDEVTOOLSCLIENT_IMPL_H_ | 67 #endif // WEBKIT_GLUE_WEBDEVTOOLSCLIENT_IMPL_H_ |
OLD | NEW |