Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(185)

Side by Side Diff: webkit/glue/webdevtoolsagent_impl.h

Issue 341030: Moves webview_impl.cc, webframe_impl.cc and webframeloaderclient_impl.cc into... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « webkit/glue/webaccessibilitymanager_impl.cc ('k') | webkit/glue/webdevtoolsagent_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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>
11 11
12 #include "v8.h" 12 #include "v8.h"
13 #include "webkit/api/public/WebDevToolsAgent.h" 13 #include "webkit/api/public/WebDevToolsAgent.h"
14 #include "webkit/glue/devtools/devtools_rpc.h" 14 #include "webkit/glue/devtools/devtools_rpc.h"
15 #include "webkit/glue/devtools/apu_agent_delegate.h" 15 #include "webkit/glue/devtools/apu_agent_delegate.h"
16 #include "webkit/glue/devtools/tools_agent.h" 16 #include "webkit/glue/devtools/tools_agent.h"
17 17
18 namespace WebCore { 18 namespace WebCore {
19 class Document; 19 class Document;
20 class Node; 20 class Node;
21 class ScriptState; 21 class ScriptState;
22 class String; 22 class String;
23 } 23 }
24 24
25 namespace WebKit { 25 namespace WebKit {
26 class WebDevToolsAgentClient; 26 class WebDevToolsAgentClient;
27 class WebFrame; 27 class WebFrame;
28 class WebFrameImpl;
29 class WebViewImpl;
28 } 30 }
29 31
30 class BoundObject; 32 class BoundObject;
31 class DebuggerAgentDelegateStub; 33 class DebuggerAgentDelegateStub;
32 class DebuggerAgentImpl; 34 class DebuggerAgentImpl;
33 class Value; 35 class Value;
34 class WebFrameImpl;
35 class WebViewImpl;
36 36
37 class WebDevToolsAgentImpl : public WebKit::WebDevToolsAgent, 37 class WebDevToolsAgentImpl : public WebKit::WebDevToolsAgent,
38 public ToolsAgent, 38 public ToolsAgent,
39 public DevToolsRpc::Delegate { 39 public DevToolsRpc::Delegate {
40 public: 40 public:
41 WebDevToolsAgentImpl(WebViewImpl* web_view_impl, 41 WebDevToolsAgentImpl(WebKit::WebViewImpl* web_view_impl,
42 WebKit::WebDevToolsAgentClient* client); 42 WebKit::WebDevToolsAgentClient* client);
43 virtual ~WebDevToolsAgentImpl(); 43 virtual ~WebDevToolsAgentImpl();
44 44
45 // ToolsAgent implementation. 45 // ToolsAgent implementation.
46 virtual void DispatchOnInspectorController( 46 virtual void DispatchOnInspectorController(
47 int call_id, 47 int call_id,
48 const WebCore::String& function_name, 48 const WebCore::String& function_name,
49 const WebCore::String& json_args); 49 const WebCore::String& json_args);
50 virtual void DispatchOnInjectedScript( 50 virtual void DispatchOnInjectedScript(
51 int call_id, 51 int call_id,
(...skipping 19 matching lines...) Expand all
71 71
72 // DevToolsRpc::Delegate implementation. 72 // DevToolsRpc::Delegate implementation.
73 void SendRpcMessage(const WebCore::String& class_name, 73 void SendRpcMessage(const WebCore::String& class_name,
74 const WebCore::String& method_name, 74 const WebCore::String& method_name,
75 const WebCore::String& param1, 75 const WebCore::String& param1,
76 const WebCore::String& param2, 76 const WebCore::String& param2,
77 const WebCore::String& param3); 77 const WebCore::String& param3);
78 78
79 // Methods called by the glue. 79 // Methods called by the glue.
80 void SetMainFrameDocumentReady(bool ready); 80 void SetMainFrameDocumentReady(bool ready);
81 void DidCommitLoadForFrame(WebViewImpl* webview, 81 void DidCommitLoadForFrame(WebKit::WebViewImpl* webview,
82 WebKit::WebFrame* frame, 82 WebKit::WebFrame* frame,
83 bool is_new_navigation); 83 bool is_new_navigation);
84 84
85 void WindowObjectCleared(WebFrameImpl* webframe); 85 void WindowObjectCleared(WebKit::WebFrameImpl* webframe);
86 86
87 void ForceRepaint(); 87 void ForceRepaint();
88 88
89 int host_id() { return host_id_; } 89 int host_id() { return host_id_; }
90 90
91 private: 91 private:
92 static v8::Handle<v8::Value> JsDispatchOnClient(const v8::Arguments& args); 92 static v8::Handle<v8::Value> JsDispatchOnClient(const v8::Arguments& args);
93 static v8::Handle<v8::Value> JsDispatchToApu(const v8::Arguments& args); 93 static v8::Handle<v8::Value> JsDispatchToApu(const v8::Arguments& args);
94 void DisposeUtilityContext(); 94 void DisposeUtilityContext();
95 void UnhideResourcesPanelIfNecessary(); 95 void UnhideResourcesPanelIfNecessary();
96 96
97 void InitDevToolsAgentHost(); 97 void InitDevToolsAgentHost();
98 void ResetInspectorFrontendProxy(); 98 void ResetInspectorFrontendProxy();
99 99
100 // Creates InspectorBackend v8 wrapper in the utility context so that it's 100 // Creates InspectorBackend v8 wrapper in the utility context so that it's
101 // methods prototype is Function.protoype object from the utility context. 101 // methods prototype is Function.protoype object from the utility context.
102 // Otherwise some useful methods defined on Function.prototype(such as bind) 102 // Otherwise some useful methods defined on Function.prototype(such as bind)
103 // are missing for InspectorController native methods. 103 // are missing for InspectorController native methods.
104 v8::Local<v8::Object> CreateInspectorBackendV8Wrapper(); 104 v8::Local<v8::Object> CreateInspectorBackendV8Wrapper();
105 105
106 int host_id_; 106 int host_id_;
107 WebKit::WebDevToolsAgentClient* client_; 107 WebKit::WebDevToolsAgentClient* client_;
108 WebViewImpl* web_view_impl_; 108 WebKit::WebViewImpl* web_view_impl_;
109 OwnPtr<DebuggerAgentDelegateStub> debugger_agent_delegate_stub_; 109 OwnPtr<DebuggerAgentDelegateStub> debugger_agent_delegate_stub_;
110 OwnPtr<ToolsAgentDelegateStub> tools_agent_delegate_stub_; 110 OwnPtr<ToolsAgentDelegateStub> tools_agent_delegate_stub_;
111 OwnPtr<ToolsAgentNativeDelegateStub> tools_agent_native_delegate_stub_; 111 OwnPtr<ToolsAgentNativeDelegateStub> tools_agent_native_delegate_stub_;
112 OwnPtr<DebuggerAgentImpl> debugger_agent_impl_; 112 OwnPtr<DebuggerAgentImpl> debugger_agent_impl_;
113 OwnPtr<ApuAgentDelegateStub> apu_agent_delegate_stub_; 113 OwnPtr<ApuAgentDelegateStub> apu_agent_delegate_stub_;
114 bool apu_agent_enabled_; 114 bool apu_agent_enabled_;
115 bool resource_tracking_was_enabled_; 115 bool resource_tracking_was_enabled_;
116 bool attached_; 116 bool attached_;
117 // TODO(pfeldman): This should not be needed once GC styles issue is fixed 117 // TODO(pfeldman): This should not be needed once GC styles issue is fixed
118 // for matching rules. 118 // for matching rules.
119 v8::Persistent<v8::Context> utility_context_; 119 v8::Persistent<v8::Context> utility_context_;
120 OwnPtr<BoundObject> devtools_agent_host_; 120 OwnPtr<BoundObject> devtools_agent_host_;
121 OwnPtr<WebCore::ScriptState> inspector_frontend_script_state_; 121 OwnPtr<WebCore::ScriptState> inspector_frontend_script_state_;
122 }; 122 };
123 123
124 #endif // WEBKIT_GLUE_WEBDEVTOOLSAGENT_IMPL_H_ 124 #endif // WEBKIT_GLUE_WEBDEVTOOLSAGENT_IMPL_H_
OLDNEW
« no previous file with comments | « webkit/glue/webaccessibilitymanager_impl.cc ('k') | webkit/glue/webdevtoolsagent_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698