| 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 475 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 486 this.domAgent.addEventListener(WebInspector.DOMAgent.Events.InspectNodeReque
sted, this._inspectNodeRequested, this); | 486 this.domAgent.addEventListener(WebInspector.DOMAgent.Events.InspectNodeReque
sted, this._inspectNodeRequested, this); |
| 487 this.runtimeModel = new WebInspector.RuntimeModel(this.resourceTreeModel); | 487 this.runtimeModel = new WebInspector.RuntimeModel(this.resourceTreeModel); |
| 488 | 488 |
| 489 this.consoleView = new WebInspector.ConsoleView(WebInspector.WorkerManager.i
sWorkerFrontend()); | 489 this.consoleView = new WebInspector.ConsoleView(WebInspector.WorkerManager.i
sWorkerFrontend()); |
| 490 | 490 |
| 491 InspectorBackend.registerInspectorDispatcher(this); | 491 InspectorBackend.registerInspectorDispatcher(this); |
| 492 | 492 |
| 493 this.isolatedFileSystemManager = new WebInspector.IsolatedFileSystemManager(
); | 493 this.isolatedFileSystemManager = new WebInspector.IsolatedFileSystemManager(
); |
| 494 this.isolatedFileSystemDispatcher = new WebInspector.IsolatedFileSystemDispa
tcher(this.isolatedFileSystemManager); | 494 this.isolatedFileSystemDispatcher = new WebInspector.IsolatedFileSystemDispa
tcher(this.isolatedFileSystemManager); |
| 495 this.workspace = new WebInspector.Workspace(this.isolatedFileSystemManager.m
apping()); | 495 this.workspace = new WebInspector.Workspace(this.isolatedFileSystemManager.m
apping()); |
| 496 this.jumpHistoryManager = new WebInspector.JumpHistoryManager(); |
| 496 | 497 |
| 497 this.cssModel = new WebInspector.CSSStyleModel(this.workspace); | 498 this.cssModel = new WebInspector.CSSStyleModel(this.workspace); |
| 498 this.timelineManager = new WebInspector.TimelineManager(); | 499 this.timelineManager = new WebInspector.TimelineManager(); |
| 499 this.tracingAgent = new WebInspector.TracingAgent(); | 500 this.tracingAgent = new WebInspector.TracingAgent(); |
| 500 this.overridesSupport = new WebInspector.OverridesSupport(); | 501 this.overridesSupport = new WebInspector.OverridesSupport(); |
| 501 | 502 |
| 502 this.searchController = new WebInspector.SearchController(); | 503 this.searchController = new WebInspector.SearchController(); |
| 503 this.advancedSearchController = new WebInspector.AdvancedSearchController(); | 504 this.advancedSearchController = new WebInspector.AdvancedSearchController(); |
| 504 if (!WebInspector.WorkerManager.isWorkerFrontend()) | 505 if (!WebInspector.WorkerManager.isWorkerFrontend()) |
| 505 this.inspectElementModeController = new WebInspector.InspectElementModeC
ontroller(); | 506 this.inspectElementModeController = new WebInspector.InspectElementModeC
ontroller(); |
| (...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 797 return; | 798 return; |
| 798 } | 799 } |
| 799 } | 800 } |
| 800 | 801 |
| 801 if (WebInspector.searchController.handleShortcut(event)) | 802 if (WebInspector.searchController.handleShortcut(event)) |
| 802 return; | 803 return; |
| 803 if (WebInspector.advancedSearchController.handleShortcut(event)) | 804 if (WebInspector.advancedSearchController.handleShortcut(event)) |
| 804 return; | 805 return; |
| 805 if (WebInspector.inspectElementModeController && WebInspector.inspectElement
ModeController.handleShortcut(event)) | 806 if (WebInspector.inspectElementModeController && WebInspector.inspectElement
ModeController.handleShortcut(event)) |
| 806 return; | 807 return; |
| 808 if (WebInspector.jumpHistoryManager.handleShortcut(event)) |
| 809 return; |
| 807 | 810 |
| 808 switch (event.keyIdentifier) { | 811 switch (event.keyIdentifier) { |
| 809 case "U+004F": // O key | 812 case "U+004F": // O key |
| 810 case "U+0050": // P key | 813 case "U+0050": // P key |
| 811 if (!event.shiftKey && !event.altKey && WebInspector.KeyboardShortcu
t.eventHasCtrlOrMeta(event)) { | 814 if (!event.shiftKey && !event.altKey && WebInspector.KeyboardShortcu
t.eventHasCtrlOrMeta(event)) { |
| 812 WebInspector.showPanel("scripts").showGoToSourceDialog(); | 815 WebInspector.showPanel("scripts").showGoToSourceDialog(); |
| 813 event.consume(true); | 816 event.consume(true); |
| 814 } | 817 } |
| 815 break; | 818 break; |
| 816 case "U+0052": // R key | 819 case "U+0052": // R key |
| (...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1134 | 1137 |
| 1135 /** | 1138 /** |
| 1136 * @return {string} | 1139 * @return {string} |
| 1137 */ | 1140 */ |
| 1138 WebInspector.getSelectionForegroundColor = function() | 1141 WebInspector.getSelectionForegroundColor = function() |
| 1139 { | 1142 { |
| 1140 return InspectorFrontendHost.getSelectionForegroundColor(); | 1143 return InspectorFrontendHost.getSelectionForegroundColor(); |
| 1141 } | 1144 } |
| 1142 | 1145 |
| 1143 window.DEBUG = true; | 1146 window.DEBUG = true; |
| OLD | NEW |