summaryrefslogtreecommitdiffstats
path: root/chrome/browser/debugger/devtools_manager.cc
diff options
context:
space:
mode:
authorpfeldman@chromium.org <pfeldman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-16 16:47:58 +0000
committerpfeldman@chromium.org <pfeldman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-16 16:47:58 +0000
commit522b1e1c7dc9e9898543e018647d22126aa02177 (patch)
tree9125edcbbcea96600f35e7fb37108b7adcbc2cd5 /chrome/browser/debugger/devtools_manager.cc
parentd0c07ee9cdb1101244e3b5b4e5322e46cb735163 (diff)
downloadchromium_src-522b1e1c7dc9e9898543e018647d22126aa02177.zip
chromium_src-522b1e1c7dc9e9898543e018647d22126aa02177.tar.gz
chromium_src-522b1e1c7dc9e9898543e018647d22126aa02177.tar.bz2
DevTools: Make 'toggle node search' mode work.
BUG=16824 Review URL: http://codereview.chromium.org/155639 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20873 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/debugger/devtools_manager.cc')
-rw-r--r--chrome/browser/debugger/devtools_manager.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/chrome/browser/debugger/devtools_manager.cc b/chrome/browser/debugger/devtools_manager.cc
index 8cc56d0..c68f806 100644
--- a/chrome/browser/debugger/devtools_manager.cc
+++ b/chrome/browser/debugger/devtools_manager.cc
@@ -118,6 +118,15 @@ void DevToolsManager::UndockWindow(RenderViewHost* client_rvh) {
ReopenWindow(client_rvh, false);
}
+void DevToolsManager::ToggleInspectElementMode(RenderViewHost* client_rvh,
+ bool enabled) {
+ DevToolsClientHost* client_host = FindOnwerDevToolsClientHost(client_rvh);
+ DCHECK(client_host);
+ RenderViewHost* inspected_rvh = GetInspectedRenderViewHost(client_host);
+ DCHECK(inspected_rvh);
+ inspected_rvh->set_in_inspect_element_mode(enabled);
+}
+
void DevToolsManager::OpenDevToolsWindow(RenderViewHost* inspected_rvh) {
ToggleDevToolsWindow(inspected_rvh, true);
}