Chromium Code Reviews| Index: third_party/WebKit/Source/devtools/front_end/components/InspectorView.js |
| diff --git a/third_party/WebKit/Source/devtools/front_end/components/InspectorView.js b/third_party/WebKit/Source/devtools/front_end/components/InspectorView.js |
| index 1ec9f35e4189e75ac59f5401e0eb7f8422abc180..5c0c51908fae08825267d656be1e67b52078c228 100644 |
| --- a/third_party/WebKit/Source/devtools/front_end/components/InspectorView.js |
| +++ b/third_party/WebKit/Source/devtools/front_end/components/InspectorView.js |
| @@ -74,6 +74,7 @@ WebInspector.InspectorView = function() |
| this._lastActivePanelSetting = WebInspector.settings.createSetting("lastActivePanel", "elements"); |
| InspectorFrontendHost.events.addEventListener(InspectorFrontendHostAPI.Events.ShowConsole, showConsole.bind(this)); |
| + InspectorFrontendHost.events.addEventListener(InspectorFrontendHostAPI.Events.ShowPanel, showPanel.bind(this)); |
| this._loadPanelDesciptors(); |
| /** |
| @@ -84,6 +85,16 @@ WebInspector.InspectorView = function() |
| this.showPanel("console"); |
|
pfeldman
2015/11/13 01:33:49
This would go then
|
| } |
| + /** |
| + * @this {WebInspector.InspectorView} |
| + * @param {!WebInspector.Event} event |
| + */ |
| + function showPanel(event) |
| + { |
| + var panelName = /** @type {string} */ (event.data); |
| + this.showPanel(panelName); |
| + } |
| + |
| WebInspector.targetManager.addEventListener(WebInspector.TargetManager.Events.SuspendStateChanged, this._onSuspendStateChanged.bind(this)); |
| }; |