| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 /** | 5 /** |
| 6 * @constructor | 6 * @constructor |
| 7 * @extends {WebInspector.PanelWithSidebar} | 7 * @extends {WebInspector.PanelWithSidebar} |
| 8 * @implements {WebInspector.TargetManager.Observer} | 8 * @implements {WebInspector.TargetManager.Observer} |
| 9 */ | 9 */ |
| 10 WebInspector.SecurityPanel = function() | 10 WebInspector.SecurityPanel = function() |
| 11 { | 11 { |
| 12 WebInspector.PanelWithSidebar.call(this, "security"); | 12 WebInspector.PanelWithSidebar.call(this, "security"); |
| 13 | 13 |
| 14 this._mainView = new WebInspector.SecurityMainView(this); | 14 this._mainView = new WebInspector.SecurityMainView(this); |
| 15 | 15 |
| 16 this._sidebarMainViewElement = new WebInspector.SecurityPanelSidebarTreeElem
ent(WebInspector.UIString("Overview"), this._setVisibleView.bind(this, this._mai
nView), "security-main-view-sidebar-tree-item", "lock-icon"); | 16 this._sidebarMainViewElement = new WebInspector.SecurityPanelSidebarTreeElem
ent(WebInspector.UIString("Overview"), this._setVisibleView.bind(this, this._mai
nView), "security-main-view-sidebar-tree-item", "lock-icon"); |
| 17 this._sidebarTree = new WebInspector.SecurityPanelSidebarTree(this._sidebarM
ainViewElement, this.showOrigin.bind(this)); | 17 this._sidebarTree = new WebInspector.SecurityPanelSidebarTree(this._sidebarM
ainViewElement, this.showOrigin.bind(this)); |
| 18 this.panelSidebarElement().appendChild(this._sidebarTree.element); | 18 this.panelSidebarElement().appendChild(this._sidebarTree.element); |
| 19 this.setDefaultFocusedElement(this._sidebarTree.element); | 19 this.setDefaultFocusedElement(this._sidebarTree.contentElement); |
| 20 | 20 |
| 21 /** @type {!Map<!NetworkAgent.LoaderId, !WebInspector.NetworkRequest>} */ | 21 /** @type {!Map<!NetworkAgent.LoaderId, !WebInspector.NetworkRequest>} */ |
| 22 this._lastResponseReceivedForLoaderId = new Map(); | 22 this._lastResponseReceivedForLoaderId = new Map(); |
| 23 | 23 |
| 24 /** @type {!Map<!WebInspector.SecurityPanel.Origin, !WebInspector.SecurityPa
nel.OriginState>} */ | 24 /** @type {!Map<!WebInspector.SecurityPanel.Origin, !WebInspector.SecurityPa
nel.OriginState>} */ |
| 25 this._origins = new Map(); | 25 this._origins = new Map(); |
| 26 | 26 |
| 27 /** @type {!Map<!WebInspector.NetworkLogView.MixedContentFilterValues, numbe
r>} */ | 27 /** @type {!Map<!WebInspector.NetworkLogView.MixedContentFilterValues, numbe
r>} */ |
| 28 this._filterRequestCounts = new Map(); | 28 this._filterRequestCounts = new Map(); |
| 29 | 29 |
| (...skipping 906 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 936 row.createChild("div").textContent = key; | 936 row.createChild("div").textContent = key; |
| 937 | 937 |
| 938 var valueDiv = row.createChild("div"); | 938 var valueDiv = row.createChild("div"); |
| 939 if (typeof value === "string") { | 939 if (typeof value === "string") { |
| 940 valueDiv.textContent = value; | 940 valueDiv.textContent = value; |
| 941 } else { | 941 } else { |
| 942 valueDiv.appendChild(value); | 942 valueDiv.appendChild(value); |
| 943 } | 943 } |
| 944 } | 944 } |
| 945 } | 945 } |
| OLD | NEW |