OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2008 Apple 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 | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 696 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
707 this._profile = JSON.parse(this._jsonifiedProfile); | 707 this._profile = JSON.parse(this._jsonifiedProfile); |
708 this._jsonifiedProfile = null; | 708 this._jsonifiedProfile = null; |
709 this.updateStatus(WebInspector.UIString("Loaded"), false); | 709 this.updateStatus(WebInspector.UIString("Loaded"), false); |
710 | 710 |
711 if (this._profileType.profileBeingRecorded() === this) | 711 if (this._profileType.profileBeingRecorded() === this) |
712 this._profileType.setProfileBeingRecorded(null); | 712 this._profileType.setProfileBeingRecorded(null); |
713 }, | 713 }, |
714 | 714 |
715 /** | 715 /** |
716 * @param {!WebInspector.ChunkedReader} reader | 716 * @param {!WebInspector.ChunkedReader} reader |
| 717 * @param {?Event} e |
717 */ | 718 */ |
718 onError: function(reader, e) | 719 onError: function(reader, e) |
719 { | 720 { |
720 var subtitle; | 721 var subtitle; |
721 switch(e.target.error.code) { | 722 switch(e.target.error.code) { |
722 case e.target.error.NOT_FOUND_ERR: | 723 case e.target.error.NOT_FOUND_ERR: |
723 subtitle = WebInspector.UIString("'%s' not found.", reader.fileName(
)); | 724 subtitle = WebInspector.UIString("'%s' not found.", reader.fileName(
)); |
724 break; | 725 break; |
725 case e.target.error.NOT_READABLE_ERR: | 726 case e.target.error.NOT_READABLE_ERR: |
726 subtitle = WebInspector.UIString("'%s' is not readable", reader.file
Name()); | 727 subtitle = WebInspector.UIString("'%s' is not readable", reader.file
Name()); |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
887 _notifyTempFileReady: function() | 888 _notifyTempFileReady: function() |
888 { | 889 { |
889 if (this._onTempFileReady) { | 890 if (this._onTempFileReady) { |
890 this._onTempFileReady(); | 891 this._onTempFileReady(); |
891 this._onTempFileReady = null; | 892 this._onTempFileReady = null; |
892 } | 893 } |
893 }, | 894 }, |
894 | 895 |
895 __proto__: WebInspector.ProfileHeader.prototype | 896 __proto__: WebInspector.ProfileHeader.prototype |
896 } | 897 } |
OLD | NEW |