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

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: Re-implement showConsole using showPanel. 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..bf8964a4677a14e9e3908d9552533b11cf848d59 100644
--- a/third_party/WebKit/Source/devtools/front_end/components/InspectorView.js
+++ b/third_party/WebKit/Source/devtools/front_end/components/InspectorView.js
@@ -73,15 +73,17 @@ WebInspector.InspectorView = function()
this._closeBracketIdentifiers = ["U+005D", "U+00DD"].keySet();
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();
/**
* @this {WebInspector.InspectorView}
+ * @param {!WebInspector.Event} event
*/
- function showConsole()
+ function showPanel(event)
{
- this.showPanel("console");
+ var panelName = /** @type {string} */ (event.data);
+ this.showPanel(panelName);
}
WebInspector.targetManager.addEventListener(WebInspector.TargetManager.Events.SuspendStateChanged, this._onSuspendStateChanged.bind(this));
« no previous file with comments | « chrome/browser/devtools/devtools_window.cc ('k') | third_party/WebKit/Source/devtools/front_end/devtools.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698