Chromium Code Reviews

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/main/Main.js

Issue 1807573002: Merge to 2661 "[DevTools] Show viewport size on resize by default, disable in device mode." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2661
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
OLDNEW
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...)
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...)
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();
OLDNEW

Powered by Google App Engine