| 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 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 319 if (this.isShowing()) | 319 if (this.isShowing()) |
| 320 this._contentAreaResized(); | 320 this._contentAreaResized(); |
| 321 }, | 321 }, |
| 322 | 322 |
| 323 /** | 323 /** |
| 324 * @override | 324 * @override |
| 325 */ | 325 */ |
| 326 wasShown: function() | 326 wasShown: function() |
| 327 { | 327 { |
| 328 this._measureHandles(); | 328 this._measureHandles(); |
| 329 this._mediaInspector.setEnabled(true); | |
| 330 this._toolbar.restore(); | 329 this._toolbar.restore(); |
| 331 }, | 330 }, |
| 332 | 331 |
| 333 /** | 332 /** |
| 334 * @override | 333 * @override |
| 335 */ | 334 */ |
| 336 willHide: function() | 335 willHide: function() |
| 337 { | 336 { |
| 338 this._model.emulate(WebInspector.DeviceModeModel.Type.None, null, null); | 337 this._model.emulate(WebInspector.DeviceModeModel.Type.None, null, null); |
| 339 this._mediaInspector.setEnabled(false); | |
| 340 }, | 338 }, |
| 341 | 339 |
| 342 __proto__: WebInspector.VBox.prototype | 340 __proto__: WebInspector.VBox.prototype |
| 343 } | 341 } |
| 344 | 342 |
| 345 /** | 343 /** |
| 346 * @constructor | 344 * @constructor |
| 347 * @extends {WebInspector.VBox} | 345 * @extends {WebInspector.VBox} |
| 348 * @param {boolean} horizontal | 346 * @param {boolean} horizontal |
| 349 * @param {function(number)} applyCallback | 347 * @param {function(number)} applyCallback |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 442 /** | 440 /** |
| 443 * @param {number} size | 441 * @param {number} size |
| 444 */ | 442 */ |
| 445 _onMarkerClick: function(size) | 443 _onMarkerClick: function(size) |
| 446 { | 444 { |
| 447 this._applyCallback.call(null, size); | 445 this._applyCallback.call(null, size); |
| 448 }, | 446 }, |
| 449 | 447 |
| 450 __proto__: WebInspector.VBox.prototype | 448 __proto__: WebInspector.VBox.prototype |
| 451 } | 449 } |
| OLD | NEW |