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 * @constructor | 8 * @constructor |
9 * @extends {WebInspector.FilteredUISourceCodeListDelegate} | 9 * @extends {WebInspector.FilteredUISourceCodeListDelegate} |
10 * @param {!WebInspector.SourcesView} sourcesView | 10 * @param {!WebInspector.SourcesView} sourcesView |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 } | 67 } |
68 | 68 |
69 /** | 69 /** |
70 * @param {!WebInspector.SourcesView} sourcesView | 70 * @param {!WebInspector.SourcesView} sourcesView |
71 * @param {string} query | 71 * @param {string} query |
72 * @param {!Map.<!WebInspector.UISourceCode, number>} defaultScores | 72 * @param {!Map.<!WebInspector.UISourceCode, number>} defaultScores |
73 * @param {!Array<string>} history | 73 * @param {!Array<string>} history |
74 */ | 74 */ |
75 WebInspector.OpenResourceDialog.show = function(sourcesView, query, defaultScore
s, history) | 75 WebInspector.OpenResourceDialog.show = function(sourcesView, query, defaultScore
s, history) |
76 { | 76 { |
77 var filteredItemSelectionDialog = new WebInspector.FilteredListWidget(new We
bInspector.OpenResourceDialog(sourcesView, defaultScores, history)); | 77 WebInspector.OpenResourceDialog._instanceForTest = new WebInspector.OpenReso
urceDialog(sourcesView, defaultScores, history); |
| 78 var filteredItemSelectionDialog = new WebInspector.FilteredListWidget(WebIns
pector.OpenResourceDialog._instanceForTest); |
78 filteredItemSelectionDialog.showAsDialog(); | 79 filteredItemSelectionDialog.showAsDialog(); |
79 filteredItemSelectionDialog.setQuery(query); | 80 filteredItemSelectionDialog.setQuery(query); |
80 } | 81 } |
81 | 82 |
82 /** | 83 /** |
83 * @constructor | 84 * @constructor |
84 * @extends {WebInspector.FilteredUISourceCodeListDelegate} | 85 * @extends {WebInspector.FilteredUISourceCodeListDelegate} |
85 * @param {!Array.<string>} types | 86 * @param {!Array.<string>} types |
86 * @param {function(?WebInspector.UISourceCode)} callback | 87 * @param {function(?WebInspector.UISourceCode)} callback |
87 */ | 88 */ |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 * @param {string} name | 131 * @param {string} name |
131 * @param {!Array.<string>} types | 132 * @param {!Array.<string>} types |
132 * @param {function(?WebInspector.UISourceCode)} callback | 133 * @param {function(?WebInspector.UISourceCode)} callback |
133 */ | 134 */ |
134 WebInspector.SelectUISourceCodeForProjectTypesDialog.show = function(name, types
, callback) | 135 WebInspector.SelectUISourceCodeForProjectTypesDialog.show = function(name, types
, callback) |
135 { | 136 { |
136 var filteredItemSelectionDialog = new WebInspector.FilteredListWidget(new We
bInspector.SelectUISourceCodeForProjectTypesDialog(types, callback)); | 137 var filteredItemSelectionDialog = new WebInspector.FilteredListWidget(new We
bInspector.SelectUISourceCodeForProjectTypesDialog(types, callback)); |
137 filteredItemSelectionDialog.showAsDialog(); | 138 filteredItemSelectionDialog.showAsDialog(); |
138 filteredItemSelectionDialog.setQuery(name); | 139 filteredItemSelectionDialog.setQuery(name); |
139 } | 140 } |
OLD | NEW |