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

Side by Side Diff: Source/devtools/front_end/sources/SourcesView.js

Issue 1213693005: DevTools: Line and column number overlaps with file name in sources section. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /** 5 /**
6 * @constructor 6 * @constructor
7 * @implements {WebInspector.TabbedEditorContainerDelegate} 7 * @implements {WebInspector.TabbedEditorContainerDelegate}
8 * @implements {WebInspector.Searchable} 8 * @implements {WebInspector.Searchable}
9 * @implements {WebInspector.Replaceable} 9 * @implements {WebInspector.Replaceable}
10 * @extends {WebInspector.VBox} 10 * @extends {WebInspector.VBox}
11 * @param {!WebInspector.Workspace} workspace 11 * @param {!WebInspector.Workspace} workspace
12 * @param {!WebInspector.SourcesPanel} sourcesPanel 12 * @param {!WebInspector.SourcesPanel} sourcesPanel
13 * @suppressGlobalPropertiesCheck 13 * @suppressGlobalPropertiesCheck
14 */ 14 */
15 WebInspector.SourcesView = function(workspace, sourcesPanel) 15 WebInspector.SourcesView = function(workspace, sourcesPanel)
16 { 16 {
17 WebInspector.VBox.call(this); 17 WebInspector.VBox.call(this);
18 this.registerRequiredCSS("sources/sourcesView.css"); 18 this.registerRequiredCSS("sources/sourcesView.css");
19 this.element.id = "sources-panel-sources-view"; 19 this.element.id = "sources-panel-sources-view";
20 this.setMinimumAndPreferredSizes(50, 25, 150, 100); 20 this.setMinimumAndPreferredSizes(50, 52, 150, 100);
21 21
22 this._workspace = workspace; 22 this._workspace = workspace;
23 this._sourcesPanel = sourcesPanel; 23 this._sourcesPanel = sourcesPanel;
24 24
25 this._searchableView = new WebInspector.SearchableView(this, "sourcesViewSea rchConfig"); 25 this._searchableView = new WebInspector.SearchableView(this, "sourcesViewSea rchConfig");
26 this._searchableView.setMinimalSearchQuerySize(0); 26 this._searchableView.setMinimalSearchQuerySize(0);
27 this._searchableView.show(this.element); 27 this._searchableView.show(this.element);
28 28
29 /** @type {!Map.<!WebInspector.UISourceCode, !WebInspector.UISourceCodeFrame >} */ 29 /** @type {!Map.<!WebInspector.UISourceCode, !WebInspector.UISourceCodeFrame >} */
30 this._sourceFramesByUISourceCode = new Map(); 30 this._sourceFramesByUISourceCode = new Map();
(...skipping 785 matching lines...) Expand 10 before | Expand all | Expand 10 after
816 var sourcesView = WebInspector.context.flavor(WebInspector.SourcesView); 816 var sourcesView = WebInspector.context.flavor(WebInspector.SourcesView);
817 var currentUISourceCode = sourcesView.currentUISourceCode(); 817 var currentUISourceCode = sourcesView.currentUISourceCode();
818 if (!currentUISourceCode) 818 if (!currentUISourceCode)
819 return; 819 return;
820 var nextUISourceCode = WebInspector.SourcesView.SwitchFileActionDelegate ._nextFile(currentUISourceCode); 820 var nextUISourceCode = WebInspector.SourcesView.SwitchFileActionDelegate ._nextFile(currentUISourceCode);
821 if (!nextUISourceCode) 821 if (!nextUISourceCode)
822 return; 822 return;
823 sourcesView.showSourceLocation(nextUISourceCode); 823 sourcesView.showSourceLocation(nextUISourceCode);
824 } 824 }
825 } 825 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698