Chromium Code Reviews| 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 356 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 367 | 367 |
| 368 WebInspector.extensionServerProxy.setFrontendReady(); | 368 WebInspector.extensionServerProxy.setFrontendReady(); |
| 369 | 369 |
| 370 InspectorAgent.enable(inspectorAgentEnableCallback); | 370 InspectorAgent.enable(inspectorAgentEnableCallback); |
| 371 | 371 |
| 372 function inspectorAgentEnableCallback() | 372 function inspectorAgentEnableCallback() |
| 373 { | 373 { |
| 374 console.timeStamp("Main.inspectorAgentEnableCallback"); | 374 console.timeStamp("Main.inspectorAgentEnableCallback"); |
| 375 WebInspector.app.presentUI(mainTarget); | 375 WebInspector.app.presentUI(mainTarget); |
| 376 console.timeStamp("Main.inspectorAgentEnableCallbackPresentUI"); | 376 console.timeStamp("Main.inspectorAgentEnableCallbackPresentUI"); |
| 377 WebInspector.notifications.dispatchEventToListeners(WebInspector.Not ificationService.Events.InspectorLoadedForTests); | |
| 377 } | 378 } |
| 378 | 379 |
| 379 WebInspector.actionRegistry = new WebInspector.ActionRegistry(); | 380 WebInspector.actionRegistry = new WebInspector.ActionRegistry(); |
| 380 WebInspector.shortcutRegistry = new WebInspector.ShortcutRegistry(WebIns pector.actionRegistry); | 381 WebInspector.shortcutRegistry = new WebInspector.ShortcutRegistry(WebIns pector.actionRegistry); |
| 381 WebInspector.ShortcutsScreen.registerShortcuts(); | 382 WebInspector.ShortcutsScreen.registerShortcuts(); |
| 382 this._registerForwardedShortcuts(); | 383 this._registerForwardedShortcuts(); |
| 383 this._registerMessageSinkListener(); | 384 this._registerMessageSinkListener(); |
| 384 | 385 |
| 385 this._loadCompletedForWorkers(); | 386 this._loadCompletedForWorkers(); |
| 386 InspectorFrontendAPI.loadCompleted(); | 387 InspectorFrontendAPI.loadCompleted(); |
| 387 WebInspector.notifications.dispatchEventToListeners(WebInspector.Notific ationService.Events.InspectorLoaded); | |
|
vsevik
2014/07/29 08:42:15
Could this be used by some third party clients?
dgozman
2014/07/29 08:51:47
This notification was added in http://src.chromium
| |
| 388 }, | 388 }, |
| 389 | 389 |
| 390 _registerForwardedShortcuts: function() | 390 _registerForwardedShortcuts: function() |
| 391 { | 391 { |
| 392 /** @const */ var forwardedActions = ["main.reload", "main.hard-reload"] ; | 392 /** @const */ var forwardedActions = ["main.reload", "main.hard-reload"] ; |
| 393 var actionKeys = WebInspector.shortcutRegistry.keysForActions(forwardedA ctions).map(WebInspector.KeyboardShortcut.keyCodeAndModifiersFromKey); | 393 var actionKeys = WebInspector.shortcutRegistry.keysForActions(forwardedA ctions).map(WebInspector.KeyboardShortcut.keyCodeAndModifiersFromKey); |
| 394 | 394 |
| 395 actionKeys.push({keyCode: WebInspector.KeyboardShortcut.Keys.F8.code}); | 395 actionKeys.push({keyCode: WebInspector.KeyboardShortcut.Keys.F8.code}); |
| 396 InspectorFrontendHost.setWhitelistedShortcuts(JSON.stringify(actionKeys) ); | 396 InspectorFrontendHost.setWhitelistedShortcuts(JSON.stringify(actionKeys) ); |
| 397 }, | 397 }, |
| (...skipping 500 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 898 | 898 |
| 899 WebInspector.Main.InspectedNodeRevealer.prototype = { | 899 WebInspector.Main.InspectedNodeRevealer.prototype = { |
| 900 /** | 900 /** |
| 901 * @param {!WebInspector.Event} event | 901 * @param {!WebInspector.Event} event |
| 902 */ | 902 */ |
| 903 _inspectNode: function(event) | 903 _inspectNode: function(event) |
| 904 { | 904 { |
| 905 WebInspector.Revealer.reveal(/** @type {!WebInspector.DOMNode} */ (event .data)); | 905 WebInspector.Revealer.reveal(/** @type {!WebInspector.DOMNode} */ (event .data)); |
| 906 } | 906 } |
| 907 } | 907 } |
| OLD | NEW |