| 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_IMPL_H_ | 5 #ifndef WEBKIT_GLUE_WEBDEVTOOLSAGENT_IMPL_H_ |
| 6 #define WEBKIT_GLUE_WEBDEVTOOLSAGENT_IMPL_H_ | 6 #define WEBKIT_GLUE_WEBDEVTOOLSAGENT_IMPL_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include <wtf/OwnPtr.h> | 10 #include <wtf/OwnPtr.h> |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 virtual void GetResourceContent( | 49 virtual void GetResourceContent( |
| 50 int call_id, | 50 int call_id, |
| 51 int identifier); | 51 int identifier); |
| 52 | 52 |
| 53 // WebDevToolsAgent implementation. | 53 // WebDevToolsAgent implementation. |
| 54 virtual void Attach(); | 54 virtual void Attach(); |
| 55 virtual void Detach(); | 55 virtual void Detach(); |
| 56 virtual void OnNavigate(); | 56 virtual void OnNavigate(); |
| 57 virtual void DispatchMessageFromClient(const std::string& class_name, | 57 virtual void DispatchMessageFromClient(const std::string& class_name, |
| 58 const std::string& method_name, | 58 const std::string& method_name, |
| 59 const std::string& raw_msg); | 59 const std::string& param1, |
| 60 const std::string& param2, |
| 61 const std::string& param3); |
| 60 virtual void InspectElement(int x, int y); | 62 virtual void InspectElement(int x, int y); |
| 61 | 63 |
| 62 // DevToolsRpc::Delegate implementation. | 64 // DevToolsRpc::Delegate implementation. |
| 63 void SendRpcMessage(const std::string& class_name, | 65 void SendRpcMessage(const std::string& class_name, |
| 64 const std::string& method_name, | 66 const std::string& method_name, |
| 65 const std::string& raw_msg); | 67 const std::string& param1, |
| 68 const std::string& param2, |
| 69 const std::string& param3); |
| 66 | 70 |
| 67 // Methods called by the glue. | 71 // Methods called by the glue. |
| 68 void SetMainFrameDocumentReady(bool ready); | 72 void SetMainFrameDocumentReady(bool ready); |
| 69 void DidCommitLoadForFrame(WebViewImpl* webview, | 73 void DidCommitLoadForFrame(WebViewImpl* webview, |
| 70 WebKit::WebFrame* frame, | 74 WebKit::WebFrame* frame, |
| 71 bool is_new_navigation); | 75 bool is_new_navigation); |
| 72 | 76 |
| 73 void WindowObjectCleared(WebFrameImpl* webframe); | 77 void WindowObjectCleared(WebFrameImpl* webframe); |
| 74 | 78 |
| 75 void ForceRepaint(); | 79 void ForceRepaint(); |
| (...skipping 16 matching lines...) Expand all Loading... |
| 92 OwnPtr<DebuggerAgentImpl> debugger_agent_impl_; | 96 OwnPtr<DebuggerAgentImpl> debugger_agent_impl_; |
| 93 bool attached_; | 97 bool attached_; |
| 94 // TODO(pfeldman): This should not be needed once GC styles issue is fixed | 98 // TODO(pfeldman): This should not be needed once GC styles issue is fixed |
| 95 // for matching rules. | 99 // for matching rules. |
| 96 v8::Persistent<v8::Context> utility_context_; | 100 v8::Persistent<v8::Context> utility_context_; |
| 97 OwnPtr<BoundObject> devtools_agent_host_; | 101 OwnPtr<BoundObject> devtools_agent_host_; |
| 98 DISALLOW_COPY_AND_ASSIGN(WebDevToolsAgentImpl); | 102 DISALLOW_COPY_AND_ASSIGN(WebDevToolsAgentImpl); |
| 99 }; | 103 }; |
| 100 | 104 |
| 101 #endif // WEBKIT_GLUE_WEBDEVTOOLSAGENT_IMPL_H_ | 105 #endif // WEBKIT_GLUE_WEBDEVTOOLSAGENT_IMPL_H_ |
| OLD | NEW |