Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2007 Matt Lilek (pewtermoose@gmail.com). | 3 * Copyright (C) 2007 Matt Lilek (pewtermoose@gmail.com). |
| 4 * Copyright (C) 2009 Joseph Pecoraro | 4 * Copyright (C) 2009 Joseph Pecoraro |
| 5 * | 5 * |
| 6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
| 7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
| 8 * are met: | 8 * are met: |
| 9 * | 9 * |
| 10 * 1. Redistributions of source code must retain the above copyright | 10 * 1. Redistributions of source code must retain the above copyright |
| (...skipping 26 matching lines...) Expand all Loading... | |
| 37 WebInspector.inspectorView.show(parentElement); | 37 WebInspector.inspectorView.show(parentElement); |
| 38 WebInspector.inspectorView.addEventListener(WebInspector.InspectorView.E vents.PanelSelected, this._panelSelected, this); | 38 WebInspector.inspectorView.addEventListener(WebInspector.InspectorView.E vents.PanelSelected, this._panelSelected, this); |
| 39 | 39 |
| 40 var elements = new WebInspector.ElementsPanelDescriptor(); | 40 var elements = new WebInspector.ElementsPanelDescriptor(); |
| 41 var resources = new WebInspector.PanelDescriptor("resources", WebInspect or.UIString("Resources"), "ResourcesPanel", "ResourcesPanel.js"); | 41 var resources = new WebInspector.PanelDescriptor("resources", WebInspect or.UIString("Resources"), "ResourcesPanel", "ResourcesPanel.js"); |
| 42 var network = new WebInspector.NetworkPanelDescriptor(); | 42 var network = new WebInspector.NetworkPanelDescriptor(); |
| 43 var sources = new WebInspector.SourcesPanelDescriptor(); | 43 var sources = new WebInspector.SourcesPanelDescriptor(); |
| 44 var timeline = new WebInspector.TimelinePanelDescriptor(); | 44 var timeline = new WebInspector.TimelinePanelDescriptor(); |
| 45 var profiles = new WebInspector.ProfilesPanelDescriptor(); | 45 var profiles = new WebInspector.ProfilesPanelDescriptor(); |
| 46 var audits = new WebInspector.PanelDescriptor("audits", WebInspector.UIS tring("Audits"), "AuditsPanel", "AuditsPanel.js"); | 46 var audits = new WebInspector.PanelDescriptor("audits", WebInspector.UIS tring("Audits"), "AuditsPanel", "AuditsPanel.js"); |
| 47 var console = new WebInspector.PanelDescriptor("console", WebInspector.U IString("Console"), "ConsolePanel"); | 47 var console = new WebInspector.PanelDescriptor("console", WebInspector.U IString("Console"), "ConsolePanel"); |
|
Jacob
2013/12/05 22:56:12
comment out these next 4 lines before checkin so u
Cutch
2013/12/05 23:09:37
Done.
| |
| 48 var allDescriptors = [elements, resources, network, sources, timeline, p rofiles, audits, console]; | 48 var dartObservatory = new WebInspector.PanelDescriptor("observatory", We bInspector.UIString("DartObservatory"), undefined, undefined, |
| 49 new WebInspector.DartPanel("observatory", "http://localhost:8887/") ); | |
| 50 | |
| 51 var allDescriptors = [elements, resources, network, sources, timeline, p rofiles, audits, console, dartObservatory]; | |
| 49 if (WebInspector.experimentsSettings.layersPanel.isEnabled()) { | 52 if (WebInspector.experimentsSettings.layersPanel.isEnabled()) { |
| 50 var layers = new WebInspector.LayersPanelDescriptor(); | 53 var layers = new WebInspector.LayersPanelDescriptor(); |
| 51 allDescriptors.push(layers); | 54 allDescriptors.push(layers); |
| 52 } | 55 } |
| 53 var allProfilers = [profiles]; | 56 var allProfilers = [profiles]; |
| 54 if (WebInspector.experimentsSettings.customizableToolbar.isEnabled()) { | 57 if (WebInspector.experimentsSettings.customizableToolbar.isEnabled()) { |
| 55 allProfilers = []; | 58 allProfilers = []; |
| 56 allProfilers.push(new WebInspector.PanelDescriptor("cpu-profiler", W ebInspector.UIString("CPU Profiler"), "CPUProfilerPanel", "ProfilesPanel.js")); | 59 allProfilers.push(new WebInspector.PanelDescriptor("cpu-profiler", W ebInspector.UIString("CPU Profiler"), "CPUProfilerPanel", "ProfilesPanel.js")); |
| 57 if (!WebInspector.WorkerManager.isWorkerFrontend()) | 60 if (!WebInspector.WorkerManager.isWorkerFrontend()) |
| 58 allProfilers.push(new WebInspector.PanelDescriptor("css-profiler ", WebInspector.UIString("CSS Profiler"), "CSSSelectorProfilerPanel", "ProfilesP anel.js")); | 61 allProfilers.push(new WebInspector.PanelDescriptor("css-profiler ", WebInspector.UIString("CSS Profiler"), "CSSSelectorProfilerPanel", "ProfilesP anel.js")); |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 164 panelStatusBar.insertBefore(drawerStatusBarHeader, drawerViewAnchor); | 167 panelStatusBar.insertBefore(drawerStatusBarHeader, drawerViewAnchor); |
| 165 this._drawerStatusBarHeader = drawerStatusBarHeader; | 168 this._drawerStatusBarHeader = drawerStatusBarHeader; |
| 166 this.drawer.show(view, WebInspector.Drawer.AnimationType.Immediately); | 169 this.drawer.show(view, WebInspector.Drawer.AnimationType.Immediately); |
| 167 }, | 170 }, |
| 168 | 171 |
| 169 closeViewInDrawer: function() | 172 closeViewInDrawer: function() |
| 170 { | 173 { |
| 171 if (this._drawerStatusBarHeader) { | 174 if (this._drawerStatusBarHeader) { |
| 172 this._removeDrawerView(); | 175 this._removeDrawerView(); |
| 173 | 176 |
| 174 // Once drawer is closed console should be shown if it was shown bef ore current view replaced it in drawer. | 177 // Once drawer is closed console should be shown if it was shown bef ore current view replaced it in drawer. |
|
Jacob
2013/12/05 22:56:12
add back in the space to keep our diff small with
Cutch
2013/12/05 23:09:37
Done.
| |
| 175 if (this._consoleWasShown) | 178 if (this._consoleWasShown) |
| 176 this.showConsole(); | 179 this.showConsole(); |
| 177 else | 180 else |
| 178 this.drawer.hide(WebInspector.Drawer.AnimationType.Immediately); | 181 this.drawer.hide(WebInspector.Drawer.AnimationType.Immediately); |
| 179 } | 182 } |
| 180 }, | 183 }, |
| 181 | 184 |
| 182 _removeDrawerView: function() | 185 _removeDrawerView: function() |
| 183 { | 186 { |
| 184 if (this._drawerStatusBarHeader) { | 187 if (this._drawerStatusBarHeader) { |
| (...skipping 939 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1124 | 1127 |
| 1125 /** | 1128 /** |
| 1126 * @return {string} | 1129 * @return {string} |
| 1127 */ | 1130 */ |
| 1128 WebInspector.getSelectionForegroundColor = function() | 1131 WebInspector.getSelectionForegroundColor = function() |
| 1129 { | 1132 { |
| 1130 return InspectorFrontendHost.getSelectionForegroundColor(); | 1133 return InspectorFrontendHost.getSelectionForegroundColor(); |
| 1131 } | 1134 } |
| 1132 | 1135 |
| 1133 window.DEBUG = true; | 1136 window.DEBUG = true; |
| OLD | NEW |