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

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

Issue 2191183003: DevTools: extract model from DOMBreakpointsSidebarPane (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address CL feedback from PS6 Created 4 years, 4 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 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 var openAnchorLocationSetting = WebInspector.settings.createSetting("ope nLinkHandler", autoselectPanel); 185 var openAnchorLocationSetting = WebInspector.settings.createSetting("ope nLinkHandler", autoselectPanel);
186 WebInspector.openAnchorLocationRegistry = new WebInspector.HandlerRegist ry(openAnchorLocationSetting); 186 WebInspector.openAnchorLocationRegistry = new WebInspector.HandlerRegist ry(openAnchorLocationSetting);
187 WebInspector.openAnchorLocationRegistry.registerHandler(autoselectPanel, function() { return false; }); 187 WebInspector.openAnchorLocationRegistry.registerHandler(autoselectPanel, function() { return false; });
188 WebInspector.Linkifier.setLinkHandler(new WebInspector.HandlerRegistry.L inkHandler()); 188 WebInspector.Linkifier.setLinkHandler(new WebInspector.HandlerRegistry.L inkHandler());
189 189
190 new WebInspector.Main.PauseListener(); 190 new WebInspector.Main.PauseListener();
191 new WebInspector.Main.InspectedNodeRevealer(); 191 new WebInspector.Main.InspectedNodeRevealer();
192 new WebInspector.NetworkPanelIndicator(); 192 new WebInspector.NetworkPanelIndicator();
193 new WebInspector.SourcesPanelIndicator(); 193 new WebInspector.SourcesPanelIndicator();
194 new WebInspector.BackendSettingsSync(); 194 new WebInspector.BackendSettingsSync();
195 WebInspector.domBreakpointsSidebarPane = new WebInspector.DOMBreakpoints SidebarPane(); 195
196 WebInspector.domBreakpointManager = new WebInspector.DOMBreakpointManage r();
196 197
197 WebInspector.actionRegistry = new WebInspector.ActionRegistry(); 198 WebInspector.actionRegistry = new WebInspector.ActionRegistry();
198 WebInspector.shortcutRegistry = new WebInspector.ShortcutRegistry(WebIns pector.actionRegistry, document); 199 WebInspector.shortcutRegistry = new WebInspector.ShortcutRegistry(WebIns pector.actionRegistry, document);
199 WebInspector.ShortcutsScreen.registerShortcuts(); 200 WebInspector.ShortcutsScreen.registerShortcuts();
200 this._registerForwardedShortcuts(); 201 this._registerForwardedShortcuts();
201 this._registerMessageSinkListener(); 202 this._registerMessageSinkListener();
202 203
203 self.runtime.extension(WebInspector.AppProvider).instance().then(this._s howAppUI.bind(this)); 204 self.runtime.extension(WebInspector.AppProvider).instance().then(this._s howAppUI.bind(this));
204 }, 205 },
205 206
(...skipping 886 matching lines...) Expand 10 before | Expand all | Expand 10 after
1092 * @override 1093 * @override
1093 * @return {?Element} 1094 * @return {?Element}
1094 */ 1095 */
1095 settingElement: function() 1096 settingElement: function()
1096 { 1097 {
1097 return WebInspector.SettingsUI.createSettingCheckbox(WebInspector.UIStri ng("Show rulers"), WebInspector.moduleSetting("showMetricsRulers")); 1098 return WebInspector.SettingsUI.createSettingCheckbox(WebInspector.UIStri ng("Show rulers"), WebInspector.moduleSetting("showMetricsRulers"));
1098 } 1099 }
1099 } 1100 }
1100 1101
1101 new WebInspector.Main(); 1102 new WebInspector.Main();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698