| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 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 730 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 741 | 741 |
| 742 _pageResizerActive: function() | 742 _pageResizerActive: function() |
| 743 { | 743 { |
| 744 return this._pageResizer && this.emulationEnabled(); | 744 return this._pageResizer && this.emulationEnabled(); |
| 745 }, | 745 }, |
| 746 | 746 |
| 747 _showRulersChanged: function() | 747 _showRulersChanged: function() |
| 748 { | 748 { |
| 749 var showRulersValue = WebInspector.moduleSetting("showMetricsRulers").ge
t(); | 749 var showRulersValue = WebInspector.moduleSetting("showMetricsRulers").ge
t(); |
| 750 for (var target of WebInspector.targetManager.targets(WebInspector.Targe
t.Type.Page)) { | 750 for (var target of WebInspector.targetManager.targets(WebInspector.Targe
t.Type.Page)) { |
| 751 target.pageAgent().setShowViewportSizeOnResize(!this._pageResizerAct
ive(), showRulersValue); | |
| 752 var domModel = WebInspector.DOMModel.fromTarget(target); | 751 var domModel = WebInspector.DOMModel.fromTarget(target); |
| 753 if (domModel) | 752 if (domModel) |
| 754 domModel.setHighlightSettings(showRulersValue && !this._pageResi
zerActive(), showRulersValue); | 753 domModel.setHighlightSettings(showRulersValue && !this._pageResi
zerActive(), showRulersValue); |
| 755 } | 754 } |
| 756 }, | 755 }, |
| 757 | 756 |
| 758 _onMainFrameNavigated: function() | 757 _onMainFrameNavigated: function() |
| 759 { | 758 { |
| 760 this._deviceMetricsChanged(false); | 759 this._deviceMetricsChanged(false); |
| 761 this._updateUserAgentWarningMessage(""); | 760 this._updateUserAgentWarningMessage(""); |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 809 }, | 808 }, |
| 810 | 809 |
| 811 __proto__: WebInspector.Object.prototype | 810 __proto__: WebInspector.Object.prototype |
| 812 } | 811 } |
| 813 | 812 |
| 814 | 813 |
| 815 /** | 814 /** |
| 816 * @type {!WebInspector.OverridesSupport} | 815 * @type {!WebInspector.OverridesSupport} |
| 817 */ | 816 */ |
| 818 WebInspector.overridesSupport; | 817 WebInspector.overridesSupport; |
| OLD | NEW |