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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/security/SecurityPanel.js

Issue 2229443005: DevTools Security Panel: Use the new security indicators. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add source SVG. Created 4 years, 4 months 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 unified diff | Download patch
OLDNEW
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()
(...skipping 526 matching lines...) Expand 10 before | Expand all | Expand 10 after
537 537
538 // Info explanations should appear after all others. 538 // Info explanations should appear after all others.
539 this._securityExplanationsMain = this.contentElement.createChild("div", "sec urity-explanation-list"); 539 this._securityExplanationsMain = this.contentElement.createChild("div", "sec urity-explanation-list");
540 this._securityExplanationsExtra = this.contentElement.createChild("div", "se curity-explanation-list security-explanations-extra"); 540 this._securityExplanationsExtra = this.contentElement.createChild("div", "se curity-explanation-list security-explanations-extra");
541 541
542 // Fill the security summary section. 542 // Fill the security summary section.
543 this._summarySection.createChild("div", "security-summary-section-title").te xtContent = WebInspector.UIString("Security Overview"); 543 this._summarySection.createChild("div", "security-summary-section-title").te xtContent = WebInspector.UIString("Security Overview");
544 544
545 var lockSpectrum = this._summarySection.createChild("div", "lock-spectrum"); 545 var lockSpectrum = this._summarySection.createChild("div", "lock-spectrum");
546 lockSpectrum.createChild("div", "lock-icon lock-icon-secure").title = WebIns pector.UIString("Secure"); 546 lockSpectrum.createChild("div", "lock-icon lock-icon-secure").title = WebIns pector.UIString("Secure");
547 lockSpectrum.createChild("div", "security-summary-lock-spacer");
548 lockSpectrum.createChild("div", "lock-icon lock-icon-neutral").title = WebIn spector.UIString("Not Secure"); 547 lockSpectrum.createChild("div", "lock-icon lock-icon-neutral").title = WebIn spector.UIString("Not Secure");
549 lockSpectrum.createChild("div", "security-summary-lock-spacer");
550 lockSpectrum.createChild("div", "lock-icon lock-icon-insecure").title = WebI nspector.UIString("Insecure (Broken)"); 548 lockSpectrum.createChild("div", "lock-icon lock-icon-insecure").title = WebI nspector.UIString("Insecure (Broken)");
551 549
552 this._summarySection.createChild("div", "triangle-pointer-container").create Child("div", "triangle-pointer-wrapper").createChild("div", "triangle-pointer"); 550 this._summarySection.createChild("div", "triangle-pointer-container").create Child("div", "triangle-pointer-wrapper").createChild("div", "triangle-pointer");
553 551
554 this._summaryText = this._summarySection.createChild("div", "security-summar y-text"); 552 this._summaryText = this._summarySection.createChild("div", "security-summar y-text");
555 } 553 }
556 554
557 WebInspector.SecurityMainView.prototype = { 555 WebInspector.SecurityMainView.prototype = {
558 /** 556 /**
559 * @param {!Element} parent 557 * @param {!Element} parent
(...skipping 400 matching lines...) Expand 10 before | Expand all | Expand 10 after
960 row.createChild("div").textContent = key; 958 row.createChild("div").textContent = key;
961 959
962 var valueDiv = row.createChild("div"); 960 var valueDiv = row.createChild("div");
963 if (typeof value === "string") { 961 if (typeof value === "string") {
964 valueDiv.textContent = value; 962 valueDiv.textContent = value;
965 } else { 963 } else {
966 valueDiv.appendChild(value); 964 valueDiv.appendChild(value);
967 } 965 }
968 } 966 }
969 } 967 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698