OLD | NEW |
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 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
301 | 301 |
302 WebInspector.dockController.initialize(); | 302 WebInspector.dockController.initialize(); |
303 | 303 |
304 new WebInspector.VersionController().updateVersion(); | 304 new WebInspector.VersionController().updateVersion(); |
305 WebInspector.shortcutsScreen = new WebInspector.ShortcutsScreen(); | 305 WebInspector.shortcutsScreen = new WebInspector.ShortcutsScreen(); |
306 this._registerShortcuts(); | 306 this._registerShortcuts(); |
307 | 307 |
308 // set order of some sections explicitly | 308 // set order of some sections explicitly |
309 WebInspector.shortcutsScreen.section(WebInspector.UIString("Console")); | 309 WebInspector.shortcutsScreen.section(WebInspector.UIString("Console")); |
310 WebInspector.shortcutsScreen.section(WebInspector.UIString("Elements Pan
el")); | 310 WebInspector.shortcutsScreen.section(WebInspector.UIString("Elements Pan
el")); |
311 WebInspector.ShortcutsScreen.registerShortcuts(); | |
312 | 311 |
313 if (WebInspector.experimentsSettings.workersInMainWindow.isEnabled()) | 312 if (WebInspector.experimentsSettings.workersInMainWindow.isEnabled()) |
314 WebInspector.workerTargetManager = new WebInspector.WorkerTargetMana
ger(mainTarget, WebInspector.targetManager); | 313 WebInspector.workerTargetManager = new WebInspector.WorkerTargetMana
ger(mainTarget, WebInspector.targetManager); |
315 | 314 |
316 WebInspector.console.addEventListener(WebInspector.ConsoleModel.Events.C
onsoleCleared, this._resetErrorAndWarningCounts, this); | 315 WebInspector.console.addEventListener(WebInspector.ConsoleModel.Events.C
onsoleCleared, this._resetErrorAndWarningCounts, this); |
317 WebInspector.console.addEventListener(WebInspector.ConsoleModel.Events.M
essageAdded, this._updateErrorAndWarningCounts, this); | 316 WebInspector.console.addEventListener(WebInspector.ConsoleModel.Events.M
essageAdded, this._updateErrorAndWarningCounts, this); |
318 | 317 |
319 WebInspector.debuggerModel.addEventListener(WebInspector.DebuggerModel.E
vents.DebuggerPaused, this._debuggerPaused, this); | 318 WebInspector.debuggerModel.addEventListener(WebInspector.DebuggerModel.E
vents.DebuggerPaused, this._debuggerPaused, this); |
320 | 319 |
321 WebInspector.inspectorFrontendEventSink = new WebInspector.InspectorFron
tendEventSink(); | 320 WebInspector.inspectorFrontendEventSink = new WebInspector.InspectorFron
tendEventSink(); |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
359 new WebInspector.CSSStyleSheetMapping(WebInspector.cssModel, WebInspecto
r.workspace, WebInspector.networkWorkspaceBinding); | 358 new WebInspector.CSSStyleSheetMapping(WebInspector.cssModel, WebInspecto
r.workspace, WebInspector.networkWorkspaceBinding); |
360 | 359 |
361 // Create settings before loading modules. | 360 // Create settings before loading modules. |
362 WebInspector.settings.initializeBackendSettings(); | 361 WebInspector.settings.initializeBackendSettings(); |
363 | 362 |
364 this._registerModules(); | 363 this._registerModules(); |
365 WebInspector.actionRegistry = new WebInspector.ActionRegistry(); | 364 WebInspector.actionRegistry = new WebInspector.ActionRegistry(); |
366 WebInspector.shortcutRegistry = new WebInspector.ShortcutRegistry(WebIns
pector.actionRegistry); | 365 WebInspector.shortcutRegistry = new WebInspector.ShortcutRegistry(WebIns
pector.actionRegistry); |
367 this._registerForwardedShortcuts(); | 366 this._registerForwardedShortcuts(); |
368 this._registerMessageSinkListener(); | 367 this._registerMessageSinkListener(); |
| 368 WebInspector.ShortcutsScreen.registerShortcuts(); |
369 | 369 |
370 WebInspector.zoomManager = new WebInspector.ZoomManager(); | 370 WebInspector.zoomManager = new WebInspector.ZoomManager(); |
371 WebInspector.inspectorView = new WebInspector.InspectorView(); | 371 WebInspector.inspectorView = new WebInspector.InspectorView(); |
372 WebInspector.app.createRootView(); | 372 WebInspector.app.createRootView(); |
373 this._createGlobalStatusBarItems(); | 373 this._createGlobalStatusBarItems(); |
374 | 374 |
375 this._addMainEventListeners(document); | 375 this._addMainEventListeners(document); |
376 | 376 |
377 var errorWarningCount = document.getElementById("error-warning-count"); | 377 var errorWarningCount = document.getElementById("error-warning-count"); |
378 | 378 |
(...skipping 449 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
828 }); | 828 }); |
829 | 829 |
830 /** | 830 /** |
831 * @param {string} name | 831 * @param {string} name |
832 * @return {?WebInspector.Panel} | 832 * @return {?WebInspector.Panel} |
833 */ | 833 */ |
834 WebInspector.panel = function(name) | 834 WebInspector.panel = function(name) |
835 { | 835 { |
836 return WebInspector.inspectorView.panel(name); | 836 return WebInspector.inspectorView.panel(name); |
837 } | 837 } |
OLD | NEW |