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

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

Issue 2869293002: DevTools: make CompilerScriptMapping / SASSSourceMapping manage UISourceCodes (Closed)
Patch Set: address comments 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 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
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(Workspace. isolatedFileSystemManager);
187 187
188 Main.networkProjectManager = new Bindings.NetworkProjectManager(SDK.targetMa nager, Workspace.workspace); 188 Bindings.networkProjectManager = new Bindings.NetworkProjectManager(SDK.targ etManager, 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(Workspace.isolatedFileSystemManag er, 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);
(...skipping 749 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