| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. |
| 3 * Copyright (C) 2011 Google Inc. All rights reserved. | 3 * Copyright (C) 2011 Google Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 this.sidebarPanes.scopechain.expanded = true; | 131 this.sidebarPanes.scopechain.expanded = true; |
| 132 this.sidebarPanes.jsBreakpoints.expanded = true; | 132 this.sidebarPanes.jsBreakpoints.expanded = true; |
| 133 | 133 |
| 134 var helpSection = WebInspector.shortcutsScreen.section(WebInspector.UIString
("Scripts Panel")); | 134 var helpSection = WebInspector.shortcutsScreen.section(WebInspector.UIString
("Scripts Panel")); |
| 135 this.sidebarPanes.callstack.registerShortcuts(helpSection, this.registerShor
tcut.bind(this)); | 135 this.sidebarPanes.callstack.registerShortcuts(helpSection, this.registerShor
tcut.bind(this)); |
| 136 var evaluateInConsoleShortcut = WebInspector.KeyboardShortcut.makeDescriptor
("e", WebInspector.KeyboardShortcut.Modifiers.Shift | WebInspector.KeyboardShort
cut.Modifiers.Ctrl); | 136 var evaluateInConsoleShortcut = WebInspector.KeyboardShortcut.makeDescriptor
("e", WebInspector.KeyboardShortcut.Modifiers.Shift | WebInspector.KeyboardShort
cut.Modifiers.Ctrl); |
| 137 helpSection.addKey(evaluateInConsoleShortcut.name, WebInspector.UIString("Ev
aluate selection in console")); | 137 helpSection.addKey(evaluateInConsoleShortcut.name, WebInspector.UIString("Ev
aluate selection in console")); |
| 138 this.registerShortcut(evaluateInConsoleShortcut.key, this._evaluateSelection
InConsole.bind(this)); | 138 this.registerShortcut(evaluateInConsoleShortcut.key, this._evaluateSelection
InConsole.bind(this)); |
| 139 | 139 |
| 140 var openResourceShortcut = WebInspector.OpenResourceDialog.createShortcut(); | 140 var openResourceShortcut = WebInspector.OpenResourceDialog.createShortcut(); |
| 141 helpSection.addKey(openResourceShortcut.name, WebInspector.UIString("Open Sc
ript")); | 141 helpSection.addKey(openResourceShortcut.name, WebInspector.UIString("Open sc
ript")); |
| 142 | 142 |
| 143 var scriptOutlineShortcut = WebInspector.JavaScriptOutlineDialog.createShort
cut(); | 143 var scriptOutlineShortcut = WebInspector.JavaScriptOutlineDialog.createShort
cut(); |
| 144 helpSection.addKey(scriptOutlineShortcut.name, WebInspector.UIString("Go to
Function")); | 144 helpSection.addKey(scriptOutlineShortcut.name, WebInspector.UIString("Go to
function")); |
| 145 | 145 |
| 146 var panelEnablerHeading = WebInspector.UIString("You need to enable debuggin
g before you can use the Scripts panel."); | 146 var panelEnablerHeading = WebInspector.UIString("You need to enable debuggin
g before you can use the Scripts panel."); |
| 147 var panelEnablerDisclaimer = WebInspector.UIString("Enabling debugging will
make scripts run slower."); | 147 var panelEnablerDisclaimer = WebInspector.UIString("Enabling debugging will
make scripts run slower."); |
| 148 var panelEnablerButton = WebInspector.UIString("Enable Debugging"); | 148 var panelEnablerButton = WebInspector.UIString("Enable Debugging"); |
| 149 | 149 |
| 150 this.panelEnablerView = new WebInspector.PanelEnablerView("scripts", panelEn
ablerHeading, panelEnablerDisclaimer, panelEnablerButton); | 150 this.panelEnablerView = new WebInspector.PanelEnablerView("scripts", panelEn
ablerHeading, panelEnablerDisclaimer, panelEnablerButton); |
| 151 this.panelEnablerView.addEventListener("enable clicked", this.enableDebuggin
g, this); | 151 this.panelEnablerView.addEventListener("enable clicked", this.enableDebuggin
g, this); |
| 152 | 152 |
| 153 this.enableToggleButton = new WebInspector.StatusBarButton("", "enable-toggl
e-status-bar-item"); | 153 this.enableToggleButton = new WebInspector.StatusBarButton("", "enable-toggl
e-status-bar-item"); |
| 154 this.enableToggleButton.addEventListener("click", this.toggleDebugging, this
); | 154 this.enableToggleButton.addEventListener("click", this.toggleDebugging, this
); |
| (...skipping 1596 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1751 if (this._currentSourceFrame) | 1751 if (this._currentSourceFrame) |
| 1752 this._currentSourceFrame.detach(); | 1752 this._currentSourceFrame.detach(); |
| 1753 this._currentSourceFrame = null; | 1753 this._currentSourceFrame = null; |
| 1754 this._currentFile = null; | 1754 this._currentFile = null; |
| 1755 delete this._initialViewSelectionProcessed; | 1755 delete this._initialViewSelectionProcessed; |
| 1756 delete this._userSelectedFiles; | 1756 delete this._userSelectedFiles; |
| 1757 } | 1757 } |
| 1758 } | 1758 } |
| 1759 | 1759 |
| 1760 WebInspector.ScriptsPanel.SingleFileEditorContainer.prototype.__proto__ = WebIns
pector.Object.prototype; | 1760 WebInspector.ScriptsPanel.SingleFileEditorContainer.prototype.__proto__ = WebIns
pector.Object.prototype; |
| OLD | NEW |