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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/network/NetworkTimelineColumn.js

Issue 2472063003: [Devtools] Adjusted font size for new network timeline (Closed)
Patch Set: Created 4 years, 1 month 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/devtools/front_end/ui_lazy/TimelineGrid.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 /** 4 /**
5 * @unrestricted 5 * @unrestricted
6 */ 6 */
7 WebInspector.NetworkTimelineColumn = class extends WebInspector.VBox { 7 WebInspector.NetworkTimelineColumn = class extends WebInspector.VBox {
8 /** 8 /**
9 * @param {number} rowHeight 9 * @param {number} rowHeight
10 * @param {!WebInspector.NetworkTimeCalculator} calculator 10 * @param {!WebInspector.NetworkTimeCalculator} calculator
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 var request = requests[i]; 284 var request = requests[i];
285 this._decorateRow(context, request, i, rowOffset - this._scrollTop); 285 this._decorateRow(context, request, i, rowOffset - this._scrollTop);
286 if (useTimingBars) 286 if (useTimingBars)
287 this._drawTimingBars(context, request, rowOffset - this._scrollTop); 287 this._drawTimingBars(context, request, rowOffset - this._scrollTop);
288 else 288 else
289 this._drawSimplifiedBars(context, request, rowOffset - this._scrollTop); 289 this._drawSimplifiedBars(context, request, rowOffset - this._scrollTop);
290 } 290 }
291 this._drawEventDividers(context); 291 this._drawEventDividers(context);
292 context.restore(); 292 context.restore();
293 293
294 const paddingTop = 14;
294 const freeZoneAtLeft = 75; 295 const freeZoneAtLeft = 75;
295 WebInspector.TimelineGrid.drawCanvasGrid(context, this._calculator, this._fo ntSize, freeZoneAtLeft); 296 const freeZoneAtRight = 15;
297 const fontSize = '80%';
298 WebInspector.TimelineGrid.drawCanvasGrid(context, this._calculator, paddingT op, freeZoneAtLeft, freeZoneAtRight, fontSize);
296 } 299 }
297 300
298 /** 301 /**
299 * @param {!CanvasRenderingContext2D} context 302 * @param {!CanvasRenderingContext2D} context
300 */ 303 */
301 _drawEventDividers(context) { 304 _drawEventDividers(context) {
302 context.save(); 305 context.save();
303 context.lineWidth = 1; 306 context.lineWidth = 1;
304 for (var color of this._eventDividers.keys()) { 307 for (var color of this._eventDividers.keys()) {
305 context.strokeStyle = color; 308 context.strokeStyle = color;
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
566 font: 'hsl(8, 100%, 80%)', 569 font: 'hsl(8, 100%, 80%)',
567 media: 'hsl(272, 64%, 80%)', 570 media: 'hsl(272, 64%, 80%)',
568 image: 'hsl(272, 64%, 80%)', 571 image: 'hsl(272, 64%, 80%)',
569 script: 'hsl(31, 100%, 80%)', 572 script: 'hsl(31, 100%, 80%)',
570 stylesheet: 'hsl(90, 50%, 80%)', 573 stylesheet: 'hsl(90, 50%, 80%)',
571 texttrack: 'hsl(8, 100%, 80%)', 574 texttrack: 'hsl(8, 100%, 80%)',
572 websocket: 'hsl(0, 0%, 95%)', 575 websocket: 'hsl(0, 0%, 95%)',
573 xhr: 'hsl(53, 100%, 80%)', 576 xhr: 'hsl(53, 100%, 80%)',
574 other: 'hsl(0, 0%, 95%)' 577 other: 'hsl(0, 0%, 95%)'
575 }; 578 };
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/devtools/front_end/ui_lazy/TimelineGrid.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698