| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 * @implements {WebInspector.OverridesSupport.PageResizer} | 8 * @implements {WebInspector.OverridesSupport.PageResizer} |
| 9 * @implements {WebInspector.TargetManager.Observer} | 9 * @implements {WebInspector.TargetManager.Observer} |
| 10 * @param {!WebInspector.InspectedPagePlaceholder} inspectedPagePlaceholder | 10 * @param {!WebInspector.InspectedPagePlaceholder} inspectedPagePlaceholder |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 this._viewportChangedThrottler = new WebInspector.Throttler(0); | 30 this._viewportChangedThrottler = new WebInspector.Throttler(0); |
| 31 this._pageScaleFactorThrottler = new WebInspector.Throttler(50); | 31 this._pageScaleFactorThrottler = new WebInspector.Throttler(50); |
| 32 | 32 |
| 33 WebInspector.zoomManager.addEventListener(WebInspector.ZoomManager.Events.Zo
omChanged, this._onZoomChanged, this); | 33 WebInspector.zoomManager.addEventListener(WebInspector.ZoomManager.Events.Zo
omChanged, this._onZoomChanged, this); |
| 34 WebInspector.overridesSupport.addEventListener(WebInspector.OverridesSupport
.Events.EmulationStateChanged, this._emulationEnabledChanged, this); | 34 WebInspector.overridesSupport.addEventListener(WebInspector.OverridesSupport
.Events.EmulationStateChanged, this._emulationEnabledChanged, this); |
| 35 WebInspector.targetManager.observeTargets(this, WebInspector.Target.Type.Pag
e); | 35 WebInspector.targetManager.observeTargets(this, WebInspector.Target.Type.Pag
e); |
| 36 this._emulationEnabledChanged(); | 36 this._emulationEnabledChanged(); |
| 37 }; | 37 }; |
| 38 | 38 |
| 39 // Measured in DIP. | 39 // Measured in DIP. |
| 40 WebInspector.ResponsiveDesignView.RulerWidth = 34; | 40 WebInspector.ResponsiveDesignView.RulerWidth = 26; |
| 41 WebInspector.ResponsiveDesignView.RulerHeight = 22; | 41 WebInspector.ResponsiveDesignView.RulerHeight = 22; |
| 42 WebInspector.ResponsiveDesignView.RulerTopHeight = 11; | 42 WebInspector.ResponsiveDesignView.RulerTopHeight = 11; |
| 43 WebInspector.ResponsiveDesignView.RulerBottomHeight = 9; | 43 WebInspector.ResponsiveDesignView.RulerBottomHeight = 9; |
| 44 | 44 |
| 45 WebInspector.ResponsiveDesignView.prototype = { | 45 WebInspector.ResponsiveDesignView.prototype = { |
| 46 _ensureUIInitialized: function() | 46 _ensureUIInitialized: function() |
| 47 { | 47 { |
| 48 if (this._uiInitialized) | 48 if (this._uiInitialized) |
| 49 return; | 49 return; |
| 50 | 50 |
| (...skipping 755 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 806 WebInspector.EmulationDispatcher.prototype = { | 806 WebInspector.EmulationDispatcher.prototype = { |
| 807 /** | 807 /** |
| 808 * @override | 808 * @override |
| 809 * @param {!EmulationAgent.Viewport=} viewport | 809 * @param {!EmulationAgent.Viewport=} viewport |
| 810 */ | 810 */ |
| 811 viewportChanged: function(viewport) | 811 viewportChanged: function(viewport) |
| 812 { | 812 { |
| 813 this._responsiveDesignView._viewportChanged(viewport); | 813 this._responsiveDesignView._viewportChanged(viewport); |
| 814 } | 814 } |
| 815 } | 815 } |
| OLD | NEW |