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

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

Issue 1938053002: DevTools: brush up command menu looks, render badges. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/devtools/front_end/sources/OpenResourceDialog.js
diff --git a/third_party/WebKit/Source/devtools/front_end/sources/OpenResourceDialog.js b/third_party/WebKit/Source/devtools/front_end/sources/OpenResourceDialog.js
index fb136b0ef97e899ed49d494904b8ebc8cd0a12b1..600f6a01fe49b671d9ce461aebc6bd78393a2445 100644
--- a/third_party/WebKit/Source/devtools/front_end/sources/OpenResourceDialog.js
+++ b/third_party/WebKit/Source/devtools/front_end/sources/OpenResourceDialog.js
@@ -54,6 +54,15 @@ WebInspector.OpenResourceDialog.prototype = {
return !WebInspector.Project.isServiceProject(project);
},
+ /**
+ * @override
+ * @return {boolean}
+ */
+ renderAsTwoRows: function()
+ {
+ return true;
+ },
+
__proto__: WebInspector.FilteredUISourceCodeListDelegate.prototype
}
@@ -65,7 +74,7 @@ WebInspector.OpenResourceDialog.prototype = {
*/
WebInspector.OpenResourceDialog.show = function(sourcesView, query, defaultScores, history)
{
- var filteredItemSelectionDialog = new WebInspector.FilteredListWidget(new WebInspector.OpenResourceDialog(sourcesView, defaultScores, history), true);
+ var filteredItemSelectionDialog = new WebInspector.FilteredListWidget(new WebInspector.OpenResourceDialog(sourcesView, defaultScores, history));
filteredItemSelectionDialog.showAsDialog();
filteredItemSelectionDialog.setQuery(query);
}
@@ -105,6 +114,15 @@ WebInspector.SelectUISourceCodeForProjectTypesDialog.prototype = {
return this._types.indexOf(project.type()) !== -1;
},
+ /**
+ * @override
+ * @return {boolean}
+ */
+ renderAsTwoRows: function()
+ {
+ return true;
+ },
+
__proto__: WebInspector.FilteredUISourceCodeListDelegate.prototype
}
@@ -115,7 +133,7 @@ WebInspector.SelectUISourceCodeForProjectTypesDialog.prototype = {
*/
WebInspector.SelectUISourceCodeForProjectTypesDialog.show = function(name, types, callback)
{
- var filteredItemSelectionDialog = new WebInspector.FilteredListWidget(new WebInspector.SelectUISourceCodeForProjectTypesDialog(types, callback), true);
+ var filteredItemSelectionDialog = new WebInspector.FilteredListWidget(new WebInspector.SelectUISourceCodeForProjectTypesDialog(types, callback));
filteredItemSelectionDialog.showAsDialog();
filteredItemSelectionDialog.setQuery(name);
}

Powered by Google App Engine
This is Rietveld 408576698