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

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: Make sure the DevTools stays open if ShowSecurityPanel() is called when DevTools is already open. 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..415ad6a8d7c91f7d22bb1749901ca295d562142b 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.ShowSecurityPanel, showSecurityPanel.bind(this));
this._loadPanelDesciptors();
/**
@@ -84,6 +85,14 @@ WebInspector.InspectorView = function()
this.showPanel("console");
}
+ /**
+ * @this {WebInspector.InspectorView}
+ */
+ function showSecurityPanel()
+ {
+ this.showPanel("security");
+ }
+
WebInspector.targetManager.addEventListener(WebInspector.TargetManager.Events.SuspendStateChanged, this._onSuspendStateChanged.bind(this));
};

Powered by Google App Engine
This is Rietveld 408576698