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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/ui/InspectorView.js

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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 this._drawerTabbedPane = this._drawerTabbedLocation.tabbedPane(); 51 this._drawerTabbedPane = this._drawerTabbedLocation.tabbedPane();
52 this._drawerTabbedPane.setMinimumSize(0, 27); 52 this._drawerTabbedPane.setMinimumSize(0, 27);
53 var closeDrawerButton = new UI.ToolbarButton(Common.UIString('Close drawer') , 'largeicon-delete'); 53 var closeDrawerButton = new UI.ToolbarButton(Common.UIString('Close drawer') , 'largeicon-delete');
54 closeDrawerButton.addEventListener(UI.ToolbarButton.Events.Click, this._clos eDrawer, this); 54 closeDrawerButton.addEventListener(UI.ToolbarButton.Events.Click, this._clos eDrawer, this);
55 this._drawerTabbedPane.rightToolbar().appendToolbarItem(closeDrawerButton); 55 this._drawerTabbedPane.rightToolbar().appendToolbarItem(closeDrawerButton);
56 this._drawerSplitWidget.installResizer(this._drawerTabbedPane.headerElement( )); 56 this._drawerSplitWidget.installResizer(this._drawerTabbedPane.headerElement( ));
57 this._drawerSplitWidget.setSidebarWidget(this._drawerTabbedPane); 57 this._drawerSplitWidget.setSidebarWidget(this._drawerTabbedPane);
58 58
59 // Create main area tabbed pane. 59 // Create main area tabbed pane.
60 this._tabbedLocation = UI.viewManager.createTabbedLocation( 60 this._tabbedLocation = UI.viewManager.createTabbedLocation(
61 InspectorFrontendHost.bringToFront.bind(InspectorFrontendHost), 'panel', true, true); 61 InspectorFrontendHost.bringToFront.bind(InspectorFrontendHost), 'panel', true, true,
62 Runtime.queryParam('panel'));
63
62 this._tabbedPane = this._tabbedLocation.tabbedPane(); 64 this._tabbedPane = this._tabbedLocation.tabbedPane();
63 this._tabbedPane.registerRequiredCSS('ui/inspectorViewTabbedPane.css'); 65 this._tabbedPane.registerRequiredCSS('ui/inspectorViewTabbedPane.css');
64 this._tabbedPane.setTabSlider(true); 66 this._tabbedPane.setTabSlider(true);
65 this._tabbedPane.addEventListener(UI.TabbedPane.Events.TabSelected, this._ta bSelected, this); 67 this._tabbedPane.addEventListener(UI.TabbedPane.Events.TabSelected, this._ta bSelected, this);
66 68
67 if (Host.isUnderTest()) 69 if (Host.isUnderTest())
68 this._tabbedPane.setAutoSelectFirstItemOnShow(false); 70 this._tabbedPane.setAutoSelectFirstItemOnShow(false);
69 this._drawerSplitWidget.setMainWidget(this._tabbedPane); 71 this._drawerSplitWidget.setMainWidget(this._tabbedPane);
70 72
71 this._keyDownBound = this._keyDown.bind(this); 73 this._keyDownBound = this._keyDown.bind(this);
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 * @return {boolean} 314 * @return {boolean}
313 */ 315 */
314 handleAction(context, actionId) { 316 handleAction(context, actionId) {
315 if (UI.inspectorView.drawerVisible()) 317 if (UI.inspectorView.drawerVisible())
316 UI.inspectorView._closeDrawer(); 318 UI.inspectorView._closeDrawer();
317 else 319 else
318 UI.inspectorView._showDrawer(true); 320 UI.inspectorView._showDrawer(true);
319 return true; 321 return true;
320 } 322 }
321 }; 323 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698