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

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

Issue 2893073002: DevTools: introduce ResourceMapping (Closed)
Patch Set: cleanup test 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 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 UI.shortcutsScreen.section(Common.UIString('Styles Pane')); 183 UI.shortcutsScreen.section(Common.UIString('Styles Pane'));
184 UI.shortcutsScreen.section(Common.UIString('Debugger')); 184 UI.shortcutsScreen.section(Common.UIString('Debugger'));
185 UI.shortcutsScreen.section(Common.UIString('Console')); 185 UI.shortcutsScreen.section(Common.UIString('Console'));
186 186
187 Workspace.fileManager = new Workspace.FileManager(); 187 Workspace.fileManager = new Workspace.FileManager();
188 Workspace.workspace = new Workspace.Workspace(); 188 Workspace.workspace = new Workspace.Workspace();
189 Common.formatterWorkerPool = new Common.FormatterWorkerPool(); 189 Common.formatterWorkerPool = new Common.FormatterWorkerPool();
190 Persistence.fileSystemMapping = new Persistence.FileSystemMapping(Persistenc e.isolatedFileSystemManager); 190 Persistence.fileSystemMapping = new Persistence.FileSystemMapping(Persistenc e.isolatedFileSystemManager);
191 191
192 Bindings.networkProjectManager = new Bindings.NetworkProjectManager(SDK.targ etManager, Workspace.workspace); 192 Bindings.networkProjectManager = new Bindings.NetworkProjectManager(SDK.targ etManager, Workspace.workspace);
193 Bindings.resourceBindingManager = new Bindings.ResourceBindingManager(SDK.ta rgetManager, Workspace.workspace);
193 Bindings.presentationConsoleMessageHelper = new Bindings.PresentationConsole MessageHelper(Workspace.workspace); 194 Bindings.presentationConsoleMessageHelper = new Bindings.PresentationConsole MessageHelper(Workspace.workspace);
194 Bindings.cssWorkspaceBinding = new Bindings.CSSWorkspaceBinding(SDK.targetMa nager, Workspace.workspace); 195 Bindings.cssWorkspaceBinding = new Bindings.CSSWorkspaceBinding(SDK.targetMa nager, Workspace.workspace);
195 Bindings.debuggerWorkspaceBinding = new Bindings.DebuggerWorkspaceBinding(SD K.targetManager, Workspace.workspace); 196 Bindings.debuggerWorkspaceBinding = new Bindings.DebuggerWorkspaceBinding(SD K.targetManager, Workspace.workspace);
196 Bindings.breakpointManager = 197 Bindings.breakpointManager =
197 new Bindings.BreakpointManager(null, Workspace.workspace, SDK.targetMana ger, Bindings.debuggerWorkspaceBinding); 198 new Bindings.BreakpointManager(null, Workspace.workspace, SDK.targetMana ger, Bindings.debuggerWorkspaceBinding);
198 Extensions.extensionServer = new Extensions.ExtensionServer(); 199 Extensions.extensionServer = new Extensions.ExtensionServer();
199 200
200 new Persistence.FileSystemWorkspaceBinding(Persistence.isolatedFileSystemMan ager, Workspace.workspace); 201 new Persistence.FileSystemWorkspaceBinding(Persistence.isolatedFileSystemMan ager, Workspace.workspace);
201 Persistence.persistence = 202 Persistence.persistence =
202 new Persistence.Persistence(Workspace.workspace, Bindings.breakpointMana ger, Persistence.fileSystemMapping); 203 new Persistence.Persistence(Workspace.workspace, Bindings.breakpointMana ger, Persistence.fileSystemMapping);
(...skipping 749 matching lines...) Expand 10 before | Expand all | Expand 10 after
952 * @override 953 * @override
953 * @return {?Element} 954 * @return {?Element}
954 */ 955 */
955 settingElement() { 956 settingElement() {
956 return UI.SettingsUI.createSettingCheckbox( 957 return UI.SettingsUI.createSettingCheckbox(
957 Common.UIString('Show rulers'), Common.moduleSetting('showMetricsRulers' )); 958 Common.UIString('Show rulers'), Common.moduleSetting('showMetricsRulers' ));
958 } 959 }
959 }; 960 };
960 961
961 new Main.Main(); 962 new Main.Main();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698