| 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 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 192 setOverviewControls: function(overviewControls) | 192 setOverviewControls: function(overviewControls) |
| 193 { | 193 { |
| 194 for (var i = 0; i < this._overviewControls.length; ++i) | 194 for (var i = 0; i < this._overviewControls.length; ++i) |
| 195 this._overviewControls[i].dispose(); | 195 this._overviewControls[i].dispose(); |
| 196 | 196 |
| 197 for (var i = 0; i < overviewControls.length; ++i) { | 197 for (var i = 0; i < overviewControls.length; ++i) { |
| 198 overviewControls[i].setCalculator(this._overviewCalculator); | 198 overviewControls[i].setCalculator(this._overviewCalculator); |
| 199 overviewControls[i].show(this._overviewGrid.element); | 199 overviewControls[i].show(this._overviewGrid.element); |
| 200 } | 200 } |
| 201 this._overviewControls = overviewControls; | 201 this._overviewControls = overviewControls; |
| 202 this.scheduleUpdate(); | 202 this._update(); |
| 203 }, | 203 }, |
| 204 | 204 |
| 205 /** | 205 /** |
| 206 * @param {number} minimumBoundary | 206 * @param {number} minimumBoundary |
| 207 * @param {number} maximumBoundary | 207 * @param {number} maximumBoundary |
| 208 */ | 208 */ |
| 209 setBounds: function(minimumBoundary, maximumBoundary) | 209 setBounds: function(minimumBoundary, maximumBoundary) |
| 210 { | 210 { |
| 211 this._overviewCalculator.setBounds(minimumBoundary, maximumBoundary); | 211 this._overviewCalculator.setBounds(minimumBoundary, maximumBoundary); |
| 212 this._overviewGrid.setResizeEnabled(true); | 212 this._overviewGrid.setResizeEnabled(true); |
| (...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 626 }, | 626 }, |
| 627 | 627 |
| 628 resetCanvas: function() | 628 resetCanvas: function() |
| 629 { | 629 { |
| 630 this._canvas.width = this.element.clientWidth * window.devicePixelRatio; | 630 this._canvas.width = this.element.clientWidth * window.devicePixelRatio; |
| 631 this._canvas.height = this.element.clientHeight * window.devicePixelRati
o; | 631 this._canvas.height = this.element.clientHeight * window.devicePixelRati
o; |
| 632 }, | 632 }, |
| 633 | 633 |
| 634 __proto__: WebInspector.VBox.prototype | 634 __proto__: WebInspector.VBox.prototype |
| 635 } | 635 } |
| OLD | NEW |