| 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 /** | 47 /** |
| 48 * @override | 48 * @override |
| 49 * @param {!WebInspector.Project} project | 49 * @param {!WebInspector.Project} project |
| 50 * @return {boolean} | 50 * @return {boolean} |
| 51 */ | 51 */ |
| 52 filterProject: function(project) | 52 filterProject: function(project) |
| 53 { | 53 { |
| 54 return !WebInspector.Project.isServiceProject(project); | 54 return !WebInspector.Project.isServiceProject(project); |
| 55 }, | 55 }, |
| 56 | 56 |
| 57 /** |
| 58 * @override |
| 59 * @return {boolean} |
| 60 */ |
| 61 renderAsTwoRows: function() |
| 62 { |
| 63 return true; |
| 64 }, |
| 65 |
| 57 __proto__: WebInspector.FilteredUISourceCodeListDelegate.prototype | 66 __proto__: WebInspector.FilteredUISourceCodeListDelegate.prototype |
| 58 } | 67 } |
| 59 | 68 |
| 60 /** | 69 /** |
| 61 * @param {!WebInspector.SourcesView} sourcesView | 70 * @param {!WebInspector.SourcesView} sourcesView |
| 62 * @param {string} query | 71 * @param {string} query |
| 63 * @param {!Map.<!WebInspector.UISourceCode, number>} defaultScores | 72 * @param {!Map.<!WebInspector.UISourceCode, number>} defaultScores |
| 64 * @param {!Array<string>} history | 73 * @param {!Array<string>} history |
| 65 */ | 74 */ |
| 66 WebInspector.OpenResourceDialog.show = function(sourcesView, query, defaultScore
s, history) | 75 WebInspector.OpenResourceDialog.show = function(sourcesView, query, defaultScore
s, history) |
| 67 { | 76 { |
| 68 var filteredItemSelectionDialog = new WebInspector.FilteredListWidget(new We
bInspector.OpenResourceDialog(sourcesView, defaultScores, history), true); | 77 var filteredItemSelectionDialog = new WebInspector.FilteredListWidget(new We
bInspector.OpenResourceDialog(sourcesView, defaultScores, history)); |
| 69 filteredItemSelectionDialog.showAsDialog(); | 78 filteredItemSelectionDialog.showAsDialog(); |
| 70 filteredItemSelectionDialog.setQuery(query); | 79 filteredItemSelectionDialog.setQuery(query); |
| 71 } | 80 } |
| 72 | 81 |
| 73 /** | 82 /** |
| 74 * @constructor | 83 * @constructor |
| 75 * @extends {WebInspector.FilteredUISourceCodeListDelegate} | 84 * @extends {WebInspector.FilteredUISourceCodeListDelegate} |
| 76 * @param {!Array.<string>} types | 85 * @param {!Array.<string>} types |
| 77 * @param {function(?WebInspector.UISourceCode)} callback | 86 * @param {function(?WebInspector.UISourceCode)} callback |
| 78 */ | 87 */ |
| (...skipping 19 matching lines...) Expand all Loading... |
| 98 /** | 107 /** |
| 99 * @override | 108 * @override |
| 100 * @param {!WebInspector.Project} project | 109 * @param {!WebInspector.Project} project |
| 101 * @return {boolean} | 110 * @return {boolean} |
| 102 */ | 111 */ |
| 103 filterProject: function(project) | 112 filterProject: function(project) |
| 104 { | 113 { |
| 105 return this._types.indexOf(project.type()) !== -1; | 114 return this._types.indexOf(project.type()) !== -1; |
| 106 }, | 115 }, |
| 107 | 116 |
| 117 /** |
| 118 * @override |
| 119 * @return {boolean} |
| 120 */ |
| 121 renderAsTwoRows: function() |
| 122 { |
| 123 return true; |
| 124 }, |
| 125 |
| 108 __proto__: WebInspector.FilteredUISourceCodeListDelegate.prototype | 126 __proto__: WebInspector.FilteredUISourceCodeListDelegate.prototype |
| 109 } | 127 } |
| 110 | 128 |
| 111 /** | 129 /** |
| 112 * @param {string} name | 130 * @param {string} name |
| 113 * @param {!Array.<string>} types | 131 * @param {!Array.<string>} types |
| 114 * @param {function(?WebInspector.UISourceCode)} callback | 132 * @param {function(?WebInspector.UISourceCode)} callback |
| 115 */ | 133 */ |
| 116 WebInspector.SelectUISourceCodeForProjectTypesDialog.show = function(name, types
, callback) | 134 WebInspector.SelectUISourceCodeForProjectTypesDialog.show = function(name, types
, callback) |
| 117 { | 135 { |
| 118 var filteredItemSelectionDialog = new WebInspector.FilteredListWidget(new We
bInspector.SelectUISourceCodeForProjectTypesDialog(types, callback), true); | 136 var filteredItemSelectionDialog = new WebInspector.FilteredListWidget(new We
bInspector.SelectUISourceCodeForProjectTypesDialog(types, callback)); |
| 119 filteredItemSelectionDialog.showAsDialog(); | 137 filteredItemSelectionDialog.showAsDialog(); |
| 120 filteredItemSelectionDialog.setQuery(name); | 138 filteredItemSelectionDialog.setQuery(name); |
| 121 } | 139 } |
| OLD | NEW |