| 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 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 239 if (WebInspector.queryParam("toolbarColor") && WebInspector.queryParam("
textColor")) | 239 if (WebInspector.queryParam("toolbarColor") && WebInspector.queryParam("
textColor")) |
| 240 WebInspector.setToolbarColors(WebInspector.queryParam("toolbarColor"
), WebInspector.queryParam("textColor")); | 240 WebInspector.setToolbarColors(WebInspector.queryParam("toolbarColor"
), WebInspector.queryParam("textColor")); |
| 241 | 241 |
| 242 WebInspector.targetManager = new WebInspector.TargetManager(); | 242 WebInspector.targetManager = new WebInspector.TargetManager(); |
| 243 WebInspector.targetManager.createTarget(connection, this._doLoadedDoneWi
thCapabilities.bind(this)); | 243 WebInspector.targetManager.createTarget(connection, this._doLoadedDoneWi
thCapabilities.bind(this)); |
| 244 }, | 244 }, |
| 245 | 245 |
| 246 _doLoadedDoneWithCapabilities: function(mainTarget) | 246 _doLoadedDoneWithCapabilities: function(mainTarget) |
| 247 { | 247 { |
| 248 new WebInspector.VersionController().updateVersion(); | 248 new WebInspector.VersionController().updateVersion(); |
| 249 InspectorFrontendHost.setWhitelistedShortcuts(JSON.stringify([{keyCode:
WebInspector.KeyboardShortcut.Keys.F8.code}])); |
| 249 WebInspector.shortcutsScreen = new WebInspector.ShortcutsScreen(); | 250 WebInspector.shortcutsScreen = new WebInspector.ShortcutsScreen(); |
| 250 this._registerShortcuts(); | 251 this._registerShortcuts(); |
| 251 | 252 |
| 252 // set order of some sections explicitly | 253 // set order of some sections explicitly |
| 253 WebInspector.shortcutsScreen.section(WebInspector.UIString("Console")); | 254 WebInspector.shortcutsScreen.section(WebInspector.UIString("Console")); |
| 254 WebInspector.shortcutsScreen.section(WebInspector.UIString("Elements Pan
el")); | 255 WebInspector.shortcutsScreen.section(WebInspector.UIString("Elements Pan
el")); |
| 255 WebInspector.ShortcutsScreen.registerShortcuts(); | 256 WebInspector.ShortcutsScreen.registerShortcuts(); |
| 256 | 257 |
| 257 if (WebInspector.experimentsSettings.workersInMainWindow.isEnabled()) | 258 if (WebInspector.experimentsSettings.workersInMainWindow.isEnabled()) |
| 258 new WebInspector.WorkerTargetManager(mainTarget, WebInspector.target
Manager); | 259 new WebInspector.WorkerTargetManager(mainTarget, WebInspector.target
Manager); |
| (...skipping 505 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 764 | 765 |
| 765 WebInspector.__defineGetter__("inspectedPageURL", function() | 766 WebInspector.__defineGetter__("inspectedPageURL", function() |
| 766 { | 767 { |
| 767 return WebInspector.resourceTreeModel.inspectedPageURL(); | 768 return WebInspector.resourceTreeModel.inspectedPageURL(); |
| 768 }); | 769 }); |
| 769 | 770 |
| 770 WebInspector.panel = function(name) | 771 WebInspector.panel = function(name) |
| 771 { | 772 { |
| 772 return WebInspector.inspectorView.panel(name); | 773 return WebInspector.inspectorView.panel(name); |
| 773 } | 774 } |
| OLD | NEW |