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

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

Issue 2560043005: DevTools: Remove unused variables. Disallow unused variables with eslint (Closed)
Patch Set: A new unused variable was born Created 4 years 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 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 Workspace.fileSystemMapping = new Workspace.FileSystemMapping(Workspace.isol atedFileSystemManager); 175 Workspace.fileSystemMapping = new Workspace.FileSystemMapping(Workspace.isol atedFileSystemManager);
176 176
177 Main.networkProjectManager = new Bindings.NetworkProjectManager(SDK.targetMa nager, Workspace.workspace); 177 Main.networkProjectManager = new Bindings.NetworkProjectManager(SDK.targetMa nager, Workspace.workspace);
178 Bindings.presentationConsoleMessageHelper = new Bindings.PresentationConsole MessageHelper(Workspace.workspace); 178 Bindings.presentationConsoleMessageHelper = new Bindings.PresentationConsole MessageHelper(Workspace.workspace);
179 Bindings.cssWorkspaceBinding = new Bindings.CSSWorkspaceBinding(SDK.targetMa nager, Workspace.workspace); 179 Bindings.cssWorkspaceBinding = new Bindings.CSSWorkspaceBinding(SDK.targetMa nager, Workspace.workspace);
180 Bindings.debuggerWorkspaceBinding = new Bindings.DebuggerWorkspaceBinding(SD K.targetManager, Workspace.workspace); 180 Bindings.debuggerWorkspaceBinding = new Bindings.DebuggerWorkspaceBinding(SD K.targetManager, Workspace.workspace);
181 Bindings.breakpointManager = 181 Bindings.breakpointManager =
182 new Bindings.BreakpointManager(null, Workspace.workspace, SDK.targetMana ger, Bindings.debuggerWorkspaceBinding); 182 new Bindings.BreakpointManager(null, Workspace.workspace, SDK.targetMana ger, Bindings.debuggerWorkspaceBinding);
183 Extensions.extensionServer = new Extensions.ExtensionServer(); 183 Extensions.extensionServer = new Extensions.ExtensionServer();
184 184
185 var fileSystemWorkspaceBinding = 185 new Persistence.FileSystemWorkspaceBinding(Workspace.isolatedFileSystemManag er, Workspace.workspace);
186 new Persistence.FileSystemWorkspaceBinding(Workspace.isolatedFileSystemM anager, Workspace.workspace);
187 Persistence.persistence = 186 Persistence.persistence =
188 new Persistence.Persistence(Workspace.workspace, Bindings.breakpointMana ger, Workspace.fileSystemMapping); 187 new Persistence.Persistence(Workspace.workspace, Bindings.breakpointMana ger, Workspace.fileSystemMapping);
189 188
190 new Main.OverlayController(); 189 new Main.OverlayController();
191 new Components.ExecutionContextSelector(SDK.targetManager, UI.context); 190 new Components.ExecutionContextSelector(SDK.targetManager, UI.context);
192 Bindings.blackboxManager = new Bindings.BlackboxManager(Bindings.debuggerWor kspaceBinding); 191 Bindings.blackboxManager = new Bindings.BlackboxManager(Bindings.debuggerWor kspaceBinding);
193 192
194 new Main.Main.PauseListener(); 193 new Main.Main.PauseListener();
195 new Main.Main.InspectedNodeRevealer(); 194 new Main.Main.InspectedNodeRevealer();
196 new Main.NetworkPanelIndicator(); 195 new Main.NetworkPanelIndicator();
(...skipping 780 matching lines...) Expand 10 before | Expand all | Expand 10 after
977 * @override 976 * @override
978 * @return {?Element} 977 * @return {?Element}
979 */ 978 */
980 settingElement() { 979 settingElement() {
981 return UI.SettingsUI.createSettingCheckbox( 980 return UI.SettingsUI.createSettingCheckbox(
982 Common.UIString('Show rulers'), Common.moduleSetting('showMetricsRulers' )); 981 Common.UIString('Show rulers'), Common.moduleSetting('showMetricsRulers' ));
983 } 982 }
984 }; 983 };
985 984
986 new Main.Main(); 985 new Main.Main();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698