| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 /** | 5 /** |
| 6 * @constructor | 6 * @constructor |
| 7 * @extends {WebInspector.VBox} | 7 * @extends {WebInspector.VBox} |
| 8 */ | 8 */ |
| 9 WebInspector.DeviceModeView = function() | 9 WebInspector.DeviceModeView = function() |
| 10 { | 10 { |
| (...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 283 | 283 |
| 284 this._toolbar.update(); | 284 this._toolbar.update(); |
| 285 this._loadImage(this._screenImage, this._model.screenImage()); | 285 this._loadImage(this._screenImage, this._model.screenImage()); |
| 286 this._loadImage(this._outlineImage, this._model.outlineImage()); | 286 this._loadImage(this._outlineImage, this._model.outlineImage()); |
| 287 this._mediaInspector.setAxisTransform(this._model.scale()); | 287 this._mediaInspector.setAxisTransform(this._model.scale()); |
| 288 if (callDoResize) | 288 if (callDoResize) |
| 289 this.doResize(); | 289 this.doResize(); |
| 290 if (updateRulers) { | 290 if (updateRulers) { |
| 291 this._topRuler.render(this._cachedCssScreenRect ? this._cachedCssScr
eenRect.left : 0, this._model.scale()); | 291 this._topRuler.render(this._cachedCssScreenRect ? this._cachedCssScr
eenRect.left : 0, this._model.scale()); |
| 292 this._leftRuler.render(0, this._model.scale()); | 292 this._leftRuler.render(0, this._model.scale()); |
| 293 this._topRuler.element.style.top = this._cachedCssScreenRect ? this.
_cachedCssScreenRect.top + "px" : 0; | 293 this._topRuler.element.style.top = this._cachedCssScreenRect ? this.
_cachedCssScreenRect.top + "px" : "0"; |
| 294 this._leftRuler.element.style.top = this._cachedCssScreenRect ? this
._cachedCssScreenRect.top + "px" : 0; | 294 this._leftRuler.element.style.top = this._cachedCssScreenRect ? this
._cachedCssScreenRect.top + "px" : "0"; |
| 295 } | 295 } |
| 296 if (contentAreaResized) | 296 if (contentAreaResized) |
| 297 this._contentAreaResized(); | 297 this._contentAreaResized(); |
| 298 }, | 298 }, |
| 299 | 299 |
| 300 /** | 300 /** |
| 301 * @param {!Element} element | 301 * @param {!Element} element |
| 302 * @param {string} srcset | 302 * @param {string} srcset |
| 303 */ | 303 */ |
| 304 _loadImage: function(element, srcset) | 304 _loadImage: function(element, srcset) |
| (...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 564 /** | 564 /** |
| 565 * @param {number} size | 565 * @param {number} size |
| 566 */ | 566 */ |
| 567 _onMarkerClick: function(size) | 567 _onMarkerClick: function(size) |
| 568 { | 568 { |
| 569 this._applyCallback.call(null, size); | 569 this._applyCallback.call(null, size); |
| 570 }, | 570 }, |
| 571 | 571 |
| 572 __proto__: WebInspector.VBox.prototype | 572 __proto__: WebInspector.VBox.prototype |
| 573 } | 573 } |
| OLD | NEW |