Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(61)

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

Issue 1771853004: [DevTools] Show viewport size on resize by default, disable in device mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
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 1098 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698