diff options
author | pfeldman@chromium.org <pfeldman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-14 09:29:58 +0000 |
---|---|---|
committer | pfeldman@chromium.org <pfeldman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-14 09:29:58 +0000 |
commit | 07a5cf9731ef2e28b73314326969790e53f7839b (patch) | |
tree | be0a8843b1e1bcedfe1253c9fb7bf21c2a1cf663 /chrome/browser/debugger | |
parent | f8e198b1b90e8100ad3861df7874b9c8fe722384 (diff) | |
download | chromium_src-07a5cf9731ef2e28b73314326969790e53f7839b.zip chromium_src-07a5cf9731ef2e28b73314326969790e53f7839b.tar.gz chromium_src-07a5cf9731ef2e28b73314326969790e53f7839b.tar.bz2 |
DevTools: Focus docked DevTools window on breakpoint.
Review URL: http://codereview.chromium.org/155423
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20614 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/debugger')
-rw-r--r-- | chrome/browser/debugger/devtools_window.cc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/chrome/browser/debugger/devtools_window.cc b/chrome/browser/debugger/devtools_window.cc index 9c5705c..75fb4fe 100644 --- a/chrome/browser/debugger/devtools_window.cc +++ b/chrome/browser/debugger/devtools_window.cc @@ -127,8 +127,12 @@ void DevToolsWindow::Show() { } void DevToolsWindow::Activate() { - if (!docked_ && !browser_->window()->IsActive()) { - browser_->window()->Activate(); + if (!docked_) { + if (!browser_->window()->IsActive()) { + browser_->window()->Activate(); + } + } else { + inspected_window_->FocusDevTools(); } } |