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

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

Issue 2560043005: DevTools: Remove unused variables. Disallow unused variables with eslint (Closed)
Patch Set: A new unused variable was born Created 4 years 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
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 1059 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698