diff options
author | pfeldman@chromium.org <pfeldman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-01 07:50:04 +0000 |
---|---|---|
committer | pfeldman@chromium.org <pfeldman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-01 07:50:04 +0000 |
commit | 10fb687b87f5fde62b3df3e2dd5c5d6f5533d715 (patch) | |
tree | 32440c96aec4e6fc8f4e9e11f036e599f3e73388 /chrome/renderer | |
parent | bb965d182303371fece6ca3254689d73a25e5548 (diff) | |
download | chromium_src-10fb687b87f5fde62b3df3e2dd5c5d6f5533d715.zip chromium_src-10fb687b87f5fde62b3df3e2dd5c5d6f5533d715.tar.gz chromium_src-10fb687b87f5fde62b3df3e2dd5c5d6f5533d715.tar.bz2 |
DevTools: Introduce docked version of DevTools.
Review URL: http://codereview.chromium.org/149071
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@19713 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer')
-rw-r--r-- | chrome/renderer/devtools_client.cc | 15 | ||||
-rw-r--r-- | chrome/renderer/devtools_client.h | 4 |
2 files changed, 19 insertions, 0 deletions
diff --git a/chrome/renderer/devtools_client.cc b/chrome/renderer/devtools_client.cc index b0f9a8f..feca1a71 100644 --- a/chrome/renderer/devtools_client.cc +++ b/chrome/renderer/devtools_client.cc @@ -51,6 +51,21 @@ void DevToolsClient::ActivateWindow() { render_view_->TakeFocus(render_view_->webview(), false); } +void DevToolsClient::CloseWindow() { + render_view_->Send(new ViewHostMsg_CloseDevToolsWindow( + render_view_->routing_id())); +} + +void DevToolsClient::DockWindow() { + render_view_->Send(new ViewHostMsg_DockDevToolsWindow( + render_view_->routing_id())); +} + +void DevToolsClient::UndockWindow() { + render_view_->Send(new ViewHostMsg_UndockDevToolsWindow( + render_view_->routing_id())); +} + void DevToolsClient::OnRpcMessage(const std::string& class_name, const std::string& method_name, const std::string& raw_msg) { diff --git a/chrome/renderer/devtools_client.h b/chrome/renderer/devtools_client.h index 744232a..295cb30 100644 --- a/chrome/renderer/devtools_client.h +++ b/chrome/renderer/devtools_client.h @@ -37,7 +37,11 @@ class DevToolsClient : public WebDevToolsClientDelegate { const std::string& method_name, const std::string& raw_msg); virtual void SendDebuggerCommandToAgent(const std::string& command); + virtual void ActivateWindow(); + virtual void CloseWindow(); + virtual void DockWindow(); + virtual void UndockWindow(); private: void OnRpcMessage(const std::string& class_name, |