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 */ | 13 */ |
14 WebInspector.SourcesView = function(workspace, sourcesPanel) | 14 WebInspector.SourcesView = function(workspace, sourcesPanel) |
15 { | 15 { |
16 WebInspector.VBox.call(this); | 16 WebInspector.VBox.call(this); |
17 this.registerRequiredCSS("sourcesView.css"); | 17 this.registerRequiredCSS("sourcesView.css"); |
18 this.element.id = "sources-panel-sources-view"; | 18 this.element.id = "sources-panel-sources-view"; |
| 19 this.setMinimumSize(50, 25); |
19 | 20 |
20 this._workspace = workspace; | 21 this._workspace = workspace; |
21 this._sourcesPanel = sourcesPanel; | 22 this._sourcesPanel = sourcesPanel; |
22 | 23 |
23 this._searchableView = new WebInspector.SearchableView(this); | 24 this._searchableView = new WebInspector.SearchableView(this); |
24 this._searchableView.setMinimalSearchQuerySize(0); | 25 this._searchableView.setMinimalSearchQuerySize(0); |
25 this._searchableView.show(this.element); | 26 this._searchableView.show(this.element); |
26 | 27 |
27 /** @type {!Map.<!WebInspector.UISourceCode, !WebInspector.SourceFrame>} */ | 28 /** @type {!Map.<!WebInspector.UISourceCode, !WebInspector.SourceFrame>} */ |
28 this._sourceFramesByUISourceCode = new Map(); | 29 this._sourceFramesByUISourceCode = new Map(); |
(...skipping 601 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
630 { | 631 { |
631 } | 632 } |
632 | 633 |
633 WebInspector.SourcesView.EditorAction.prototype = { | 634 WebInspector.SourcesView.EditorAction.prototype = { |
634 /** | 635 /** |
635 * @param {!WebInspector.SourcesView} sourcesView | 636 * @param {!WebInspector.SourcesView} sourcesView |
636 * @return {!Element} | 637 * @return {!Element} |
637 */ | 638 */ |
638 button: function(sourcesView) { } | 639 button: function(sourcesView) { } |
639 } | 640 } |
OLD | NEW |