OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
348 WebInspector.TimelineOverviewBase.prototype = { | 348 WebInspector.TimelineOverviewBase.prototype = { |
349 update: function() | 349 update: function() |
350 { | 350 { |
351 this.resetCanvas(); | 351 this.resetCanvas(); |
352 }, | 352 }, |
353 | 353 |
354 reset: function() | 354 reset: function() |
355 { | 355 { |
356 }, | 356 }, |
357 | 357 |
| 358 timelineStarted: function() { }, |
| 359 timelineStopped: function() { }, |
| 360 |
358 /** | 361 /** |
359 * @param {number} windowLeft | 362 * @param {number} windowLeft |
360 * @param {number} windowRight | 363 * @param {number} windowRight |
361 * @return {!{startTime: number, endTime: number}} | 364 * @return {!{startTime: number, endTime: number}} |
362 */ | 365 */ |
363 windowTimes: function(windowLeft, windowRight) | 366 windowTimes: function(windowLeft, windowRight) |
364 { | 367 { |
365 var absoluteMin = this._model.minimumRecordTime(); | 368 var absoluteMin = this._model.minimumRecordTime(); |
366 var timeSpan = this._model.maximumRecordTime() - absoluteMin; | 369 var timeSpan = this._model.maximumRecordTime() - absoluteMin; |
367 return { | 370 return { |
(...skipping 19 matching lines...) Expand all Loading... |
387 }, | 390 }, |
388 | 391 |
389 resetCanvas: function() | 392 resetCanvas: function() |
390 { | 393 { |
391 this._canvas.width = this.element.clientWidth * window.devicePixelRatio; | 394 this._canvas.width = this.element.clientWidth * window.devicePixelRatio; |
392 this._canvas.height = this.element.clientHeight * window.devicePixelRati
o; | 395 this._canvas.height = this.element.clientHeight * window.devicePixelRati
o; |
393 }, | 396 }, |
394 | 397 |
395 __proto__: WebInspector.VBox.prototype | 398 __proto__: WebInspector.VBox.prototype |
396 } | 399 } |
OLD | NEW |