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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 this._overviewCalculator._setWindow(0, 1000); | 93 this._overviewCalculator._setWindow(0, 1000); |
94 else | 94 else |
95 this._overviewCalculator._setWindow(this._model.minimumRecordTime(),
this._model.maximumRecordTime()); | 95 this._overviewCalculator._setWindow(this._model.minimumRecordTime(),
this._model.maximumRecordTime()); |
96 | 96 |
97 this._overviewCalculator._setDisplayWindow(0, this._overviewGrid.clientW
idth()); | 97 this._overviewCalculator._setDisplayWindow(0, this._overviewGrid.clientW
idth()); |
98 for (var i = 0; i < this._overviewControls.length; ++i) | 98 for (var i = 0; i < this._overviewControls.length; ++i) |
99 this._overviewControls[i].update(); | 99 this._overviewControls[i].update(); |
100 this._overviewGrid.updateDividers(this._overviewCalculator); | 100 this._overviewGrid.updateDividers(this._overviewCalculator); |
101 this._updateEventDividers(); | 101 this._updateEventDividers(); |
102 this._updateWindow(); | 102 this._updateWindow(); |
103 this._scheduleRefresh(); | |
104 }, | 103 }, |
105 | 104 |
106 _updateEventDividers: function() | 105 _updateEventDividers: function() |
107 { | 106 { |
108 var records = this._model.eventDividerRecords(); | 107 var records = this._model.eventDividerRecords(); |
109 this._overviewGrid.removeEventDividers(); | 108 this._overviewGrid.removeEventDividers(); |
110 var dividers = []; | 109 var dividers = []; |
111 for (var i = 0; i < records.length; ++i) { | 110 for (var i = 0; i < records.length; ++i) { |
112 var record = records[i]; | 111 var record = records[i]; |
113 var positions = this._overviewCalculator.computeBarGraphPercentages(
record); | 112 var positions = this._overviewCalculator.computeBarGraphPercentages(
record); |
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
406 }, | 405 }, |
407 | 406 |
408 resetCanvas: function() | 407 resetCanvas: function() |
409 { | 408 { |
410 this._canvas.width = this.element.clientWidth * window.devicePixelRatio; | 409 this._canvas.width = this.element.clientWidth * window.devicePixelRatio; |
411 this._canvas.height = this.element.clientHeight * window.devicePixelRati
o; | 410 this._canvas.height = this.element.clientHeight * window.devicePixelRati
o; |
412 }, | 411 }, |
413 | 412 |
414 __proto__: WebInspector.VBox.prototype | 413 __proto__: WebInspector.VBox.prototype |
415 } | 414 } |
OLD | NEW |