| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2007 Matt Lilek (pewtermoose@gmail.com). | 3 * Copyright (C) 2007 Matt Lilek (pewtermoose@gmail.com). |
| 4 * Copyright (C) 2009 Joseph Pecoraro | 4 * Copyright (C) 2009 Joseph Pecoraro |
| 5 * | 5 * |
| 6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
| 7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
| 8 * are met: | 8 * are met: |
| 9 * | 9 * |
| 10 * 1. Redistributions of source code must retain the above copyright | 10 * 1. Redistributions of source code must retain the above copyright |
| (...skipping 1090 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1101 }, | 1101 }, |
| 1102 | 1102 |
| 1103 /** | 1103 /** |
| 1104 * @param {!WebInspector.Target} target | 1104 * @param {!WebInspector.Target} target |
| 1105 * @override | 1105 * @override |
| 1106 */ | 1106 */ |
| 1107 targetAdded: function(target) | 1107 targetAdded: function(target) |
| 1108 { | 1108 { |
| 1109 target.pageAgent().setAutoAttachToCreatedPages(this._autoAttachSetting.g
et()); | 1109 target.pageAgent().setAutoAttachToCreatedPages(this._autoAttachSetting.g
et()); |
| 1110 target.emulationAgent().setScriptExecutionDisabled(this._disableJavascri
ptSetting.get()); | 1110 target.emulationAgent().setScriptExecutionDisabled(this._disableJavascri
ptSetting.get()); |
| 1111 target.renderingAgent().setShowViewportSizeOnResize(true); |
| 1111 }, | 1112 }, |
| 1112 | 1113 |
| 1113 /** | 1114 /** |
| 1114 * @param {!WebInspector.Target} target | 1115 * @param {!WebInspector.Target} target |
| 1115 * @override | 1116 * @override |
| 1116 */ | 1117 */ |
| 1117 targetRemoved: function(target) | 1118 targetRemoved: function(target) |
| 1118 { | 1119 { |
| 1119 } | 1120 } |
| 1120 } | 1121 } |
| (...skipping 12 matching lines...) Expand all Loading... |
| 1133 * @return {?Element} | 1134 * @return {?Element} |
| 1134 */ | 1135 */ |
| 1135 settingElement: function() | 1136 settingElement: function() |
| 1136 { | 1137 { |
| 1137 return WebInspector.SettingsUI.createSettingCheckbox(WebInspector.UIStri
ng("Show rulers"), WebInspector.moduleSetting("showMetricsRulers")); | 1138 return WebInspector.SettingsUI.createSettingCheckbox(WebInspector.UIStri
ng("Show rulers"), WebInspector.moduleSetting("showMetricsRulers")); |
| 1138 } | 1139 } |
| 1139 } | 1140 } |
| 1140 | 1141 |
| 1141 | 1142 |
| 1142 new WebInspector.Main(); | 1143 new WebInspector.Main(); |
| OLD | NEW |