Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(670)

Side by Side Diff: chrome/browser/ui/views/extensions/extension_popup.cc

Issue 2566573002: DevTools: Open Elements panel sooner on Inspect Element (Closed)
Patch Set: Missed one showConsolePanel Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/browser/ui/browser_commands.cc ('k') | chrome/browser/ui/webui/devtools_ui.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "chrome/browser/chrome_notification_types.h" 8 #include "chrome/browser/chrome_notification_types.h"
9 #include "chrome/browser/devtools/devtools_window.h" 9 #include "chrome/browser/devtools/devtools_window.h"
10 #include "chrome/browser/extensions/extension_view_host.h" 10 #include "chrome/browser/extensions/extension_view_host.h"
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 host.release(), anchor_view, arrow, show_action); 193 host.release(), anchor_view, arrow, show_action);
194 } 194 }
195 195
196 void ExtensionPopup::ShowBubble() { 196 void ExtensionPopup::ShowBubble() {
197 GetWidget()->Show(); 197 GetWidget()->Show();
198 198
199 // Focus on the host contents when the bubble is first shown. 199 // Focus on the host contents when the bubble is first shown.
200 host()->host_contents()->Focus(); 200 host()->host_contents()->Focus();
201 201
202 if (inspect_with_devtools_) { 202 if (inspect_with_devtools_) {
203 DevToolsWindow::OpenDevToolsWindow(host()->host_contents(), 203 DevToolsWindow::OpenDevToolsWindow(
204 DevToolsToggleAction::ShowConsole()); 204 host()->host_contents(), DevToolsToggleAction::ShowConsolePanel());
205 } 205 }
206 } 206 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/browser_commands.cc ('k') | chrome/browser/ui/webui/devtools_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698