Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(142)

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/sources/OpenResourceDialog.js

Issue 2587533002: DevTools: consistently use relative name for filesystem resources. (Closed)
Patch Set: same Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 {
11 /** 11 /**
12 * @param {!Sources.SourcesView} sourcesView 12 * @param {!Sources.SourcesView} sourcesView
13 * @param {!Map.<!Workspace.UISourceCode, number>} defaultScores 13 * @param {!Map.<!Workspace.UISourceCode, number>} defaultScores
14 * @param {!Array<string>} history 14 * @param {!Array<string>} history
15 */ 15 */
16 constructor(sourcesView, defaultScores, history) { 16 constructor(sourcesView, defaultScores, history) {
17 super(defaultScores, history); 17 super(defaultScores, history);
18 this._sourcesView = sourcesView; 18 this._sourcesView = sourcesView;
19 this.populate(); 19 this.populate();
20 } 20 }
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 Sources.OpenResourceDialog._instanceForTest = new Sources.OpenResourceDialog (sourcesView, defaultScores, history); 29 var dialog = new Sources.OpenResourceDialog(sourcesView, defaultScores, hist ory);
30 var filteredItemSelectionDialog = new UI.FilteredListWidget(Sources.OpenReso urceDialog._instanceForTest); 30 Sources.OpenResourceDialog._instanceForTest = dialog;
31 var filteredItemSelectionDialog = new UI.FilteredListWidget(dialog);
31 filteredItemSelectionDialog.showAsDialog(); 32 filteredItemSelectionDialog.showAsDialog();
32 filteredItemSelectionDialog.setQuery(query); 33 filteredItemSelectionDialog.setQuery(query);
33 } 34 }
34 35
35 /** 36 /**
36 * @override 37 * @override
37 * @param {?Workspace.UISourceCode} uiSourceCode 38 * @param {?Workspace.UISourceCode} uiSourceCode
38 * @param {number=} lineNumber 39 * @param {number=} lineNumber
39 * @param {number=} columnNumber 40 * @param {number=} columnNumber
40 */ 41 */
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 } 122 }
122 123
123 /** 124 /**
124 * @override 125 * @override
125 * @return {boolean} 126 * @return {boolean}
126 */ 127 */
127 renderAsTwoRows() { 128 renderAsTwoRows() {
128 return true; 129 return true;
129 } 130 }
130 }; 131 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698