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

Unified Diff: third_party/WebKit/Source/devtools/front_end/components/InspectorView.js

Issue 1433953002: Implement a ShowSecurityPanel() call in the browser. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Implement a general showPanel command. Created 5 years, 1 month 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 side-by-side diff with in-line comments
Download patch
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));
};

Powered by Google App Engine
This is Rietveld 408576698