Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(208)

Side by Side Diff: Source/devtools/front_end/SourcesPanel.js

Issue 23484056: [DevTools] Renaming Scripts panel to Sources panel (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Modified missed files Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 16 matching lines...) Expand all
27 importScript("BreakpointsSidebarPane.js"); 27 importScript("BreakpointsSidebarPane.js");
28 importScript("CallStackSidebarPane.js"); 28 importScript("CallStackSidebarPane.js");
29 importScript("FilePathScoreFunction.js"); 29 importScript("FilePathScoreFunction.js");
30 importScript("FilteredItemSelectionDialog.js"); 30 importScript("FilteredItemSelectionDialog.js");
31 importScript("UISourceCodeFrame.js"); 31 importScript("UISourceCodeFrame.js");
32 importScript("JavaScriptSourceFrame.js"); 32 importScript("JavaScriptSourceFrame.js");
33 importScript("NavigatorOverlayController.js"); 33 importScript("NavigatorOverlayController.js");
34 importScript("NavigatorView.js"); 34 importScript("NavigatorView.js");
35 importScript("RevisionHistoryView.js"); 35 importScript("RevisionHistoryView.js");
36 importScript("ScopeChainSidebarPane.js"); 36 importScript("ScopeChainSidebarPane.js");
37 importScript("ScriptsNavigator.js"); 37 importScript("SourcesNavigator.js");
38 importScript("ScriptsSearchScope.js"); 38 importScript("SourcesSearchScope.js");
39 importScript("StyleSheetOutlineDialog.js"); 39 importScript("StyleSheetOutlineDialog.js");
40 importScript("TabbedEditorContainer.js"); 40 importScript("TabbedEditorContainer.js");
41 importScript("WatchExpressionsSidebarPane.js"); 41 importScript("WatchExpressionsSidebarPane.js");
42 importScript("WorkersSidebarPane.js"); 42 importScript("WorkersSidebarPane.js");
43 43
44 /** 44 /**
45 * @constructor 45 * @constructor
46 * @implements {WebInspector.TabbedEditorContainerDelegate} 46 * @implements {WebInspector.TabbedEditorContainerDelegate}
47 * @implements {WebInspector.ContextMenu.Provider} 47 * @implements {WebInspector.ContextMenu.Provider}
48 * @extends {WebInspector.Panel} 48 * @extends {WebInspector.Panel}
49 * @param {WebInspector.Workspace=} workspaceForTest 49 * @param {WebInspector.Workspace=} workspaceForTest
50 */ 50 */
51 WebInspector.ScriptsPanel = function(workspaceForTest) 51 WebInspector.SourcesPanel = function(workspaceForTest)
52 { 52 {
53 WebInspector.Panel.call(this, "scripts"); 53 WebInspector.Panel.call(this, "sources");
54 this.registerRequiredCSS("scriptsPanel.css"); 54 this.registerRequiredCSS("sourcesPanel.css");
55 this.registerRequiredCSS("textPrompt.css"); // Watch Expressions autocomplet e. 55 this.registerRequiredCSS("textPrompt.css"); // Watch Expressions autocomplet e.
56 56
57 WebInspector.settings.navigatorWasOnceHidden = WebInspector.settings.createS etting("navigatorWasOnceHidden", false); 57 WebInspector.settings.navigatorWasOnceHidden = WebInspector.settings.createS etting("navigatorWasOnceHidden", false);
58 WebInspector.settings.debuggerSidebarHidden = WebInspector.settings.createSe tting("debuggerSidebarHidden", false); 58 WebInspector.settings.debuggerSidebarHidden = WebInspector.settings.createSe tting("debuggerSidebarHidden", false);
59 59
60 this._workspace = workspaceForTest || WebInspector.workspace; 60 this._workspace = workspaceForTest || WebInspector.workspace;
61 61
62 function viewGetter() 62 function viewGetter()
63 { 63 {
64 return this.visibleView; 64 return this.visibleView;
(...skipping 13 matching lines...) Expand all
78 // Create scripts navigator 78 // Create scripts navigator
79 const initialNavigatorWidth = 225; 79 const initialNavigatorWidth = 225;
80 const minimumViewsContainerWidthPercent = 0.5; 80 const minimumViewsContainerWidthPercent = 0.5;
81 this.editorView = new WebInspector.SidebarView(WebInspector.SidebarView.Side barPosition.Start, "scriptsPanelNavigatorSidebarWidth", initialNavigatorWidth); 81 this.editorView = new WebInspector.SidebarView(WebInspector.SidebarView.Side barPosition.Start, "scriptsPanelNavigatorSidebarWidth", initialNavigatorWidth);
82 this.editorView.element.tabIndex = 0; 82 this.editorView.element.tabIndex = 0;
83 83
84 this.editorView.setSidebarElementConstraints(Preferences.minScriptsSidebarWi dth); 84 this.editorView.setSidebarElementConstraints(Preferences.minScriptsSidebarWi dth);
85 this.editorView.setMainElementConstraints(minimumViewsContainerWidthPercent) ; 85 this.editorView.setMainElementConstraints(minimumViewsContainerWidthPercent) ;
86 this.editorView.show(this.splitView.mainElement); 86 this.editorView.show(this.splitView.mainElement);
87 87
88 this._navigator = new WebInspector.ScriptsNavigator(); 88 this._navigator = new WebInspector.SourcesNavigator();
89 this._navigator.view.show(this.editorView.sidebarElement); 89 this._navigator.view.show(this.editorView.sidebarElement);
90 90
91 var tabbedEditorPlaceholderText = WebInspector.isMac() ? WebInspector.UIStri ng("Hit Cmd+O to open a file") : WebInspector.UIString("Hit Ctrl+O to open a fil e"); 91 var tabbedEditorPlaceholderText = WebInspector.isMac() ? WebInspector.UIStri ng("Hit Cmd+O to open a file") : WebInspector.UIString("Hit Ctrl+O to open a fil e");
92 92
93 this._editorContentsElement = this.editorView.mainElement.createChild("div", "fill"); 93 this._editorContentsElement = this.editorView.mainElement.createChild("div", "fill");
94 this._editorFooterElement = this.editorView.mainElement.createChild("div", " inspector-footer status-bar hidden"); 94 this._editorFooterElement = this.editorView.mainElement.createChild("div", " inspector-footer status-bar hidden");
95 this._editorContainer = new WebInspector.TabbedEditorContainer(this, "previo uslyViewedFiles", tabbedEditorPlaceholderText); 95 this._editorContainer = new WebInspector.TabbedEditorContainer(this, "previo uslyViewedFiles", tabbedEditorPlaceholderText);
96 this._editorContainer.show(this._editorContentsElement); 96 this._editorContainer.show(this._editorContentsElement);
97 97
98 this._navigatorController = new WebInspector.NavigatorOverlayController(this .editorView, this._navigator.view, this._editorContainer.view); 98 this._navigatorController = new WebInspector.NavigatorOverlayController(this .editorView, this._navigator.view, this._editorContainer.view);
99 99
100 this._navigator.addEventListener(WebInspector.ScriptsNavigator.Events.Script Selected, this._scriptSelected, this); 100 this._navigator.addEventListener(WebInspector.SourcesNavigator.Events.Source Selected, this._sourceSelected, this);
101 this._navigator.addEventListener(WebInspector.ScriptsNavigator.Events.ItemSe archStarted, this._itemSearchStarted, this); 101 this._navigator.addEventListener(WebInspector.SourcesNavigator.Events.ItemSe archStarted, this._itemSearchStarted, this);
102 this._navigator.addEventListener(WebInspector.ScriptsNavigator.Events.ItemCr eationRequested, this._itemCreationRequested, this); 102 this._navigator.addEventListener(WebInspector.SourcesNavigator.Events.ItemCr eationRequested, this._itemCreationRequested, this);
103 this._navigator.addEventListener(WebInspector.ScriptsNavigator.Events.ItemRe namingRequested, this._itemRenamingRequested, this); 103 this._navigator.addEventListener(WebInspector.SourcesNavigator.Events.ItemRe namingRequested, this._itemRenamingRequested, this);
104 104
105 this._editorContainer.addEventListener(WebInspector.TabbedEditorContainer.Ev ents.EditorSelected, this._editorSelected, this); 105 this._editorContainer.addEventListener(WebInspector.TabbedEditorContainer.Ev ents.EditorSelected, this._editorSelected, this);
106 this._editorContainer.addEventListener(WebInspector.TabbedEditorContainer.Ev ents.EditorClosed, this._editorClosed, this); 106 this._editorContainer.addEventListener(WebInspector.TabbedEditorContainer.Ev ents.EditorClosed, this._editorClosed, this);
107 107
108 this._debugSidebarResizeWidgetElement = this.splitView.mainElement.createChi ld("div", "resizer-widget"); 108 this._debugSidebarResizeWidgetElement = this.splitView.mainElement.createChi ld("div", "resizer-widget");
109 this._debugSidebarResizeWidgetElement.id = "scripts-debug-sidebar-resizer-wi dget"; 109 this._debugSidebarResizeWidgetElement.id = "scripts-debug-sidebar-resizer-wi dget";
110 this.splitView.installResizer(this._debugSidebarResizeWidgetElement); 110 this.splitView.installResizer(this._debugSidebarResizeWidgetElement);
111 111
112 this.sidebarPanes = {}; 112 this.sidebarPanes = {};
113 this.sidebarPanes.watchExpressions = new WebInspector.WatchExpressionsSideba rPane(); 113 this.sidebarPanes.watchExpressions = new WebInspector.WatchExpressionsSideba rPane();
114 this.sidebarPanes.callstack = new WebInspector.CallStackSidebarPane(); 114 this.sidebarPanes.callstack = new WebInspector.CallStackSidebarPane();
115 this.sidebarPanes.callstack.addEventListener(WebInspector.CallStackSidebarPa ne.Events.CallFrameSelected, this._callFrameSelectedInSidebar.bind(this)); 115 this.sidebarPanes.callstack.addEventListener(WebInspector.CallStackSidebarPa ne.Events.CallFrameSelected, this._callFrameSelectedInSidebar.bind(this));
116 116
117 this.sidebarPanes.scopechain = new WebInspector.ScopeChainSidebarPane(); 117 this.sidebarPanes.scopechain = new WebInspector.ScopeChainSidebarPane();
118 this.sidebarPanes.jsBreakpoints = new WebInspector.JavaScriptBreakpointsSide barPane(WebInspector.breakpointManager, this._showSourceLocation.bind(this)); 118 this.sidebarPanes.jsBreakpoints = new WebInspector.JavaScriptBreakpointsSide barPane(WebInspector.breakpointManager, this._showSourceLocation.bind(this));
119 this.sidebarPanes.domBreakpoints = WebInspector.domBreakpointsSidebarPane.cr eateProxy(this); 119 this.sidebarPanes.domBreakpoints = WebInspector.domBreakpointsSidebarPane.cr eateProxy(this);
120 this.sidebarPanes.xhrBreakpoints = new WebInspector.XHRBreakpointsSidebarPan e(); 120 this.sidebarPanes.xhrBreakpoints = new WebInspector.XHRBreakpointsSidebarPan e();
121 this.sidebarPanes.eventListenerBreakpoints = new WebInspector.EventListenerB reakpointsSidebarPane(); 121 this.sidebarPanes.eventListenerBreakpoints = new WebInspector.EventListenerB reakpointsSidebarPane();
122 122
123 if (Capabilities.canInspectWorkers && !WebInspector.WorkerManager.isWorkerFr ontend()) { 123 if (Capabilities.canInspectWorkers && !WebInspector.WorkerManager.isWorkerFr ontend()) {
124 WorkerAgent.enable(); 124 WorkerAgent.enable();
125 this.sidebarPanes.workerList = new WebInspector.WorkersSidebarPane(WebIn spector.workerManager); 125 this.sidebarPanes.workerList = new WebInspector.WorkersSidebarPane(WebIn spector.workerManager);
126 } 126 }
127 127
128 this.sidebarPanes.callstack.registerShortcuts(this.registerShortcuts.bind(th is)); 128 this.sidebarPanes.callstack.registerShortcuts(this.registerShortcuts.bind(th is));
129 this.registerShortcuts(WebInspector.ScriptsPanelDescriptor.ShortcutKeys.GoTo Member, this._showOutlineDialog.bind(this)); 129 this.registerShortcuts(WebInspector.SourcesPanelDescriptor.ShortcutKeys.GoTo Member, this._showOutlineDialog.bind(this));
130 this.registerShortcuts(WebInspector.ScriptsPanelDescriptor.ShortcutKeys.Togg leBreakpoint, this._toggleBreakpoint.bind(this)); 130 this.registerShortcuts(WebInspector.SourcesPanelDescriptor.ShortcutKeys.Togg leBreakpoint, this._toggleBreakpoint.bind(this));
131 131
132 this._toggleFormatSourceButton = new WebInspector.StatusBarButton(WebInspect or.UIString("Pretty print"), "scripts-toggle-pretty-print-status-bar-item"); 132 this._toggleFormatSourceButton = new WebInspector.StatusBarButton(WebInspect or.UIString("Pretty print"), "scripts-toggle-pretty-print-status-bar-item");
133 this._toggleFormatSourceButton.toggled = false; 133 this._toggleFormatSourceButton.toggled = false;
134 this._toggleFormatSourceButton.addEventListener("click", this._toggleFormatS ource, this); 134 this._toggleFormatSourceButton.addEventListener("click", this._toggleFormatS ource, this);
135 135
136 this._scriptViewStatusBarItemsContainer = document.createElement("div"); 136 this._scriptViewStatusBarItemsContainer = document.createElement("div");
137 this._scriptViewStatusBarItemsContainer.className = "inline-block"; 137 this._scriptViewStatusBarItemsContainer.className = "inline-block";
138 138
139 this._scriptViewStatusBarTextContainer = document.createElement("div"); 139 this._scriptViewStatusBarTextContainer = document.createElement("div");
140 this._scriptViewStatusBarTextContainer.className = "inline-block"; 140 this._scriptViewStatusBarTextContainer.className = "inline-block";
(...skipping 22 matching lines...) Expand all
163 163
164 WebInspector.startBatchUpdate(); 164 WebInspector.startBatchUpdate();
165 this._workspace.uiSourceCodes().forEach(this._addUISourceCode.bind(this)); 165 this._workspace.uiSourceCodes().forEach(this._addUISourceCode.bind(this));
166 WebInspector.endBatchUpdate(); 166 WebInspector.endBatchUpdate();
167 167
168 this._workspace.addEventListener(WebInspector.Workspace.Events.UISourceCodeA dded, this._uiSourceCodeAdded, this); 168 this._workspace.addEventListener(WebInspector.Workspace.Events.UISourceCodeA dded, this._uiSourceCodeAdded, this);
169 this._workspace.addEventListener(WebInspector.Workspace.Events.UISourceCodeR emoved, this._uiSourceCodeRemoved, this); 169 this._workspace.addEventListener(WebInspector.Workspace.Events.UISourceCodeR emoved, this._uiSourceCodeRemoved, this);
170 this._workspace.addEventListener(WebInspector.Workspace.Events.ProjectWillRe set, this._projectWillReset.bind(this), this); 170 this._workspace.addEventListener(WebInspector.Workspace.Events.ProjectWillRe set, this._projectWillReset.bind(this), this);
171 WebInspector.debuggerModel.addEventListener(WebInspector.DebuggerModel.Event s.GlobalObjectCleared, this._debuggerReset, this); 171 WebInspector.debuggerModel.addEventListener(WebInspector.DebuggerModel.Event s.GlobalObjectCleared, this._debuggerReset, this);
172 172
173 WebInspector.advancedSearchController.registerSearchScope(new WebInspector.S criptsSearchScope(this._workspace)); 173 WebInspector.advancedSearchController.registerSearchScope(new WebInspector.S ourcesSearchScope(this._workspace));
174 174
175 this._boundOnKeyUp = this._onKeyUp.bind(this); 175 this._boundOnKeyUp = this._onKeyUp.bind(this);
176 this._boundOnKeyDown = this._onKeyDown.bind(this); 176 this._boundOnKeyDown = this._onKeyDown.bind(this);
177 } 177 }
178 178
179 WebInspector.ScriptsPanel.prototype = { 179 WebInspector.SourcesPanel.prototype = {
180 get statusBarItems() 180 get statusBarItems()
181 { 181 {
182 return [this._toggleFormatSourceButton.element, this._scriptViewStatusBa rItemsContainer]; 182 return [this._toggleFormatSourceButton.element, this._scriptViewStatusBa rItemsContainer];
183 }, 183 },
184 184
185 /** 185 /**
186 * @return {?Element} 186 * @return {?Element}
187 */ 187 */
188 statusBarText: function() 188 statusBarText: function()
189 { 189 {
(...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after
573 }, 573 },
574 574
575 _editorClosed: function(event) 575 _editorClosed: function(event)
576 { 576 {
577 this._navigatorController.hideNavigatorOverlay(); 577 this._navigatorController.hideNavigatorOverlay();
578 var uiSourceCode = /** @type {WebInspector.UISourceCode} */ (event.data) ; 578 var uiSourceCode = /** @type {WebInspector.UISourceCode} */ (event.data) ;
579 579
580 if (this._currentUISourceCode === uiSourceCode) 580 if (this._currentUISourceCode === uiSourceCode)
581 delete this._currentUISourceCode; 581 delete this._currentUISourceCode;
582 582
583 // ScriptsNavigator does not need to update on EditorClosed. 583 // SourcesNavigator does not need to update on EditorClosed.
584 this._updateScriptViewStatusBarItems(); 584 this._updateScriptViewStatusBarItems();
585 WebInspector.searchController.resetSearch(); 585 WebInspector.searchController.resetSearch();
586 }, 586 },
587 587
588 _editorSelected: function(event) 588 _editorSelected: function(event)
589 { 589 {
590 var uiSourceCode = /** @type {WebInspector.UISourceCode} */ (event.data) ; 590 var uiSourceCode = /** @type {WebInspector.UISourceCode} */ (event.data) ;
591 var sourceFrame = this._showFile(uiSourceCode); 591 var sourceFrame = this._showFile(uiSourceCode);
592 this._navigatorController.hideNavigatorOverlay(); 592 this._navigatorController.hideNavigatorOverlay();
593 if (!this._navigatorController.isNavigatorPinned()) 593 if (!this._navigatorController.isNavigatorPinned())
594 sourceFrame.focus(); 594 sourceFrame.focus();
595 WebInspector.searchController.resetSearch(); 595 WebInspector.searchController.resetSearch();
596 }, 596 },
597 597
598 _scriptSelected: function(event) 598 _sourceSelected: function(event)
599 { 599 {
600 var uiSourceCode = /** @type {WebInspector.UISourceCode} */ (event.data. uiSourceCode); 600 var uiSourceCode = /** @type {WebInspector.UISourceCode} */ (event.data. uiSourceCode);
601 var sourceFrame = this._showFile(uiSourceCode); 601 var sourceFrame = this._showFile(uiSourceCode);
602 this._navigatorController.hideNavigatorOverlay(); 602 this._navigatorController.hideNavigatorOverlay();
603 if (sourceFrame && (!this._navigatorController.isNavigatorPinned() || ev ent.data.focusSource)) 603 if (sourceFrame && (!this._navigatorController.isNavigatorPinned() || ev ent.data.focusSource))
604 sourceFrame.focus(); 604 sourceFrame.focus();
605 }, 605 },
606 606
607 _itemSearchStarted: function(event) 607 _itemSearchStarted: function(event)
608 { 608 {
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
869 var debugToolbar = document.createElement("div"); 869 var debugToolbar = document.createElement("div");
870 debugToolbar.className = "status-bar"; 870 debugToolbar.className = "status-bar";
871 debugToolbar.id = "scripts-debug-toolbar"; 871 debugToolbar.id = "scripts-debug-toolbar";
872 872
873 var title, handler; 873 var title, handler;
874 var platformSpecificModifier = WebInspector.KeyboardShortcut.Modifiers.C trlOrMeta; 874 var platformSpecificModifier = WebInspector.KeyboardShortcut.Modifiers.C trlOrMeta;
875 875
876 // Run snippet. 876 // Run snippet.
877 title = WebInspector.UIString("Run snippet (%s)."); 877 title = WebInspector.UIString("Run snippet (%s).");
878 handler = this._runSnippet.bind(this); 878 handler = this._runSnippet.bind(this);
879 this._runSnippetButton = this._createButtonAndRegisterShortcuts("scripts -run-snippet", title, handler, WebInspector.ScriptsPanelDescriptor.ShortcutKeys. RunSnippet); 879 this._runSnippetButton = this._createButtonAndRegisterShortcuts("scripts -run-snippet", title, handler, WebInspector.SourcesPanelDescriptor.ShortcutKeys. RunSnippet);
880 debugToolbar.appendChild(this._runSnippetButton.element); 880 debugToolbar.appendChild(this._runSnippetButton.element);
881 this._runSnippetButton.element.addStyleClass("hidden"); 881 this._runSnippetButton.element.addStyleClass("hidden");
882 882
883 // Continue. 883 // Continue.
884 handler = this._togglePause.bind(this); 884 handler = this._togglePause.bind(this);
885 this._pauseButton = this._createButtonAndRegisterShortcuts("scripts-paus e", "", handler, WebInspector.ScriptsPanelDescriptor.ShortcutKeys.PauseContinue) ; 885 this._pauseButton = this._createButtonAndRegisterShortcuts("scripts-paus e", "", handler, WebInspector.SourcesPanelDescriptor.ShortcutKeys.PauseContinue) ;
886 debugToolbar.appendChild(this._pauseButton.element); 886 debugToolbar.appendChild(this._pauseButton.element);
887 887
888 // Long resume. 888 // Long resume.
889 title = WebInspector.UIString("Resume with all pauses blocked for 500 ms "); 889 title = WebInspector.UIString("Resume with all pauses blocked for 500 ms ");
890 this._longResumeButton = new WebInspector.StatusBarButton(title, "script s-long-resume"); 890 this._longResumeButton = new WebInspector.StatusBarButton(title, "script s-long-resume");
891 this._longResumeButton.addEventListener("click", this._longResume.bind(t his), this); 891 this._longResumeButton.addEventListener("click", this._longResume.bind(t his), this);
892 892
893 // Step over. 893 // Step over.
894 title = WebInspector.UIString("Step over next function call (%s)."); 894 title = WebInspector.UIString("Step over next function call (%s).");
895 handler = this._stepOverClicked.bind(this); 895 handler = this._stepOverClicked.bind(this);
896 this._stepOverButton = this._createButtonAndRegisterShortcuts("scripts-s tep-over", title, handler, WebInspector.ScriptsPanelDescriptor.ShortcutKeys.Step Over); 896 this._stepOverButton = this._createButtonAndRegisterShortcuts("scripts-s tep-over", title, handler, WebInspector.SourcesPanelDescriptor.ShortcutKeys.Step Over);
897 debugToolbar.appendChild(this._stepOverButton.element); 897 debugToolbar.appendChild(this._stepOverButton.element);
898 898
899 // Step into. 899 // Step into.
900 title = WebInspector.UIString("Step into next function call (%s)."); 900 title = WebInspector.UIString("Step into next function call (%s).");
901 handler = this._stepIntoClicked.bind(this); 901 handler = this._stepIntoClicked.bind(this);
902 this._stepIntoButton = this._createButtonAndRegisterShortcuts("scripts-s tep-into", title, handler, WebInspector.ScriptsPanelDescriptor.ShortcutKeys.Step Into); 902 this._stepIntoButton = this._createButtonAndRegisterShortcuts("scripts-s tep-into", title, handler, WebInspector.SourcesPanelDescriptor.ShortcutKeys.Step Into);
903 debugToolbar.appendChild(this._stepIntoButton.element); 903 debugToolbar.appendChild(this._stepIntoButton.element);
904 904
905 // Step into selection (keyboard shortcut only). 905 // Step into selection (keyboard shortcut only).
906 this.registerShortcuts(WebInspector.ScriptsPanelDescriptor.ShortcutKeys. StepIntoSelection, this._stepIntoSelectionClicked.bind(this)) 906 this.registerShortcuts(WebInspector.SourcesPanelDescriptor.ShortcutKeys. StepIntoSelection, this._stepIntoSelectionClicked.bind(this))
907 907
908 // Step out. 908 // Step out.
909 title = WebInspector.UIString("Step out of current function (%s)."); 909 title = WebInspector.UIString("Step out of current function (%s).");
910 handler = this._stepOutClicked.bind(this); 910 handler = this._stepOutClicked.bind(this);
911 this._stepOutButton = this._createButtonAndRegisterShortcuts("scripts-st ep-out", title, handler, WebInspector.ScriptsPanelDescriptor.ShortcutKeys.StepOu t); 911 this._stepOutButton = this._createButtonAndRegisterShortcuts("scripts-st ep-out", title, handler, WebInspector.SourcesPanelDescriptor.ShortcutKeys.StepOu t);
912 debugToolbar.appendChild(this._stepOutButton.element); 912 debugToolbar.appendChild(this._stepOutButton.element);
913 913
914 // Toggle Breakpoints 914 // Toggle Breakpoints
915 this._toggleBreakpointsButton = new WebInspector.StatusBarButton(WebInsp ector.UIString("Deactivate breakpoints."), "scripts-toggle-breakpoints"); 915 this._toggleBreakpointsButton = new WebInspector.StatusBarButton(WebInsp ector.UIString("Deactivate breakpoints."), "scripts-toggle-breakpoints");
916 this._toggleBreakpointsButton.toggled = false; 916 this._toggleBreakpointsButton.toggled = false;
917 this._toggleBreakpointsButton.addEventListener("click", this._toggleBrea kpointsClicked, this); 917 this._toggleBreakpointsButton.addEventListener("click", this._toggleBrea kpointsClicked, this);
918 debugToolbar.appendChild(this._toggleBreakpointsButton.element); 918 debugToolbar.appendChild(this._toggleBreakpointsButton.element);
919 919
920 // Pause on Exception 920 // Pause on Exception
921 this._pauseOnExceptionButton = new WebInspector.StatusBarButton("", "scr ipts-pause-on-exceptions-status-bar-item", 3); 921 this._pauseOnExceptionButton = new WebInspector.StatusBarButton("", "scr ipts-pause-on-exceptions-status-bar-item", 3);
(...skipping 557 matching lines...) Expand 10 before | Expand all | Expand 10 after
1479 } else { 1479 } else {
1480 this._editorFooterElement.addStyleClass("hidden"); 1480 this._editorFooterElement.addStyleClass("hidden");
1481 this._editorFooterElement.removeChildren(); 1481 this._editorFooterElement.removeChildren();
1482 this._editorContentsElement.style.bottom = 0; 1482 this._editorContentsElement.style.bottom = 0;
1483 } 1483 }
1484 this.doResize(); 1484 this.doResize();
1485 }, 1485 },
1486 1486
1487 __proto__: WebInspector.Panel.prototype 1487 __proto__: WebInspector.Panel.prototype
1488 } 1488 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/SourcesNavigator.js ('k') | Source/devtools/front_end/SourcesPanelDescriptor.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698