| OLD | NEW |
| 1 /** | 1 /** |
| 2 * Copyright (C) 2014 Google Inc. All rights reserved. | 2 * Copyright (C) 2014 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 * * Redistributions of source code must retain the above copyright | 8 * * 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 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 207 if (ms === 0) | 207 if (ms === 0) |
| 208 return "0"; | 208 return "0"; |
| 209 if (ms < 1000) | 209 if (ms < 1000) |
| 210 return WebInspector.UIString("%.1f\u2009ms", ms); | 210 return WebInspector.UIString("%.1f\u2009ms", ms); |
| 211 return Number.secondsToString(ms / 1000, true); | 211 return Number.secondsToString(ms / 1000, true); |
| 212 }, | 212 }, |
| 213 | 213 |
| 214 /** | 214 /** |
| 215 * @override | 215 * @override |
| 216 * @param {number} entryIndex | 216 * @param {number} entryIndex |
| 217 * @return {?Array<!{title: string, value: (string,!Element)}>} | 217 * @return {?Array<!{title: string, value: (string|!Element)}>} |
| 218 */ | 218 */ |
| 219 prepareHighlightedEntryInfo: function(entryIndex) | 219 prepareHighlightedEntryInfo: function(entryIndex) |
| 220 { | 220 { |
| 221 var timelineData = this._timelineData; | 221 var timelineData = this._timelineData; |
| 222 var node = this._entryNodes[entryIndex]; | 222 var node = this._entryNodes[entryIndex]; |
| 223 if (!node) | 223 if (!node) |
| 224 return null; | 224 return null; |
| 225 | 225 |
| 226 var entryInfo = []; | 226 var entryInfo = []; |
| 227 /** | 227 /** |
| (...skipping 536 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 764 { | 764 { |
| 765 var ratio = window.devicePixelRatio; | 765 var ratio = window.devicePixelRatio; |
| 766 this._overviewCanvas.width = width * ratio; | 766 this._overviewCanvas.width = width * ratio; |
| 767 this._overviewCanvas.height = height * ratio; | 767 this._overviewCanvas.height = height * ratio; |
| 768 this._overviewCanvas.style.width = width + "px"; | 768 this._overviewCanvas.style.width = width + "px"; |
| 769 this._overviewCanvas.style.height = height + "px"; | 769 this._overviewCanvas.style.height = height + "px"; |
| 770 }, | 770 }, |
| 771 | 771 |
| 772 __proto__: WebInspector.VBox.prototype | 772 __proto__: WebInspector.VBox.prototype |
| 773 } | 773 } |
| OLD | NEW |