| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |