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

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

Issue 2867783003: DevTools: move IsolatedFileSystem/IsolatedFileSystemManager into persistence/ (Closed)
Patch Set: fix order Created 3 years, 7 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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 142
143 /** 143 /**
144 * @suppressGlobalPropertiesCheck 144 * @suppressGlobalPropertiesCheck
145 */ 145 */
146 _createAppUI() { 146 _createAppUI() {
147 console.time('Main._createAppUI'); 147 console.time('Main._createAppUI');
148 148
149 UI.viewManager = new UI.ViewManager(); 149 UI.viewManager = new UI.ViewManager();
150 150
151 // Request filesystems early, we won't create connections until callback is fired. Things will happen in parallel. 151 // Request filesystems early, we won't create connections until callback is fired. Things will happen in parallel.
152 Workspace.isolatedFileSystemManager = new Workspace.IsolatedFileSystemManage r(); 152 Persistence.isolatedFileSystemManager = new Persistence.IsolatedFileSystemMa nager();
153 153
154 var themeSetting = Common.settings.createSetting('uiTheme', 'default'); 154 var themeSetting = Common.settings.createSetting('uiTheme', 'default');
155 UI.initializeUIUtils(document, themeSetting); 155 UI.initializeUIUtils(document, themeSetting);
156 themeSetting.addChangeListener(Components.reload.bind(Components)); 156 themeSetting.addChangeListener(Components.reload.bind(Components));
157 157
158 UI.installComponentRootStyles(/** @type {!Element} */ (document.body)); 158 UI.installComponentRootStyles(/** @type {!Element} */ (document.body));
159 159
160 this._addMainEventListeners(document); 160 this._addMainEventListeners(document);
161 161
162 var canDock = !!Runtime.queryParam('can_dock'); 162 var canDock = !!Runtime.queryParam('can_dock');
(...skipping 13 matching lines...) Expand all
176 UI.shortcutsScreen = new UI.ShortcutsScreen(); 176 UI.shortcutsScreen = new UI.ShortcutsScreen();
177 // set order of some sections explicitly 177 // set order of some sections explicitly
178 UI.shortcutsScreen.section(Common.UIString('Elements Panel')); 178 UI.shortcutsScreen.section(Common.UIString('Elements Panel'));
179 UI.shortcutsScreen.section(Common.UIString('Styles Pane')); 179 UI.shortcutsScreen.section(Common.UIString('Styles Pane'));
180 UI.shortcutsScreen.section(Common.UIString('Debugger')); 180 UI.shortcutsScreen.section(Common.UIString('Debugger'));
181 UI.shortcutsScreen.section(Common.UIString('Console')); 181 UI.shortcutsScreen.section(Common.UIString('Console'));
182 182
183 Workspace.fileManager = new Workspace.FileManager(); 183 Workspace.fileManager = new Workspace.FileManager();
184 Workspace.workspace = new Workspace.Workspace(); 184 Workspace.workspace = new Workspace.Workspace();
185 Common.formatterWorkerPool = new Common.FormatterWorkerPool(); 185 Common.formatterWorkerPool = new Common.FormatterWorkerPool();
186 Persistence.fileSystemMapping = new Persistence.FileSystemMapping(Workspace. isolatedFileSystemManager); 186 Persistence.fileSystemMapping = new Persistence.FileSystemMapping(Persistenc e.isolatedFileSystemManager);
187 187
188 Main.networkProjectManager = new Bindings.NetworkProjectManager(SDK.targetMa nager, Workspace.workspace); 188 Main.networkProjectManager = new Bindings.NetworkProjectManager(SDK.targetMa nager, Workspace.workspace);
189 Bindings.presentationConsoleMessageHelper = new Bindings.PresentationConsole MessageHelper(Workspace.workspace); 189 Bindings.presentationConsoleMessageHelper = new Bindings.PresentationConsole MessageHelper(Workspace.workspace);
190 Bindings.cssWorkspaceBinding = new Bindings.CSSWorkspaceBinding(SDK.targetMa nager, Workspace.workspace); 190 Bindings.cssWorkspaceBinding = new Bindings.CSSWorkspaceBinding(SDK.targetMa nager, Workspace.workspace);
191 Bindings.debuggerWorkspaceBinding = new Bindings.DebuggerWorkspaceBinding(SD K.targetManager, Workspace.workspace); 191 Bindings.debuggerWorkspaceBinding = new Bindings.DebuggerWorkspaceBinding(SD K.targetManager, Workspace.workspace);
192 Bindings.breakpointManager = 192 Bindings.breakpointManager =
193 new Bindings.BreakpointManager(null, Workspace.workspace, SDK.targetMana ger, Bindings.debuggerWorkspaceBinding); 193 new Bindings.BreakpointManager(null, Workspace.workspace, SDK.targetMana ger, Bindings.debuggerWorkspaceBinding);
194 Extensions.extensionServer = new Extensions.ExtensionServer(); 194 Extensions.extensionServer = new Extensions.ExtensionServer();
195 195
196 new Persistence.FileSystemWorkspaceBinding(Workspace.isolatedFileSystemManag er, Workspace.workspace); 196 new Persistence.FileSystemWorkspaceBinding(Persistence.isolatedFileSystemMan ager, Workspace.workspace);
197 Persistence.persistence = 197 Persistence.persistence =
198 new Persistence.Persistence(Workspace.workspace, Bindings.breakpointMana ger, Persistence.fileSystemMapping); 198 new Persistence.Persistence(Workspace.workspace, Bindings.breakpointMana ger, Persistence.fileSystemMapping);
199 199
200 new Main.ExecutionContextSelector(SDK.targetManager, UI.context); 200 new Main.ExecutionContextSelector(SDK.targetManager, UI.context);
201 Bindings.blackboxManager = new Bindings.BlackboxManager(Bindings.debuggerWor kspaceBinding); 201 Bindings.blackboxManager = new Bindings.BlackboxManager(Bindings.debuggerWor kspaceBinding);
202 202
203 new Main.Main.PauseListener(); 203 new Main.Main.PauseListener();
204 new Main.Main.InspectedNodeRevealer(); 204 new Main.Main.InspectedNodeRevealer();
205 new Main.NetworkPanelIndicator(); 205 new Main.NetworkPanelIndicator();
206 new Main.SourcesPanelIndicator(); 206 new Main.SourcesPanelIndicator();
(...skipping 741 matching lines...) Expand 10 before | Expand all | Expand 10 after
948 * @override 948 * @override
949 * @return {?Element} 949 * @return {?Element}
950 */ 950 */
951 settingElement() { 951 settingElement() {
952 return UI.SettingsUI.createSettingCheckbox( 952 return UI.SettingsUI.createSettingCheckbox(
953 Common.UIString('Show rulers'), Common.moduleSetting('showMetricsRulers' )); 953 Common.UIString('Show rulers'), Common.moduleSetting('showMetricsRulers' ));
954 } 954 }
955 }; 955 };
956 956
957 new Main.Main(); 957 new Main.Main();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698