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