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

Side by Side Diff: Source/devtools/front_end/components/InspectorView.js

Issue 422313002: DevTools: Remove editor in drawer experiment (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 months 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 | Annotate | Revision Log
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 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 return this._currentPanel; 191 return this._currentPanel;
192 }, 192 },
193 193
194 showInitialPanel: function() 194 showInitialPanel: function()
195 { 195 {
196 this._tabbedPane.addEventListener(WebInspector.TabbedPane.EventTypes.Tab Selected, this._tabSelected, this); 196 this._tabbedPane.addEventListener(WebInspector.TabbedPane.EventTypes.Tab Selected, this._tabSelected, this);
197 this._tabSelected(); 197 this._tabSelected();
198 this._drawer.initialPanelShown(); 198 this._drawer.initialPanelShown();
199 }, 199 },
200 200
201 showDrawerEditor: function()
202 {
203 this._drawer.showDrawerEditor();
204 },
205
206 /**
207 * @return {boolean}
208 */
209 isDrawerEditorShown: function()
210 {
211 return this._drawer.isDrawerEditorShown();
212 },
213
214 hideDrawerEditor: function()
215 {
216 this._drawer.hideDrawerEditor();
217 },
218
219 /**
220 * @param {boolean} available
221 */
222 setDrawerEditorAvailable: function(available)
223 {
224 this._drawer.setDrawerEditorAvailable(available);
225 },
226
227 _tabSelected: function() 201 _tabSelected: function()
228 { 202 {
229 var panelName = this._tabbedPane.selectedTabId; 203 var panelName = this._tabbedPane.selectedTabId;
230 if (!panelName) 204 if (!panelName)
231 return; 205 return;
232 var panel = this._panelDescriptors[this._tabbedPane.selectedTabId].panel (); 206 var panel = this._panelDescriptors[this._tabbedPane.selectedTabId].panel ();
233 this._panels[panelName] = panel; 207 this._panels[panelName] = panel;
234 this._tabbedPane.changeTabView(panelName, panel); 208 this._tabbedPane.changeTabView(panelName, panel);
235 209
236 this._currentPanel = panel; 210 this._currentPanel = panel;
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after
532 window.addEventListener("scroll", this._onScrollBound, false); 506 window.addEventListener("scroll", this._onScrollBound, false);
533 else 507 else
534 window.removeEventListener("scroll", this._onScrollBound, false); 508 window.removeEventListener("scroll", this._onScrollBound, false);
535 509
536 WebInspector.VBox.prototype.doResize.call(this); 510 WebInspector.VBox.prototype.doResize.call(this);
537 this._onScroll(); 511 this._onScroll();
538 }, 512 },
539 513
540 __proto__: WebInspector.VBox.prototype 514 __proto__: WebInspector.VBox.prototype
541 }; 515 };
OLDNEW
« no previous file with comments | « Source/devtools/front_end/components/Drawer.js ('k') | Source/devtools/front_end/sources/SourcesPanel.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698