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

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

Issue 2529303003: DevTools: move FileSystemMapping from Workspace to Persistence (Closed)
Patch Set: fix tests 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 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 Components.shortcutsScreen = new Components.ShortcutsScreen(); 173 Components.shortcutsScreen = new Components.ShortcutsScreen();
174 // set order of some sections explicitly 174 // set order of some sections explicitly
175 Components.shortcutsScreen.section(Common.UIString('Elements Panel')); 175 Components.shortcutsScreen.section(Common.UIString('Elements Panel'));
176 Components.shortcutsScreen.section(Common.UIString('Styles Pane')); 176 Components.shortcutsScreen.section(Common.UIString('Styles Pane'));
177 Components.shortcutsScreen.section(Common.UIString('Debugger')); 177 Components.shortcutsScreen.section(Common.UIString('Debugger'));
178 Components.shortcutsScreen.section(Common.UIString('Console')); 178 Components.shortcutsScreen.section(Common.UIString('Console'));
179 179
180 Workspace.fileManager = new Workspace.FileManager(); 180 Workspace.fileManager = new Workspace.FileManager();
181 Workspace.workspace = new Workspace.Workspace(); 181 Workspace.workspace = new Workspace.Workspace();
182 Common.formatterWorkerPool = new Common.FormatterWorkerPool(); 182 Common.formatterWorkerPool = new Common.FormatterWorkerPool();
183 Workspace.fileSystemMapping = new Workspace.FileSystemMapping(Workspace.isol atedFileSystemManager);
184 183
185 Main.networkProjectManager = new Bindings.NetworkProjectManager(SDK.targetMa nager, Workspace.workspace); 184 Main.networkProjectManager = new Bindings.NetworkProjectManager(SDK.targetMa nager, Workspace.workspace);
186 Bindings.presentationConsoleMessageHelper = new Bindings.PresentationConsole MessageHelper(Workspace.workspace); 185 Bindings.presentationConsoleMessageHelper = new Bindings.PresentationConsole MessageHelper(Workspace.workspace);
187 Bindings.cssWorkspaceBinding = new Bindings.CSSWorkspaceBinding(SDK.targetMa nager, Workspace.workspace); 186 Bindings.cssWorkspaceBinding = new Bindings.CSSWorkspaceBinding(SDK.targetMa nager, Workspace.workspace);
188 Bindings.debuggerWorkspaceBinding = new Bindings.DebuggerWorkspaceBinding(SD K.targetManager, Workspace.workspace); 187 Bindings.debuggerWorkspaceBinding = new Bindings.DebuggerWorkspaceBinding(SD K.targetManager, Workspace.workspace);
189 Bindings.breakpointManager = 188 Bindings.breakpointManager =
190 new Bindings.BreakpointManager(null, Workspace.workspace, SDK.targetMana ger, Bindings.debuggerWorkspaceBinding); 189 new Bindings.BreakpointManager(null, Workspace.workspace, SDK.targetMana ger, Bindings.debuggerWorkspaceBinding);
191 Extensions.extensionServer = new Extensions.ExtensionServer(); 190 Extensions.extensionServer = new Extensions.ExtensionServer();
192 191
192 Persistence.fileSystemMapping = new Persistence.FileSystemMapping(Workspace. isolatedFileSystemManager);
193 var fileSystemWorkspaceBinding = 193 var fileSystemWorkspaceBinding =
194 new Persistence.FileSystemWorkspaceBinding(Workspace.isolatedFileSystemM anager, Workspace.workspace); 194 new Persistence.FileSystemWorkspaceBinding(Workspace.isolatedFileSystemM anager, Workspace.workspace);
195 Persistence.persistence = 195 Persistence.persistence =
196 new Persistence.Persistence(Workspace.workspace, Bindings.breakpointMana ger, Workspace.fileSystemMapping); 196 new Persistence.Persistence(Workspace.workspace, Bindings.breakpointMana ger, Persistence.fileSystemMapping);
197 197
198 new Main.OverlayController(); 198 new Main.OverlayController();
199 new Components.ExecutionContextSelector(SDK.targetManager, UI.context); 199 new Components.ExecutionContextSelector(SDK.targetManager, UI.context);
200 Bindings.blackboxManager = new Bindings.BlackboxManager(Bindings.debuggerWor kspaceBinding); 200 Bindings.blackboxManager = new Bindings.BlackboxManager(Bindings.debuggerWor kspaceBinding);
201 201
202 new Main.Main.PauseListener(); 202 new Main.Main.PauseListener();
203 new Main.Main.InspectedNodeRevealer(); 203 new Main.Main.InspectedNodeRevealer();
204 new Main.NetworkPanelIndicator(); 204 new Main.NetworkPanelIndicator();
205 new Main.SourcesPanelIndicator(); 205 new Main.SourcesPanelIndicator();
206 new Main.BackendSettingsSync(); 206 new Main.BackendSettingsSync();
(...skipping 775 matching lines...) Expand 10 before | Expand all | Expand 10 after
982 * @override 982 * @override
983 * @return {?Element} 983 * @return {?Element}
984 */ 984 */
985 settingElement() { 985 settingElement() {
986 return UI.SettingsUI.createSettingCheckbox( 986 return UI.SettingsUI.createSettingCheckbox(
987 Common.UIString('Show rulers'), Common.moduleSetting('showMetricsRulers' )); 987 Common.UIString('Show rulers'), Common.moduleSetting('showMetricsRulers' ));
988 } 988 }
989 }; 989 };
990 990
991 new Main.Main(); 991 new Main.Main();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698