Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(174)

Side by Side Diff: Source/devtools/front_end/timeline/TimelinePresentationModel.js

Issue 354763005: DevTools: timeline doesn't show records in TimelineView the first view was TimelineFlameChart view. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: comments addressed Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/devtools/front_end/timeline/TimelineView.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « no previous file | Source/devtools/front_end/timeline/TimelineView.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698