| 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 * @param {function()} updateCallback | 7 * @param {function()} updateCallback |
| 8 * @implements {WebInspector.TargetManager.Observer} | 8 * @implements {WebInspector.TargetManager.Observer} |
| 9 */ | 9 */ |
| 10 WebInspector.DeviceModeModel = function(updateCallback) | 10 WebInspector.DeviceModeModel = function(updateCallback) |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 this._device = null; | 54 this._device = null; |
| 55 /** @type {?WebInspector.EmulatedDevice.Mode} */ | 55 /** @type {?WebInspector.EmulatedDevice.Mode} */ |
| 56 this._mode = null; | 56 this._mode = null; |
| 57 /** @type {number} */ | 57 /** @type {number} */ |
| 58 this._fitScale = 1; | 58 this._fitScale = 1; |
| 59 | 59 |
| 60 /** @type {?WebInspector.Target} */ | 60 /** @type {?WebInspector.Target} */ |
| 61 this._target = null; | 61 this._target = null; |
| 62 /** @type {?function()} */ | 62 /** @type {?function()} */ |
| 63 this._onTargetAvailable = null; | 63 this._onTargetAvailable = null; |
| 64 WebInspector.targetManager.observeTargets(this, WebInspector.Target.Type.Pag
e); | 64 WebInspector.targetManager.observeTargets(this, WebInspector.Target.Capabili
ty.Browser); |
| 65 } | 65 } |
| 66 | 66 |
| 67 /** @enum {string} */ | 67 /** @enum {string} */ |
| 68 WebInspector.DeviceModeModel.Type = { | 68 WebInspector.DeviceModeModel.Type = { |
| 69 None: "None", | 69 None: "None", |
| 70 Responsive: "Responsive", | 70 Responsive: "Responsive", |
| 71 Device: "Device" | 71 Device: "Device" |
| 72 } | 72 } |
| 73 | 73 |
| 74 /** @enum {string} */ | 74 /** @enum {string} */ |
| (...skipping 554 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 629 | 629 |
| 630 /** | 630 /** |
| 631 * @param {boolean} touchEnabled | 631 * @param {boolean} touchEnabled |
| 632 * @param {boolean} mobile | 632 * @param {boolean} mobile |
| 633 */ | 633 */ |
| 634 _applyTouch: function(touchEnabled, mobile) | 634 _applyTouch: function(touchEnabled, mobile) |
| 635 { | 635 { |
| 636 WebInspector.MultitargetTouchModel.instance().setTouchEnabled(touchEnabl
ed, mobile); | 636 WebInspector.MultitargetTouchModel.instance().setTouchEnabled(touchEnabl
ed, mobile); |
| 637 } | 637 } |
| 638 } | 638 } |
| OLD | NEW |