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 30 matching lines...) Expand all Loading... |
41 WebDevToolsAgentDelegate* delegate); | 41 WebDevToolsAgentDelegate* delegate); |
42 virtual ~WebDevToolsAgentImpl(); | 42 virtual ~WebDevToolsAgentImpl(); |
43 | 43 |
44 // ToolsAgent implementation. | 44 // ToolsAgent implementation. |
45 virtual void HighlightDOMNode(int node_id); | 45 virtual void HighlightDOMNode(int node_id); |
46 virtual void HideDOMNodeHighlight(); | 46 virtual void HideDOMNodeHighlight(); |
47 virtual void ExecuteUtilityFunction( | 47 virtual void ExecuteUtilityFunction( |
48 int call_id, | 48 int call_id, |
49 const WebCore::String& function_name, | 49 const WebCore::String& function_name, |
50 const WebCore::String& json_args); | 50 const WebCore::String& json_args); |
| 51 virtual void EvaluateJavaScript( |
| 52 int call_id, |
| 53 const WebCore::String& source); |
51 virtual void ClearConsoleMessages(); | 54 virtual void ClearConsoleMessages(); |
52 virtual void GetResourceContent( | 55 virtual void GetResourceContent( |
53 int call_id, | 56 int call_id, |
54 int identifier); | 57 int identifier); |
55 virtual void SetResourceTrackingEnabled(bool enabled, bool always); | 58 virtual void SetResourceTrackingEnabled(bool enabled, bool always); |
56 | 59 |
57 // WebDevToolsAgent implementation. | 60 // WebDevToolsAgent implementation. |
58 virtual void Attach(); | 61 virtual void Attach(); |
59 virtual void Detach(); | 62 virtual void Detach(); |
60 virtual void OnNavigate(); | 63 virtual void OnNavigate(); |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 OwnPtr<DomAgentImpl> dom_agent_impl_; | 102 OwnPtr<DomAgentImpl> dom_agent_impl_; |
100 bool attached_; | 103 bool attached_; |
101 // TODO(pfeldman): This should not be needed once GC styles issue is fixed | 104 // TODO(pfeldman): This should not be needed once GC styles issue is fixed |
102 // for matching rules. | 105 // for matching rules. |
103 v8::Persistent<v8::Context> utility_context_; | 106 v8::Persistent<v8::Context> utility_context_; |
104 OwnPtr<BoundObject> devtools_agent_host_; | 107 OwnPtr<BoundObject> devtools_agent_host_; |
105 DISALLOW_COPY_AND_ASSIGN(WebDevToolsAgentImpl); | 108 DISALLOW_COPY_AND_ASSIGN(WebDevToolsAgentImpl); |
106 }; | 109 }; |
107 | 110 |
108 #endif // WEBKIT_GLUE_WEBDEVTOOLSAGENT_IMPL_H_ | 111 #endif // WEBKIT_GLUE_WEBDEVTOOLSAGENT_IMPL_H_ |
OLD | NEW |