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/browser/renderer_host | |
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/browser/renderer_host')
-rw-r--r-- | chrome/browser/renderer_host/render_view_host.cc | 18 | ||||
-rw-r--r-- | chrome/browser/renderer_host/render_view_host.h | 5 |
2 files changed, 23 insertions, 0 deletions
diff --git a/chrome/browser/renderer_host/render_view_host.cc b/chrome/browser/renderer_host/render_view_host.cc index 87f4bf0..d313178 100644 --- a/chrome/browser/renderer_host/render_view_host.cc +++ b/chrome/browser/renderer_host/render_view_host.cc @@ -733,6 +733,12 @@ void RenderViewHost::OnMessageReceived(const IPC::Message& msg) { OnForwardToDevToolsAgent); IPC_MESSAGE_HANDLER(ViewHostMsg_ForwardToDevToolsClient, OnForwardToDevToolsClient); + IPC_MESSAGE_HANDLER(ViewHostMsg_CloseDevToolsWindow, + OnCloseDevToolsWindow); + IPC_MESSAGE_HANDLER(ViewHostMsg_DockDevToolsWindow, + OnDockDevToolsWindow); + IPC_MESSAGE_HANDLER(ViewHostMsg_UndockDevToolsWindow, + OnUndockDevToolsWindow); IPC_MESSAGE_HANDLER(ViewHostMsg_UserMetricsRecordAction, OnUserMetricsRecordAction) IPC_MESSAGE_HANDLER(ViewHostMsg_MissingPluginStatus, OnMissingPluginStatus); @@ -1204,6 +1210,18 @@ void RenderViewHost::OnForwardToDevToolsClient(const IPC::Message& message) { DevToolsManager::GetInstance()->ForwardToDevToolsClient(this, message); } +void RenderViewHost::OnCloseDevToolsWindow() { + DevToolsManager::GetInstance()->CloseWindow(this); +} + +void RenderViewHost::OnDockDevToolsWindow() { + DevToolsManager::GetInstance()->DockWindow(this); +} + +void RenderViewHost::OnUndockDevToolsWindow() { + DevToolsManager::GetInstance()->UndockWindow(this); +} + void RenderViewHost::OnUserMetricsRecordAction(const std::wstring& action) { UserMetrics::RecordComputedAction(action.c_str(), process()->profile()); } diff --git a/chrome/browser/renderer_host/render_view_host.h b/chrome/browser/renderer_host/render_view_host.h index 0e783a5..a30dbc2 100644 --- a/chrome/browser/renderer_host/render_view_host.h +++ b/chrome/browser/renderer_host/render_view_host.h @@ -515,9 +515,14 @@ class RenderViewHost : public RenderWidgetHost { void OnAddMessageToConsole(const std::wstring& message, int32 line_no, const std::wstring& source_id); + void OnUpdateInspectorSettings(const std::wstring& raw_settings); void OnForwardToDevToolsAgent(const IPC::Message& message); void OnForwardToDevToolsClient(const IPC::Message& message); + void OnCloseDevToolsWindow(); + void OnDockDevToolsWindow(); + void OnUndockDevToolsWindow(); + void OnUserMetricsRecordAction(const std::wstring& action); void OnMissingPluginStatus(int status); void OnMessageReceived(IPC::Message* msg) { } |