OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 * @implements {WebInspector.Searchable} | 7 * @implements {WebInspector.Searchable} |
8 * @extends {WebInspector.VBox} | 8 * @extends {WebInspector.VBox} |
9 * @param {!WebInspector.ProfileDataGridNode.Formatter} nodeFormatter | 9 * @param {!WebInspector.ProfileDataGridNode.Formatter} nodeFormatter |
10 * @param {!Array<string>=} viewTypes | 10 * @param {!Array<string>=} viewTypes |
(...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
399 }, | 399 }, |
400 | 400 |
401 /** | 401 /** |
402 * @override | 402 * @override |
403 * @param {!WebInspector.ChunkedReader} reader | 403 * @param {!WebInspector.ChunkedReader} reader |
404 * @param {!Event} e | 404 * @param {!Event} e |
405 */ | 405 */ |
406 onError: function(reader, e) | 406 onError: function(reader, e) |
407 { | 407 { |
408 var subtitle; | 408 var subtitle; |
409 switch(e.target.error.code) { | 409 switch (e.target.error.code) { |
410 case e.target.error.NOT_FOUND_ERR: | 410 case e.target.error.NOT_FOUND_ERR: |
411 subtitle = WebInspector.UIString("'%s' not found.", reader.fileName(
)); | 411 subtitle = WebInspector.UIString("'%s' not found.", reader.fileName(
)); |
412 break; | 412 break; |
413 case e.target.error.NOT_READABLE_ERR: | 413 case e.target.error.NOT_READABLE_ERR: |
414 subtitle = WebInspector.UIString("'%s' is not readable", reader.file
Name()); | 414 subtitle = WebInspector.UIString("'%s' is not readable", reader.file
Name()); |
415 break; | 415 break; |
416 case e.target.error.ABORT_ERR: | 416 case e.target.error.ABORT_ERR: |
417 return; | 417 return; |
418 default: | 418 default: |
419 subtitle = WebInspector.UIString("'%s' error %d", reader.fileName(),
e.target.error.code); | 419 subtitle = WebInspector.UIString("'%s' error %d", reader.fileName(),
e.target.error.code); |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
563 _notifyTempFileReady: function() | 563 _notifyTempFileReady: function() |
564 { | 564 { |
565 if (this._onTempFileReady) { | 565 if (this._onTempFileReady) { |
566 this._onTempFileReady(); | 566 this._onTempFileReady(); |
567 this._onTempFileReady = null; | 567 this._onTempFileReady = null; |
568 } | 568 } |
569 }, | 569 }, |
570 | 570 |
571 __proto__: WebInspector.ProfileHeader.prototype | 571 __proto__: WebInspector.ProfileHeader.prototype |
572 } | 572 } |
OLD | NEW |