| 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 10 matching lines...) Expand all Loading... |
| 21 | 21 |
| 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 Sources.OpenResourceDialog._instanceForTest = dialog; | 30 Sources.OpenResourceDialog._instanceForTest = dialog; |
| 31 var filteredItemSelectionDialog = new UI.FilteredListWidget(dialog); | 31 var filteredItemSelectionDialog = new QuickOpen.FilteredListWidget(dialog); |
| 32 filteredItemSelectionDialog.showAsDialog(); | 32 filteredItemSelectionDialog.showAsDialog(); |
| 33 filteredItemSelectionDialog.setQuery(query); | 33 filteredItemSelectionDialog.setQuery(query); |
| 34 } | 34 } |
| 35 | 35 |
| 36 /** | 36 /** |
| 37 * @override | 37 * @override |
| 38 * @param {?Workspace.UISourceCode} uiSourceCode | 38 * @param {?Workspace.UISourceCode} uiSourceCode |
| 39 * @param {number=} lineNumber | 39 * @param {number=} lineNumber |
| 40 * @param {number=} columnNumber | 40 * @param {number=} columnNumber |
| 41 */ | 41 */ |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 this.populate(); | 90 this.populate(); |
| 91 } | 91 } |
| 92 | 92 |
| 93 /** | 93 /** |
| 94 * @param {string} name | 94 * @param {string} name |
| 95 * @param {!Array.<string>} types | 95 * @param {!Array.<string>} types |
| 96 * @param {function(?Workspace.UISourceCode)} callback | 96 * @param {function(?Workspace.UISourceCode)} callback |
| 97 */ | 97 */ |
| 98 static show(name, types, callback) { | 98 static show(name, types, callback) { |
| 99 var filteredItemSelectionDialog = | 99 var filteredItemSelectionDialog = |
| 100 new UI.FilteredListWidget(new Sources.SelectUISourceCodeForProjectTypesD
ialog(types, callback)); | 100 new QuickOpen.FilteredListWidget(new Sources.SelectUISourceCodeForProjec
tTypesDialog(types, callback)); |
| 101 filteredItemSelectionDialog.showAsDialog(); | 101 filteredItemSelectionDialog.showAsDialog(); |
| 102 filteredItemSelectionDialog.setQuery(name); | 102 filteredItemSelectionDialog.setQuery(name); |
| 103 } | 103 } |
| 104 | 104 |
| 105 /** | 105 /** |
| 106 * @override | 106 * @override |
| 107 * @param {?Workspace.UISourceCode} uiSourceCode | 107 * @param {?Workspace.UISourceCode} uiSourceCode |
| 108 * @param {number=} lineNumber | 108 * @param {number=} lineNumber |
| 109 * @param {number=} columnNumber | 109 * @param {number=} columnNumber |
| 110 */ | 110 */ |
| (...skipping 11 matching lines...) Expand all Loading... |
| 122 } | 122 } |
| 123 | 123 |
| 124 /** | 124 /** |
| 125 * @override | 125 * @override |
| 126 * @return {boolean} | 126 * @return {boolean} |
| 127 */ | 127 */ |
| 128 renderAsTwoRows() { | 128 renderAsTwoRows() { |
| 129 return true; | 129 return true; |
| 130 } | 130 } |
| 131 }; | 131 }; |
| OLD | NEW |