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 543 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
554 this._overviewPane.setOverviewControl(this._overviewControl); | 554 this._overviewPane.setOverviewControl(this._overviewControl); |
555 this._updateSelectionDetails(); | 555 this._updateSelectionDetails(); |
556 }, | 556 }, |
557 | 557 |
558 /** | 558 /** |
559 * @param {boolean} userInitiated | 559 * @param {boolean} userInitiated |
560 */ | 560 */ |
561 _startRecording: function(userInitiated) | 561 _startRecording: function(userInitiated) |
562 { | 562 { |
563 this._userInitiatedRecording = userInitiated; | 563 this._userInitiatedRecording = userInitiated; |
564 this._model.startRecording(true); | 564 this._model.startRecording(); |
565 for (var mode in WebInspector.TimelinePanel.Mode) | 565 for (var mode in WebInspector.TimelinePanel.Mode) |
566 this._viewsForMode(mode).overviewView.timelineStarted(); | 566 this._viewsForMode(mode).overviewView.timelineStarted(); |
567 | 567 |
568 if (userInitiated) | 568 if (userInitiated) |
569 WebInspector.userMetrics.TimelineStarted.record(); | 569 WebInspector.userMetrics.TimelineStarted.record(); |
570 }, | 570 }, |
571 | 571 |
572 _stopRecording: function() | 572 _stopRecording: function() |
573 { | 573 { |
574 this._userInitiatedRecording = false; | 574 this._userInitiatedRecording = false; |
(...skipping 547 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1122 * @param {!WebInspector.TimelineModel.Record} record | 1122 * @param {!WebInspector.TimelineModel.Record} record |
1123 * @return {boolean} | 1123 * @return {boolean} |
1124 */ | 1124 */ |
1125 accept: function(record) | 1125 accept: function(record) |
1126 { | 1126 { |
1127 return !this._hiddenRecords[record.type]; | 1127 return !this._hiddenRecords[record.type]; |
1128 }, | 1128 }, |
1129 | 1129 |
1130 __proto__: WebInspector.TimelineModel.Filter.prototype | 1130 __proto__: WebInspector.TimelineModel.Filter.prototype |
1131 } | 1131 } |
OLD | NEW |