OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 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 1726 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1737 onChunkTransferred: function(reader) | 1737 onChunkTransferred: function(reader) |
1738 { | 1738 { |
1739 }, | 1739 }, |
1740 | 1740 |
1741 onTransferFinished: function() | 1741 onTransferFinished: function() |
1742 { | 1742 { |
1743 }, | 1743 }, |
1744 | 1744 |
1745 /** | 1745 /** |
1746 * @param {!WebInspector.ChunkedReader} reader | 1746 * @param {!WebInspector.ChunkedReader} reader |
| 1747 * @param {?Event} e |
1747 */ | 1748 */ |
1748 onError: function (reader, e) | 1749 onError: function (reader, e) |
1749 { | 1750 { |
1750 var subtitle; | 1751 var subtitle; |
1751 switch(e.target.error.code) { | 1752 switch(e.target.error.code) { |
1752 case e.target.error.NOT_FOUND_ERR: | 1753 case e.target.error.NOT_FOUND_ERR: |
1753 subtitle = WebInspector.UIString("'%s' not found.", reader.fileName(
)); | 1754 subtitle = WebInspector.UIString("'%s' not found.", reader.fileName(
)); |
1754 break; | 1755 break; |
1755 case e.target.error.NOT_READABLE_ERR: | 1756 case e.target.error.NOT_READABLE_ERR: |
1756 subtitle = WebInspector.UIString("'%s' is not readable", reader.file
Name()); | 1757 subtitle = WebInspector.UIString("'%s' is not readable", reader.file
Name()); |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1788 /** | 1789 /** |
1789 * @param {!WebInspector.ChunkedReader} reader | 1790 * @param {!WebInspector.ChunkedReader} reader |
1790 */ | 1791 */ |
1791 onChunkTransferred: function(reader) | 1792 onChunkTransferred: function(reader) |
1792 { | 1793 { |
1793 this._profileHeader._updateSaveProgress(reader.loadedSize(), reader.file
Size()); | 1794 this._profileHeader._updateSaveProgress(reader.loadedSize(), reader.file
Size()); |
1794 }, | 1795 }, |
1795 | 1796 |
1796 /** | 1797 /** |
1797 * @param {!WebInspector.ChunkedReader} reader | 1798 * @param {!WebInspector.ChunkedReader} reader |
| 1799 * @param {?Event} event |
1798 */ | 1800 */ |
1799 onError: function(reader, event) | 1801 onError: function(reader, event) |
1800 { | 1802 { |
1801 WebInspector.messageSink.addErrorMessage("Failed to read heap snapshot f
rom temp file: " + event.message); | 1803 WebInspector.messageSink.addErrorMessage("Failed to read heap snapshot f
rom temp file: " + /** @type {!ErrorEvent} */ (event).message); |
1802 this.onTransferFinished(); | 1804 this.onTransferFinished(); |
1803 } | 1805 } |
1804 } | 1806 } |
1805 | 1807 |
1806 /** | 1808 /** |
1807 * @constructor | 1809 * @constructor |
1808 * @extends {WebInspector.VBox} | 1810 * @extends {WebInspector.VBox} |
1809 * @param {!WebInspector.HeapProfileHeader} heapProfileHeader | 1811 * @param {!WebInspector.HeapProfileHeader} heapProfileHeader |
1810 */ | 1812 */ |
1811 WebInspector.HeapTrackingOverviewGrid = function(heapProfileHeader) | 1813 WebInspector.HeapTrackingOverviewGrid = function(heapProfileHeader) |
(...skipping 456 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2268 urlElement = this._linkifier.linkifyRawLocation(rawLocation)
; | 2270 urlElement = this._linkifier.linkifyRawLocation(rawLocation)
; |
2269 if (!urlElement) | 2271 if (!urlElement) |
2270 urlElement = this._linkifier.linkifyLocation(this._target, f
rame.scriptName, frame.line - 1, frame.column - 1); | 2272 urlElement = this._linkifier.linkifyLocation(this._target, f
rame.scriptName, frame.line - 1, frame.column - 1); |
2271 frameDiv.appendChild(urlElement); | 2273 frameDiv.appendChild(urlElement); |
2272 } | 2274 } |
2273 } | 2275 } |
2274 }, | 2276 }, |
2275 | 2277 |
2276 __proto__: WebInspector.View.prototype | 2278 __proto__: WebInspector.View.prototype |
2277 } | 2279 } |
OLD | NEW |