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

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

Issue 2516253002: [DevTools] Remove HandlerRegistry. (Closed)
Patch Set: rebase, fixed comments Created 4 years 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 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 197
198 var fileSystemWorkspaceBinding = 198 var fileSystemWorkspaceBinding =
199 new Persistence.FileSystemWorkspaceBinding(Workspace.isolatedFileSystemM anager, Workspace.workspace); 199 new Persistence.FileSystemWorkspaceBinding(Workspace.isolatedFileSystemM anager, Workspace.workspace);
200 Persistence.persistence = 200 Persistence.persistence =
201 new Persistence.Persistence(Workspace.workspace, Bindings.breakpointMana ger, Workspace.fileSystemMapping); 201 new Persistence.Persistence(Workspace.workspace, Bindings.breakpointMana ger, Workspace.fileSystemMapping);
202 202
203 new Main.OverlayController(); 203 new Main.OverlayController();
204 new Components.ExecutionContextSelector(SDK.targetManager, UI.context); 204 new Components.ExecutionContextSelector(SDK.targetManager, UI.context);
205 Bindings.blackboxManager = new Bindings.BlackboxManager(Bindings.debuggerWor kspaceBinding); 205 Bindings.blackboxManager = new Bindings.BlackboxManager(Bindings.debuggerWor kspaceBinding);
206 206
207 var autoselectPanel = Common.UIString('auto');
208 var openAnchorLocationSetting = Common.settings.createSetting('openLinkHandl er', autoselectPanel);
209 Components.openAnchorLocationRegistry = new Components.HandlerRegistry(openA nchorLocationSetting);
210 Components.openAnchorLocationRegistry.registerHandler(autoselectPanel, funct ion() {
211 return false;
212 });
213 Components.Linkifier.setLinkHandler(new Components.HandlerRegistry.LinkHandl er());
214
215 new Main.Main.PauseListener(); 207 new Main.Main.PauseListener();
216 new Main.Main.InspectedNodeRevealer(); 208 new Main.Main.InspectedNodeRevealer();
217 new Main.NetworkPanelIndicator(); 209 new Main.NetworkPanelIndicator();
218 new Main.SourcesPanelIndicator(); 210 new Main.SourcesPanelIndicator();
219 new Main.BackendSettingsSync(); 211 new Main.BackendSettingsSync();
220 Components.domBreakpointsSidebarPane = new Components.DOMBreakpointsSidebarP ane(); 212 Components.domBreakpointsSidebarPane = new Components.DOMBreakpointsSidebarP ane();
221 213
222 UI.actionRegistry = new UI.ActionRegistry(); 214 UI.actionRegistry = new UI.ActionRegistry();
223 UI.shortcutRegistry = new UI.ShortcutRegistry(UI.actionRegistry, document); 215 UI.shortcutRegistry = new UI.ShortcutRegistry(UI.actionRegistry, document);
224 Components.ShortcutsScreen.registerShortcuts(); 216 Components.ShortcutsScreen.registerShortcuts();
(...skipping 778 matching lines...) Expand 10 before | Expand all | Expand 10 after
1003 * @override 995 * @override
1004 * @return {?Element} 996 * @return {?Element}
1005 */ 997 */
1006 settingElement() { 998 settingElement() {
1007 return UI.SettingsUI.createSettingCheckbox( 999 return UI.SettingsUI.createSettingCheckbox(
1008 Common.UIString('Show rulers'), Common.moduleSetting('showMetricsRulers' )); 1000 Common.UIString('Show rulers'), Common.moduleSetting('showMetricsRulers' ));
1009 } 1001 }
1010 }; 1002 };
1011 1003
1012 new Main.Main(); 1004 new Main.Main();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698