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

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

Issue 2255983002: DevTools: refactor and fix bugs for DOMBreakpointsSidebarPane (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address CL feedback Created 4 years, 3 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
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/elements/ElementsPanel.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 var openAnchorLocationSetting = WebInspector.settings.createSetting("ope nLinkHandler", autoselectPanel); 184 var openAnchorLocationSetting = WebInspector.settings.createSetting("ope nLinkHandler", autoselectPanel);
185 WebInspector.openAnchorLocationRegistry = new WebInspector.HandlerRegist ry(openAnchorLocationSetting); 185 WebInspector.openAnchorLocationRegistry = new WebInspector.HandlerRegist ry(openAnchorLocationSetting);
186 WebInspector.openAnchorLocationRegistry.registerHandler(autoselectPanel, function() { return false; }); 186 WebInspector.openAnchorLocationRegistry.registerHandler(autoselectPanel, function() { return false; });
187 WebInspector.Linkifier.setLinkHandler(new WebInspector.HandlerRegistry.L inkHandler()); 187 WebInspector.Linkifier.setLinkHandler(new WebInspector.HandlerRegistry.L inkHandler());
188 188
189 new WebInspector.Main.PauseListener(); 189 new WebInspector.Main.PauseListener();
190 new WebInspector.Main.InspectedNodeRevealer(); 190 new WebInspector.Main.InspectedNodeRevealer();
191 new WebInspector.NetworkPanelIndicator(); 191 new WebInspector.NetworkPanelIndicator();
192 new WebInspector.SourcesPanelIndicator(); 192 new WebInspector.SourcesPanelIndicator();
193 new WebInspector.BackendSettingsSync(); 193 new WebInspector.BackendSettingsSync();
194 WebInspector.domBreakpointManager = new WebInspector.DOMBreakpointManage r();
194 WebInspector.domBreakpointsSidebarPane = new WebInspector.DOMBreakpoints SidebarPane(); 195 WebInspector.domBreakpointsSidebarPane = new WebInspector.DOMBreakpoints SidebarPane();
195 196
196 WebInspector.actionRegistry = new WebInspector.ActionRegistry(); 197 WebInspector.actionRegistry = new WebInspector.ActionRegistry();
197 WebInspector.shortcutRegistry = new WebInspector.ShortcutRegistry(WebIns pector.actionRegistry, document); 198 WebInspector.shortcutRegistry = new WebInspector.ShortcutRegistry(WebIns pector.actionRegistry, document);
198 WebInspector.ShortcutsScreen.registerShortcuts(); 199 WebInspector.ShortcutsScreen.registerShortcuts();
199 this._registerForwardedShortcuts(); 200 this._registerForwardedShortcuts();
200 this._registerMessageSinkListener(); 201 this._registerMessageSinkListener();
201 202
202 self.runtime.extension(WebInspector.AppProvider).instance().then(this._s howAppUI.bind(this)); 203 self.runtime.extension(WebInspector.AppProvider).instance().then(this._s howAppUI.bind(this));
203 }, 204 },
(...skipping 887 matching lines...) Expand 10 before | Expand all | Expand 10 after
1091 * @override 1092 * @override
1092 * @return {?Element} 1093 * @return {?Element}
1093 */ 1094 */
1094 settingElement: function() 1095 settingElement: function()
1095 { 1096 {
1096 return WebInspector.SettingsUI.createSettingCheckbox(WebInspector.UIStri ng("Show rulers"), WebInspector.moduleSetting("showMetricsRulers")); 1097 return WebInspector.SettingsUI.createSettingCheckbox(WebInspector.UIStri ng("Show rulers"), WebInspector.moduleSetting("showMetricsRulers"));
1097 } 1098 }
1098 } 1099 }
1099 1100
1100 new WebInspector.Main(); 1101 new WebInspector.Main();
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/elements/ElementsPanel.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698