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

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

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

Powered by Google App Engine
This is Rietveld 408576698