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

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

Issue 2349343002: DevTools: introduce persistence/ module (Closed)
Patch Set: simplify test Created 4 years, 2 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 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 172
173 var fileSystemWorkspaceBinding = new WebInspector.FileSystemWorkspaceBin ding(WebInspector.isolatedFileSystemManager, WebInspector.workspace); 173 var fileSystemWorkspaceBinding = new WebInspector.FileSystemWorkspaceBin ding(WebInspector.isolatedFileSystemManager, WebInspector.workspace);
174 WebInspector.networkMapping = new WebInspector.NetworkMapping(WebInspect or.targetManager, WebInspector.workspace, fileSystemWorkspaceBinding, WebInspect or.fileSystemMapping); 174 WebInspector.networkMapping = new WebInspector.NetworkMapping(WebInspect or.targetManager, WebInspector.workspace, fileSystemWorkspaceBinding, WebInspect or.fileSystemMapping);
175 WebInspector.networkProjectManager = new WebInspector.NetworkProjectMana ger(WebInspector.targetManager, WebInspector.workspace, WebInspector.networkMapp ing); 175 WebInspector.networkProjectManager = new WebInspector.NetworkProjectMana ger(WebInspector.targetManager, WebInspector.workspace, WebInspector.networkMapp ing);
176 WebInspector.presentationConsoleMessageHelper = new WebInspector.Present ationConsoleMessageHelper(WebInspector.workspace); 176 WebInspector.presentationConsoleMessageHelper = new WebInspector.Present ationConsoleMessageHelper(WebInspector.workspace);
177 WebInspector.cssWorkspaceBinding = new WebInspector.CSSWorkspaceBinding( WebInspector.targetManager, WebInspector.workspace, WebInspector.networkMapping) ; 177 WebInspector.cssWorkspaceBinding = new WebInspector.CSSWorkspaceBinding( WebInspector.targetManager, WebInspector.workspace, WebInspector.networkMapping) ;
178 WebInspector.debuggerWorkspaceBinding = new WebInspector.DebuggerWorkspa ceBinding(WebInspector.targetManager, WebInspector.workspace, WebInspector.netwo rkMapping); 178 WebInspector.debuggerWorkspaceBinding = new WebInspector.DebuggerWorkspa ceBinding(WebInspector.targetManager, WebInspector.workspace, WebInspector.netwo rkMapping);
179 WebInspector.breakpointManager = new WebInspector.BreakpointManager(null , WebInspector.workspace, WebInspector.networkMapping, WebInspector.targetManage r, WebInspector.debuggerWorkspaceBinding); 179 WebInspector.breakpointManager = new WebInspector.BreakpointManager(null , WebInspector.workspace, WebInspector.networkMapping, WebInspector.targetManage r, WebInspector.debuggerWorkspaceBinding);
180 WebInspector.extensionServer = new WebInspector.ExtensionServer(); 180 WebInspector.extensionServer = new WebInspector.ExtensionServer();
181 181
182 WebInspector.persistence = new WebInspector.Persistence(WebInspector.wor kspace, WebInspector.breakpointManager, WebInspector.fileSystemMapping);
183
182 new WebInspector.OverlayController(); 184 new WebInspector.OverlayController();
183 new WebInspector.ExecutionContextSelector(WebInspector.targetManager, We bInspector.context); 185 new WebInspector.ExecutionContextSelector(WebInspector.targetManager, We bInspector.context);
184 WebInspector.blackboxManager = new WebInspector.BlackboxManager(WebInspe ctor.debuggerWorkspaceBinding, WebInspector.networkMapping); 186 WebInspector.blackboxManager = new WebInspector.BlackboxManager(WebInspe ctor.debuggerWorkspaceBinding, WebInspector.networkMapping);
185 187
186 var autoselectPanel = WebInspector.UIString("auto"); 188 var autoselectPanel = WebInspector.UIString("auto");
187 var openAnchorLocationSetting = WebInspector.settings.createSetting("ope nLinkHandler", autoselectPanel); 189 var openAnchorLocationSetting = WebInspector.settings.createSetting("ope nLinkHandler", autoselectPanel);
188 WebInspector.openAnchorLocationRegistry = new WebInspector.HandlerRegist ry(openAnchorLocationSetting); 190 WebInspector.openAnchorLocationRegistry = new WebInspector.HandlerRegist ry(openAnchorLocationSetting);
189 WebInspector.openAnchorLocationRegistry.registerHandler(autoselectPanel, function() { return false; }); 191 WebInspector.openAnchorLocationRegistry.registerHandler(autoselectPanel, function() { return false; });
190 WebInspector.Linkifier.setLinkHandler(new WebInspector.HandlerRegistry.L inkHandler()); 192 WebInspector.Linkifier.setLinkHandler(new WebInspector.HandlerRegistry.L inkHandler());
191 193
(...skipping 912 matching lines...) Expand 10 before | Expand all | Expand 10 after
1104 * @override 1106 * @override
1105 * @return {?Element} 1107 * @return {?Element}
1106 */ 1108 */
1107 settingElement: function() 1109 settingElement: function()
1108 { 1110 {
1109 return WebInspector.SettingsUI.createSettingCheckbox(WebInspector.UIStri ng("Show rulers"), WebInspector.moduleSetting("showMetricsRulers")); 1111 return WebInspector.SettingsUI.createSettingCheckbox(WebInspector.UIStri ng("Show rulers"), WebInspector.moduleSetting("showMetricsRulers"));
1110 } 1112 }
1111 } 1113 }
1112 1114
1113 new WebInspector.Main(); 1115 new WebInspector.Main();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698