@@ -52,8 +52,8 @@ export class TimelineOverviewPane extends Common.ObjectWrapper.eventMixin<EventT
52
52
private cursorEnabled = false ;
53
53
private cursorPosition = 0 ;
54
54
private lastWidth = 0 ;
55
- private windowStartTime = 0 ;
56
- private windowEndTime = Infinity ;
55
+ private windowStartTime = Trace . Types . Timing . Milli ( 0 ) ;
56
+ private windowEndTime = Trace . Types . Timing . Milli ( Infinity ) ;
57
57
private muteOnWindowChanged = false ;
58
58
#dimHighlightSVG: Element ;
59
59
@@ -239,8 +239,8 @@ export class TimelineOverviewPane extends Common.ObjectWrapper.eventMixin<EventT
239
239
}
240
240
241
241
reset ( ) : void {
242
- this . windowStartTime = 0 ;
243
- this . windowEndTime = Infinity ;
242
+ this . windowStartTime = Trace . Types . Timing . Milli ( 0 ) ;
243
+ this . windowEndTime = Trace . Types . Timing . Milli ( Infinity ) ;
244
244
this . overviewCalculator . reset ( ) ;
245
245
this . overviewGrid . reset ( ) ;
246
246
this . overviewGrid . setResizeEnabled ( false ) ;
@@ -274,10 +274,10 @@ export class TimelineOverviewPane extends Common.ObjectWrapper.eventMixin<EventT
274
274
return ;
275
275
}
276
276
277
- this . windowStartTime =
278
- event . data . rawStartValue === this . overviewCalculator . minimumBoundary ( ) ? 0 : event . data . rawStartValue ;
279
- this . windowEndTime =
280
- event . data . rawEndValue === this . overviewCalculator . maximumBoundary ( ) ? Infinity : event . data . rawEndValue ;
277
+ this . windowStartTime = Trace . Types . Timing . Milli (
278
+ event . data . rawStartValue === this . overviewCalculator . minimumBoundary ( ) ? 0 : event . data . rawStartValue ) ;
279
+ this . windowEndTime = Trace . Types . Timing . Milli (
280
+ event . data . rawEndValue === this . overviewCalculator . maximumBoundary ( ) ? Infinity : event . data . rawEndValue ) ;
281
281
282
282
const windowTimes = {
283
283
startTime : Trace . Types . Timing . Milli ( this . windowStartTime ) ,
@@ -287,7 +287,7 @@ export class TimelineOverviewPane extends Common.ObjectWrapper.eventMixin<EventT
287
287
this . dispatchEventToListeners ( Events . OVERVIEW_PANE_WINDOW_CHANGED , windowTimes ) ;
288
288
}
289
289
290
- setWindowTimes ( startTime : number , endTime : number ) : void {
290
+ setWindowTimes ( startTime : Trace . Types . Timing . Milli , endTime : Trace . Types . Timing . Milli ) : void {
291
291
if ( startTime === this . windowStartTime && endTime === this . windowEndTime ) {
292
292
return ;
293
293
}
0 commit comments