| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/ui/views/extensions/extension_popup.h" | 5 #include "chrome/browser/ui/views/extensions/extension_popup.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/message_loop/message_loop.h" | 8 #include "base/message_loop/message_loop.h" |
| 9 #include "chrome/browser/chrome_notification_types.h" | 9 #include "chrome/browser/chrome_notification_types.h" |
| 10 #include "chrome/browser/devtools/devtools_window.h" | 10 #include "chrome/browser/devtools/devtools_window.h" |
| (...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 246 return popup; | 246 return popup; |
| 247 } | 247 } |
| 248 | 248 |
| 249 void ExtensionPopup::ShowBubble() { | 249 void ExtensionPopup::ShowBubble() { |
| 250 GetWidget()->Show(); | 250 GetWidget()->Show(); |
| 251 | 251 |
| 252 // Focus on the host contents when the bubble is first shown. | 252 // Focus on the host contents when the bubble is first shown. |
| 253 host()->host_contents()->GetView()->Focus(); | 253 host()->host_contents()->GetView()->Focus(); |
| 254 | 254 |
| 255 if (inspect_with_devtools_) { | 255 if (inspect_with_devtools_) { |
| 256 DevToolsWindow::ToggleDevToolsWindow(host()->render_view_host(), | 256 DevToolsWindow::OpenDevToolsWindow(host()->render_view_host(), |
| 257 true, | |
| 258 DevToolsToggleAction::ShowConsole()); | 257 DevToolsToggleAction::ShowConsole()); |
| 259 } | 258 } |
| 260 } | 259 } |
| OLD | NEW |