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

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

Issue 2466123002: DevTools: reformat front-end code to match chromium style. (Closed)
Patch Set: Created 4 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 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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 */ 95 */
96 showOrigin: function(origin) 96 showOrigin: function(origin)
97 { 97 {
98 var originState = this._origins.get(origin); 98 var originState = this._origins.get(origin);
99 if (!originState.originView) 99 if (!originState.originView)
100 originState.originView = new WebInspector.SecurityOriginView(this, o rigin, originState); 100 originState.originView = new WebInspector.SecurityOriginView(this, o rigin, originState);
101 101
102 this._setVisibleView(originState.originView); 102 this._setVisibleView(originState.originView);
103 }, 103 },
104 104
105 /**
106 * @override
107 */
105 wasShown: function() 108 wasShown: function()
106 { 109 {
107 WebInspector.Panel.prototype.wasShown.call(this); 110 WebInspector.PanelWithSidebar.prototype.wasShown.call(this);
108 if (!this._visibleView) 111 if (!this._visibleView)
109 this.selectAndSwitchToMainView(); 112 this.selectAndSwitchToMainView();
110 }, 113 },
111 114
112 /** 115 /**
113 * @override 116 * @override
114 */ 117 */
115 focus: function() 118 focus: function()
116 { 119 {
117 this._sidebarTree.focus(); 120 this._sidebarTree.focus();
(...skipping 955 matching lines...) Expand 10 before | Expand all | Expand 10 after
1073 row.createChild("div").textContent = key; 1076 row.createChild("div").textContent = key;
1074 1077
1075 var valueDiv = row.createChild("div"); 1078 var valueDiv = row.createChild("div");
1076 if (typeof value === "string") { 1079 if (typeof value === "string") {
1077 valueDiv.textContent = value; 1080 valueDiv.textContent = value;
1078 } else { 1081 } else {
1079 valueDiv.appendChild(value); 1082 valueDiv.appendChild(value);
1080 } 1083 }
1081 } 1084 }
1082 }; 1085 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698