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

Side by Side Diff: Source/devtools/front_end/sources/UISourceCodeFrame.js

Issue 659573005: DevTools: NetworkPanel: show link where resource timing is explained. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 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 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 10 *
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 */ 216 */
217 WebInspector.UISourceCodeFrame.Infobar = function(level, message) 217 WebInspector.UISourceCodeFrame.Infobar = function(level, message)
218 { 218 {
219 this.element = createElementWithClass("div", "source-frame-infobar source-fr ame-infobar-" + level); 219 this.element = createElementWithClass("div", "source-frame-infobar source-fr ame-infobar-" + level);
220 this._mainRow = this.element.createChild("div", "source-frame-infobar-main-r ow"); 220 this._mainRow = this.element.createChild("div", "source-frame-infobar-main-r ow");
221 this._detailsContainer = this.element.createChild("span", "source-frame-info bar-details-container"); 221 this._detailsContainer = this.element.createChild("span", "source-frame-info bar-details-container");
222 222
223 this._mainRow.createChild("span", "source-frame-infobar-icon"); 223 this._mainRow.createChild("span", "source-frame-infobar-icon");
224 this._mainRow.createChild("span", "source-frame-infobar-row-message").textCo ntent = message; 224 this._mainRow.createChild("span", "source-frame-infobar-row-message").textCo ntent = message;
225 225
226 this._toggleElement = this._mainRow.createChild("div", "source-frame-infobar -toggle source-frame-infobar-link"); 226 this._toggleElement = this._mainRow.createChild("div", "source-frame-infobar -toggle link");
227 this._toggleElement.addEventListener("click", this._onToggleDetails.bind(thi s), false); 227 this._toggleElement.addEventListener("click", this._onToggleDetails.bind(thi s), false);
228 228
229 this._closeElement = this._mainRow.createChild("div", "close-button"); 229 this._closeElement = this._mainRow.createChild("div", "close-button");
230 this._closeElement.addEventListener("click", this._onClose.bind(this), false ); 230 this._closeElement.addEventListener("click", this._onClose.bind(this), false );
231 231
232 this._updateToggleElement(); 232 this._updateToggleElement();
233 } 233 }
234 234
235 /** 235 /**
236 * @enum {string} 236 * @enum {string}
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 return detailsRowMessage; 286 return detailsRowMessage;
287 }, 287 },
288 288
289 dispose: function() 289 dispose: function()
290 { 290 {
291 this.element.remove(); 291 this.element.remove();
292 this._onResize(); 292 this._onResize();
293 delete this._uiSourceCodeFrame; 293 delete this._uiSourceCodeFrame;
294 } 294 }
295 } 295 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/sources/JavaScriptSourceFrame.js ('k') | Source/devtools/front_end/sources/WorkspaceMappingTip.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698