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

Side by Side Diff: Source/devtools/front_end/network/NetworkPanel.js

Issue 1294003003: Merge 200568 "DevTools: do not use arrow functions unless they a..." (Closed) Base URL: svn://svn.chromium.org/blink/branches/chromium/2454/
Patch Set: Created 5 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 | « no previous file | 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) 2007, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved.
3 * Copyright (C) 2008, 2009 Anthony Ricaud <rik@webkit.org> 3 * Copyright (C) 2008, 2009 Anthony Ricaud <rik@webkit.org>
4 * Copyright (C) 2011 Google Inc. All rights reserved. 4 * Copyright (C) 2011 Google Inc. All rights reserved.
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 9 *
10 * 1. Redistributions of source code must retain the above copyright 10 * 1. Redistributions of source code must retain the above copyright
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 /** 199 /**
200 * @param {?WebInspector.FilmStripModel} filmStripModel 200 * @param {?WebInspector.FilmStripModel} filmStripModel
201 */ 201 */
202 _filmStripAvailable: function(filmStripModel) 202 _filmStripAvailable: function(filmStripModel)
203 { 203 {
204 if (!filmStripModel) 204 if (!filmStripModel)
205 return; 205 return;
206 var calculator = this._networkLogView.timeCalculator(); 206 var calculator = this._networkLogView.timeCalculator();
207 this._filmStripView.setModel(filmStripModel, calculator.minimumBoundary( ) * 1000, calculator.boundarySpan() * 1000); 207 this._filmStripView.setModel(filmStripModel, calculator.minimumBoundary( ) * 1000, calculator.boundarySpan() * 1000);
208 this._networkOverview.setFilmStripModel(filmStripModel); 208 this._networkOverview.setFilmStripModel(filmStripModel);
209 var timestamps = filmStripModel.frames().map((frame) => frame.timestamp / 1000); 209 var timestamps = filmStripModel.frames().map(mapTimestamp);
210
211 /**
212 * @param {!WebInspector.FilmStripModel.Frame} frame
213 * @return {number}
214 */
215 function mapTimestamp(frame)
216 {
217 return frame.timestamp / 1000;
218 }
219
210 this._networkLogView.addFilmStripFrames(timestamps); 220 this._networkLogView.addFilmStripFrames(timestamps);
211 }, 221 },
212 222
213 /** 223 /**
214 * @param {!Event} event 224 * @param {!Event} event
215 */ 225 */
216 _onPreserveLogCheckboxChanged: function(event) 226 _onPreserveLogCheckboxChanged: function(event)
217 { 227 {
218 this._networkLogView.setPreserveLog(this._preserveLogCheckbox.checked()) ; 228 this._networkLogView.setPreserveLog(this._preserveLogCheckbox.checked()) ;
219 }, 229 },
(...skipping 520 matching lines...) Expand 10 before | Expand all | Expand 10 after
740 { 750 {
741 if (!this._target) 751 if (!this._target)
742 return; 752 return;
743 753
744 this._target.tracingManager.stop(); 754 this._target.tracingManager.stop();
745 this._target = null; 755 this._target = null;
746 this._callback = callback; 756 this._callback = callback;
747 this._filmStripView.setStatusText(WebInspector.UIString("Fetching frames ...")); 757 this._filmStripView.setStatusText(WebInspector.UIString("Fetching frames ..."));
748 } 758 }
749 } 759 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698