| 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 1059 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1070 this._revealTimeRange(frame.startTime, frame.endTime); | 1070 this._revealTimeRange(frame.startTime, frame.endTime); |
| 1071 this.select(Timeline.TimelineSelection.fromFrame(frame)); | 1071 this.select(Timeline.TimelineSelection.fromFrame(frame)); |
| 1072 return true; | 1072 return true; |
| 1073 } | 1073 } |
| 1074 | 1074 |
| 1075 /** | 1075 /** |
| 1076 * @param {!SDK.PaintProfilerSnapshot} snapshot | 1076 * @param {!SDK.PaintProfilerSnapshot} snapshot |
| 1077 */ | 1077 */ |
| 1078 _showSnapshotInPaintProfiler(snapshot) { | 1078 _showSnapshotInPaintProfiler(snapshot) { |
| 1079 var paintProfilerView = this._paintProfilerView(); | 1079 var paintProfilerView = this._paintProfilerView(); |
| 1080 var hasProfileData = paintProfilerView.setSnapshot(snapshot); | 1080 paintProfilerView.setSnapshot(snapshot); |
| 1081 if (!this._detailsView.hasTab(Timeline.TimelinePanel.DetailsTab.PaintProfile
r)) { | 1081 if (!this._detailsView.hasTab(Timeline.TimelinePanel.DetailsTab.PaintProfile
r)) { |
| 1082 this._detailsView.appendTab( | 1082 this._detailsView.appendTab( |
| 1083 Timeline.TimelinePanel.DetailsTab.PaintProfiler, Common.UIString('Pain
t Profiler'), paintProfilerView, | 1083 Timeline.TimelinePanel.DetailsTab.PaintProfiler, Common.UIString('Pain
t Profiler'), paintProfilerView, |
| 1084 undefined, undefined, true); | 1084 undefined, undefined, true); |
| 1085 } | 1085 } |
| 1086 this._detailsView.selectTab(Timeline.TimelinePanel.DetailsTab.PaintProfiler,
true); | 1086 this._detailsView.selectTab(Timeline.TimelinePanel.DetailsTab.PaintProfiler,
true); |
| 1087 } | 1087 } |
| 1088 | 1088 |
| 1089 /** | 1089 /** |
| 1090 * @param {!SDK.TracingModel.Event} event | 1090 * @param {!SDK.TracingModel.Event} event |
| (...skipping 879 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1970 } | 1970 } |
| 1971 | 1971 |
| 1972 /** | 1972 /** |
| 1973 * @override | 1973 * @override |
| 1974 * @param {!SDK.Target} target | 1974 * @param {!SDK.Target} target |
| 1975 */ | 1975 */ |
| 1976 targetRemoved(target) { | 1976 targetRemoved(target) { |
| 1977 this._targets.remove(target, true); | 1977 this._targets.remove(target, true); |
| 1978 } | 1978 } |
| 1979 }; | 1979 }; |
| OLD | NEW |