OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
3 * Copyright (C) 2012 Intel Inc. All rights reserved. | 3 * Copyright (C) 2012 Intel Inc. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
7 * met: | 7 * met: |
8 * | 8 * |
9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 901 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
912 } | 912 } |
913 | 913 |
914 for (var i = 0; i < this._currentViews.length; ++i) { | 914 for (var i = 0; i < this._currentViews.length; ++i) { |
915 var view = this._currentViews[i]; | 915 var view = this._currentViews[i]; |
916 view.setSelectedRecord(record); | 916 view.setSelectedRecord(record); |
917 } | 917 } |
918 if (!record) { | 918 if (!record) { |
919 this._updateSelectionDetails(); | 919 this._updateSelectionDetails(); |
920 return; | 920 return; |
921 } | 921 } |
922 WebInspector.TimelineUIUtils.generatePopupContent(record, this._detailsL
inkifier, showCallback.bind(this)); | 922 WebInspector.TimelineUIUtils.generatePopupContent(record, this._detailsL
inkifier, showCallback.bind(this), this._model.loadedFromFile()); |
923 | 923 |
924 /** | 924 /** |
925 * @param {!DocumentFragment} element | 925 * @param {!DocumentFragment} element |
926 * @this {WebInspector.TimelinePanel} | 926 * @this {WebInspector.TimelinePanel} |
927 */ | 927 */ |
928 function showCallback(element) | 928 function showCallback(element) |
929 { | 929 { |
930 this._detailsView.setContent(record.title(), element); | 930 this._detailsView.setContent(record.title(), element); |
931 } | 931 } |
932 }, | 932 }, |
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1185 * @param {!WebInspector.TimelineModel.Record} record | 1185 * @param {!WebInspector.TimelineModel.Record} record |
1186 * @return {boolean} | 1186 * @return {boolean} |
1187 */ | 1187 */ |
1188 accept: function(record) | 1188 accept: function(record) |
1189 { | 1189 { |
1190 return !this._hiddenRecords[record.type]; | 1190 return !this._hiddenRecords[record.type]; |
1191 }, | 1191 }, |
1192 | 1192 |
1193 __proto__: WebInspector.TimelineModel.Filter.prototype | 1193 __proto__: WebInspector.TimelineModel.Filter.prototype |
1194 } | 1194 } |
OLD | NEW |