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 1098 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1109 }, | 1109 }, |
1110 | 1110 |
1111 /** | 1111 /** |
1112 * @param {!WebInspector.Target} target | 1112 * @param {!WebInspector.Target} target |
1113 * @override | 1113 * @override |
1114 */ | 1114 */ |
1115 targetAdded: function(target) | 1115 targetAdded: function(target) |
1116 { | 1116 { |
1117 target.pageAgent().setAutoAttachToCreatedPages(this._autoAttachSetting.g
et()); | 1117 target.pageAgent().setAutoAttachToCreatedPages(this._autoAttachSetting.g
et()); |
1118 target.emulationAgent().setScriptExecutionDisabled(this._disableJavascri
ptSetting.get()); | 1118 target.emulationAgent().setScriptExecutionDisabled(this._disableJavascri
ptSetting.get()); |
| 1119 target.renderingAgent().setShowViewportSizeOnResize(true); |
1119 }, | 1120 }, |
1120 | 1121 |
1121 /** | 1122 /** |
1122 * @param {!WebInspector.Target} target | 1123 * @param {!WebInspector.Target} target |
1123 * @override | 1124 * @override |
1124 */ | 1125 */ |
1125 targetRemoved: function(target) | 1126 targetRemoved: function(target) |
1126 { | 1127 { |
1127 } | 1128 } |
1128 } | 1129 } |
(...skipping 12 matching lines...) Expand all Loading... |
1141 * @return {?Element} | 1142 * @return {?Element} |
1142 */ | 1143 */ |
1143 settingElement: function() | 1144 settingElement: function() |
1144 { | 1145 { |
1145 return WebInspector.SettingsUI.createSettingCheckbox(WebInspector.UIStri
ng("Show rulers"), WebInspector.moduleSetting("showMetricsRulers")); | 1146 return WebInspector.SettingsUI.createSettingCheckbox(WebInspector.UIStri
ng("Show rulers"), WebInspector.moduleSetting("showMetricsRulers")); |
1146 } | 1147 } |
1147 } | 1148 } |
1148 | 1149 |
1149 | 1150 |
1150 new WebInspector.Main(); | 1151 new WebInspector.Main(); |
OLD | NEW |