OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2012 The Chromium Authors. All rights reserved. | 2 * Copyright (c) 2012 The Chromium Authors. All rights reserved. |
3 * Use of this source code is governed by a BSD-style license that can be | 3 * Use of this source code is governed by a BSD-style license that can be |
4 * found in the LICENSE file. | 4 * found in the LICENSE file. |
5 */ | 5 */ |
6 | 6 |
7 /** | 7 /** |
8 * @unrestricted | 8 * @unrestricted |
9 */ | 9 */ |
10 Sources.OpenResourceDialog = class extends Sources.FilteredUISourceCodeListDeleg
ate { | 10 Sources.OpenResourceDialog = class extends Sources.FilteredUISourceCodeListDeleg
ate { |
(...skipping 11 matching lines...) Expand all Loading... |
22 /** | 22 /** |
23 * @param {!Sources.SourcesView} sourcesView | 23 * @param {!Sources.SourcesView} sourcesView |
24 * @param {string} query | 24 * @param {string} query |
25 * @param {!Map.<!Workspace.UISourceCode, number>} defaultScores | 25 * @param {!Map.<!Workspace.UISourceCode, number>} defaultScores |
26 * @param {!Array<string>} history | 26 * @param {!Array<string>} history |
27 */ | 27 */ |
28 static show(sourcesView, query, defaultScores, history) { | 28 static show(sourcesView, query, defaultScores, history) { |
29 var dialog = new Sources.OpenResourceDialog(sourcesView, defaultScores, hist
ory); | 29 var dialog = new Sources.OpenResourceDialog(sourcesView, defaultScores, hist
ory); |
30 if (InspectorFrontendHost.isUnderTest()) | 30 if (InspectorFrontendHost.isUnderTest()) |
31 Sources.OpenResourceDialog._instanceForTest = dialog; | 31 Sources.OpenResourceDialog._instanceForTest = dialog; |
32 var filteredItemSelectionDialog = new UI.FilteredListWidget(dialog); | 32 var filteredItemSelectionDialog = new QuickOpen.FilteredListWidget(dialog); |
33 filteredItemSelectionDialog.showAsDialog(); | 33 filteredItemSelectionDialog.showAsDialog(); |
34 filteredItemSelectionDialog.setQuery(query); | 34 filteredItemSelectionDialog.setQuery(query); |
35 } | 35 } |
36 | 36 |
37 /** | 37 /** |
38 * @override | 38 * @override |
39 * @param {?Workspace.UISourceCode} uiSourceCode | 39 * @param {?Workspace.UISourceCode} uiSourceCode |
40 * @param {number=} lineNumber | 40 * @param {number=} lineNumber |
41 * @param {number=} columnNumber | 41 * @param {number=} columnNumber |
42 */ | 42 */ |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 this.populate(); | 91 this.populate(); |
92 } | 92 } |
93 | 93 |
94 /** | 94 /** |
95 * @param {string} name | 95 * @param {string} name |
96 * @param {!Array.<string>} types | 96 * @param {!Array.<string>} types |
97 * @param {function(?Workspace.UISourceCode)} callback | 97 * @param {function(?Workspace.UISourceCode)} callback |
98 */ | 98 */ |
99 static show(name, types, callback) { | 99 static show(name, types, callback) { |
100 var filteredItemSelectionDialog = | 100 var filteredItemSelectionDialog = |
101 new UI.FilteredListWidget(new Sources.SelectUISourceCodeForProjectTypesD
ialog(types, callback)); | 101 new QuickOpen.FilteredListWidget(new Sources.SelectUISourceCodeForProjec
tTypesDialog(types, callback)); |
102 filteredItemSelectionDialog.showAsDialog(); | 102 filteredItemSelectionDialog.showAsDialog(); |
103 filteredItemSelectionDialog.setQuery(name); | 103 filteredItemSelectionDialog.setQuery(name); |
104 } | 104 } |
105 | 105 |
106 /** | 106 /** |
107 * @override | 107 * @override |
108 * @param {?Workspace.UISourceCode} uiSourceCode | 108 * @param {?Workspace.UISourceCode} uiSourceCode |
109 * @param {number=} lineNumber | 109 * @param {number=} lineNumber |
110 * @param {number=} columnNumber | 110 * @param {number=} columnNumber |
111 */ | 111 */ |
(...skipping 11 matching lines...) Expand all Loading... |
123 } | 123 } |
124 | 124 |
125 /** | 125 /** |
126 * @override | 126 * @override |
127 * @return {boolean} | 127 * @return {boolean} |
128 */ | 128 */ |
129 renderAsTwoRows() { | 129 renderAsTwoRows() { |
130 return true; | 130 return true; |
131 } | 131 } |
132 }; | 132 }; |
OLD | NEW |