summaryrefslogtreecommitdiffstats
path: root/webkit/glue/webview_impl.h
diff options
context:
space:
mode:
authorpfeldman@chromium.org <pfeldman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-16 18:51:34 +0000
committerpfeldman@chromium.org <pfeldman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-16 18:51:34 +0000
commit611cad45a3bc67189d273eaba0171b96f7bdbd97 (patch)
tree3fc4655ab572b37310dc43c53a510affd430496d /webkit/glue/webview_impl.h
parent12e0eed769a220d8ff490f092a7235af6f68270e (diff)
downloadchromium_src-611cad45a3bc67189d273eaba0171b96f7bdbd97.zip
chromium_src-611cad45a3bc67189d273eaba0171b96f7bdbd97.tar.gz
chromium_src-611cad45a3bc67189d273eaba0171b96f7bdbd97.tar.bz2
Wire DevTools agent in the Glue to the Renderer DevTools IPC transport: DevToolsAgent now implements WebDevToolsAgentDelegate, DevToolsClient covers WebDevToolsClientDelegate.
WebDevToolsAgent instance is being created by the WebView early in the init code and belongs to it. WebView exposes interface for accessing the agent; it also extends its delegate interface to pass WebDevToolsAgentDelegate into it. Note that there is no call overhead unless particular sub-agents are enabled in the WebDevToolsAgent. WebDevToolsClient instance is being created externally by the DevToolsClient. Review URL: http://codereview.chromium.org/46032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11752 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/webview_impl.h')
-rw-r--r--webkit/glue/webview_impl.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/webkit/glue/webview_impl.h b/webkit/glue/webview_impl.h
index 61bb396..78e0a63 100644
--- a/webkit/glue/webview_impl.h
+++ b/webkit/glue/webview_impl.h
@@ -42,6 +42,8 @@ class WebHistoryItemImpl;
class WebKeyboardEvent;
class WebMouseEvent;
class WebMouseWheelEvent;
+class WebDevToolsAgent;
+class WebDevToolsAgentImpl;
class WebViewDelegate;
class WebViewImpl : public WebView, public base::RefCounted<WebViewImpl> {
@@ -107,6 +109,9 @@ class WebViewImpl : public WebView, public base::RefCounted<WebViewImpl> {
int default_suggestion_index);
virtual void HideAutofillPopup();
+ virtual WebDevToolsAgent* GetWebDevToolsAgent();
+ WebDevToolsAgentImpl* GetWebDevToolsAgentImpl();
+
// WebViewImpl
const gfx::Size& size() const { return size_; }
@@ -311,6 +316,8 @@ class WebViewImpl : public WebView, public base::RefCounted<WebViewImpl> {
// The autocomplete client.
scoped_ptr<AutocompletePopupMenuClient> autocomplete_popup_client_;
+ scoped_ptr<WebDevToolsAgentImpl> devtools_agent_;
+
// HACK: current_input_event is for ChromeClientImpl::show(), until we can fix
// WebKit to pass enough information up into ChromeClient::show() so we can
// decide if the window.open event was caused by a middle-mouse click