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

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

Issue 467523002: Update Timeline overview pane when recording is stopped in Frame mode (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 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 | « Source/devtools/front_end/timeline/TimelineOverviewPane.js ('k') | no next file » | 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) 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 806 matching lines...) Expand 10 before | Expand all | Expand 10 after
817 this._progressElement.remove(); 817 this._progressElement.remove();
818 delete this._progressElement; 818 delete this._progressElement;
819 }, 819 },
820 820
821 _onRecordingStopped: function() 821 _onRecordingStopped: function()
822 { 822 {
823 this._stopPending = false; 823 this._stopPending = false;
824 this._updateToggleTimelineButton(false); 824 this._updateToggleTimelineButton(false);
825 if (this._lazyFrameModel) { 825 if (this._lazyFrameModel) {
826 this._lazyFrameModel.reset(); 826 this._lazyFrameModel.reset();
827 if (this._tracingTimelineModel) { 827 if (this._tracingTimelineModel)
828 this._lazyFrameModel.addTraceEvents(this._tracingTimelineModel.i nspectedTargetEvents(), this._tracingModel.sessionId()); 828 this._lazyFrameModel.addTraceEvents(this._tracingTimelineModel.i nspectedTargetEvents(), this._tracingModel.sessionId());
829 this._overviewPane.update(); 829 else
830 } else {
831 this._lazyFrameModel.addRecords(this._model.records()); 830 this._lazyFrameModel.addRecords(this._model.records());
832 }
833 } 831 }
834 if (this._tracingTimelineModel) { 832 if (this._tracingTimelineModel) {
835 this.requestWindowTimes(this._tracingTimelineModel.minimumRecordTime (), this._tracingTimelineModel.maximumRecordTime()); 833 this.requestWindowTimes(this._tracingTimelineModel.minimumRecordTime (), this._tracingTimelineModel.maximumRecordTime());
836 this._refreshViews(); 834 this._refreshViews();
837 } 835 }
838 this._hideProgressPane(); 836 this._hideProgressPane();
837 this._overviewPane.update();
839 }, 838 },
840 839
841 _onRecordAdded: function(event) 840 _onRecordAdded: function(event)
842 { 841 {
843 this._addRecord(/** @type {!WebInspector.TimelineModel.Record} */(event. data)); 842 this._addRecord(/** @type {!WebInspector.TimelineModel.Record} */(event. data));
844 }, 843 },
845 844
846 /** 845 /**
847 * @param {!WebInspector.TimelineModel.Record} record 846 * @param {!WebInspector.TimelineModel.Record} record
848 */ 847 */
(...skipping 595 matching lines...) Expand 10 before | Expand all | Expand 10 after
1444 * @param {!WebInspector.TimelineModel.Record} record 1443 * @param {!WebInspector.TimelineModel.Record} record
1445 * @return {boolean} 1444 * @return {boolean}
1446 */ 1445 */
1447 accept: function(record) 1446 accept: function(record)
1448 { 1447 {
1449 return !this._regex || this._uiUtils.testContentMatching(record, this._r egex); 1448 return !this._regex || this._uiUtils.testContentMatching(record, this._r egex);
1450 }, 1449 },
1451 1450
1452 __proto__: WebInspector.TimelineModel.Filter.prototype 1451 __proto__: WebInspector.TimelineModel.Filter.prototype
1453 } 1452 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/timeline/TimelineOverviewPane.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698