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/network/NetworkWaterfallColumn.js

Issue 2623743002: DevTools: extract modules (non-extensions) (Closed)
Patch Set: rebaseline Created 3 years, 11 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
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 Network.NetworkWaterfallColumn = class extends UI.VBox { 7 Network.NetworkWaterfallColumn = class extends UI.VBox {
8 /** 8 /**
9 * @param {number} rowHeight 9 * @param {number} rowHeight
10 * @param {!Network.NetworkTimeCalculator} calculator 10 * @param {!Network.NetworkTimeCalculator} calculator
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after
317 this._drawTimingBars(context, drawNode, rowOffset - this._scrollTop); 317 this._drawTimingBars(context, drawNode, rowOffset - this._scrollTop);
318 else 318 else
319 this._drawSimplifiedBars(context, drawNode, rowOffset - this._scrollTo p); 319 this._drawSimplifiedBars(context, drawNode, rowOffset - this._scrollTo p);
320 } 320 }
321 } 321 }
322 this._drawEventDividers(context); 322 this._drawEventDividers(context);
323 context.restore(); 323 context.restore();
324 324
325 const freeZoneAtLeft = 75; 325 const freeZoneAtLeft = 75;
326 const freeZoneAtRight = 18; 326 const freeZoneAtRight = 18;
327 UI.TimelineGrid.drawCanvasGrid(context, this._calculator, this._fontSize, th is._headerHeight, freeZoneAtLeft); 327 PerfUI.TimelineGrid.drawCanvasGrid(context, this._calculator, this._fontSize , this._headerHeight, freeZoneAtLeft);
328 context.clearRect(this._offsetWidth - freeZoneAtRight, 0, freeZoneAtRight, t his._headerHeight); 328 context.clearRect(this._offsetWidth - freeZoneAtRight, 0, freeZoneAtRight, t his._headerHeight);
329 this._didDrawForTest(); 329 this._didDrawForTest();
330 } 330 }
331 331
332 /** 332 /**
333 * @param {!CanvasRenderingContext2D} context 333 * @param {!CanvasRenderingContext2D} context
334 */ 334 */
335 _drawEventDividers(context) { 335 _drawEventDividers(context) {
336 context.save(); 336 context.save();
337 context.lineWidth = 1; 337 context.lineWidth = 1;
(...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after
641 font: 'hsl(8, 100%, 80%)', 641 font: 'hsl(8, 100%, 80%)',
642 media: 'hsl(90, 50%, 80%)', 642 media: 'hsl(90, 50%, 80%)',
643 image: 'hsl(90, 50%, 80%)', 643 image: 'hsl(90, 50%, 80%)',
644 script: 'hsl(31, 100%, 80%)', 644 script: 'hsl(31, 100%, 80%)',
645 stylesheet: 'hsl(272, 64%, 80%)', 645 stylesheet: 'hsl(272, 64%, 80%)',
646 texttrack: 'hsl(8, 100%, 80%)', 646 texttrack: 'hsl(8, 100%, 80%)',
647 websocket: 'hsl(0, 0%, 95%)', 647 websocket: 'hsl(0, 0%, 95%)',
648 xhr: 'hsl(53, 100%, 80%)', 648 xhr: 'hsl(53, 100%, 80%)',
649 other: 'hsl(0, 0%, 95%)' 649 other: 'hsl(0, 0%, 95%)'
650 }; 650 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698