| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 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 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 192 * @param {?RegExp} textFilter | 192 * @param {?RegExp} textFilter |
| 193 */ | 193 */ |
| 194 setTextFilter: function(textFilter) | 194 setTextFilter: function(textFilter) |
| 195 { | 195 { |
| 196 var records = this._recordToPresentationRecord.values(); | 196 var records = this._recordToPresentationRecord.values(); |
| 197 for (var i = 0; i < records.length; ++i) | 197 for (var i = 0; i < records.length; ++i) |
| 198 records[i]._expandedOrCollapsedWhileFiltered = false; | 198 records[i]._expandedOrCollapsedWhileFiltered = false; |
| 199 this._textFilter = textFilter; | 199 this._textFilter = textFilter; |
| 200 }, | 200 }, |
| 201 | 201 |
| 202 refreshRecords: function() |
| 203 { |
| 204 this.reset(); |
| 205 var modelRecords = this._model.records(); |
| 206 for (var i = 0; i < modelRecords.length; ++i) |
| 207 this.addRecord(modelRecords[i]); |
| 208 }, |
| 209 |
| 202 invalidateFilteredRecords: function() | 210 invalidateFilteredRecords: function() |
| 203 { | 211 { |
| 204 delete this._filteredRecords; | 212 delete this._filteredRecords; |
| 205 }, | 213 }, |
| 206 | 214 |
| 207 /** | 215 /** |
| 208 * @return {!Array.<!WebInspector.TimelinePresentationModel.Record>} | 216 * @return {!Array.<!WebInspector.TimelinePresentationModel.Record>} |
| 209 */ | 217 */ |
| 210 filteredRecords: function() | 218 filteredRecords: function() |
| 211 { | 219 { |
| (...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 565 /** | 573 /** |
| 566 * @return {boolean} | 574 * @return {boolean} |
| 567 */ | 575 */ |
| 568 hasWarnings: function() | 576 hasWarnings: function() |
| 569 { | 577 { |
| 570 return false; | 578 return false; |
| 571 }, | 579 }, |
| 572 | 580 |
| 573 __proto__: WebInspector.TimelinePresentationModel.Record.prototype | 581 __proto__: WebInspector.TimelinePresentationModel.Record.prototype |
| 574 } | 582 } |
| OLD | NEW |