| 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 333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 344 { | 344 { |
| 345 console.timeStamp("Main.inspectorAgentEnableCallback"); | 345 console.timeStamp("Main.inspectorAgentEnableCallback"); |
| 346 WebInspector.notifications.dispatchEventToListeners(WebInspector.Not
ificationService.Events.InspectorAgentEnabledForTests); | 346 WebInspector.notifications.dispatchEventToListeners(WebInspector.Not
ificationService.Events.InspectorAgentEnabledForTests); |
| 347 // Asynchronously run the extensions. | 347 // Asynchronously run the extensions. |
| 348 setTimeout(function() { WebInspector.extensionServer.initializeExten
sions(); }, 0); | 348 setTimeout(function() { WebInspector.extensionServer.initializeExten
sions(); }, 0); |
| 349 } | 349 } |
| 350 }, | 350 }, |
| 351 | 351 |
| 352 _registerForwardedShortcuts: function() | 352 _registerForwardedShortcuts: function() |
| 353 { | 353 { |
| 354 /** @const */ var forwardedActions = ["main.reload", "main.hard-reload",
"main.toggle-dock", "debugger.toggle-breakpoints-active"]; | 354 /** @const */ var forwardedActions = ["main.reload", "main.hard-reload",
"main.toggle-dock", "debugger.toggle-breakpoints-active", "debugger.toggle-paus
e"]; |
| 355 var actionKeys = WebInspector.shortcutRegistry.keysForActions(forwardedA
ctions).map(WebInspector.KeyboardShortcut.keyCodeAndModifiersFromKey); | 355 var actionKeys = WebInspector.shortcutRegistry.keysForActions(forwardedA
ctions).map(WebInspector.KeyboardShortcut.keyCodeAndModifiersFromKey); |
| 356 | 356 |
| 357 actionKeys.push({keyCode: WebInspector.KeyboardShortcut.Keys.F8.code}); | 357 actionKeys.push({keyCode: WebInspector.KeyboardShortcut.Keys.F8.code}); |
| 358 InspectorFrontendHost.setWhitelistedShortcuts(JSON.stringify(actionKeys)
); | 358 InspectorFrontendHost.setWhitelistedShortcuts(JSON.stringify(actionKeys)
); |
| 359 }, | 359 }, |
| 360 | 360 |
| 361 _registerMessageSinkListener: function() | 361 _registerMessageSinkListener: function() |
| 362 { | 362 { |
| 363 WebInspector.console.addEventListener(WebInspector.Console.Events.Messag
eAdded, messageAdded); | 363 WebInspector.console.addEventListener(WebInspector.Console.Events.Messag
eAdded, messageAdded); |
| 364 | 364 |
| (...skipping 568 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 933 p.classList.add("help-section"); | 933 p.classList.add("help-section"); |
| 934 p.textContent = WebInspector.UIString("Inspected worker has terminated. Once
it restarts we will attach to it automatically."); | 934 p.textContent = WebInspector.UIString("Inspected worker has terminated. Once
it restarts we will attach to it automatically."); |
| 935 } | 935 } |
| 936 | 936 |
| 937 WebInspector.WorkerTerminatedScreen.prototype = { | 937 WebInspector.WorkerTerminatedScreen.prototype = { |
| 938 | 938 |
| 939 __proto__: WebInspector.HelpScreen.prototype | 939 __proto__: WebInspector.HelpScreen.prototype |
| 940 } | 940 } |
| 941 | 941 |
| 942 new WebInspector.Main(); | 942 new WebInspector.Main(); |
| OLD | NEW |