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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/quick_open/CommandMenu.js

Issue 2727903003: DevTools: Remove monospace from FilteredListWidget (Closed)
Patch Set: Created 3 years, 9 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 unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/devtools/front_end/quick_open/FilteredListWidget.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 /** 4 /**
5 * @unrestricted 5 * @unrestricted
6 */ 6 */
7 QuickOpen.CommandMenu = class { 7 QuickOpen.CommandMenu = class {
8 constructor() { 8 constructor() {
9 this._commands = []; 9 this._commands = [];
10 this._loadCommands(); 10 this._loadCommands();
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 * @param {string} promptValue 214 * @param {string} promptValue
215 */ 215 */
216 selectItem(itemIndex, promptValue) { 216 selectItem(itemIndex, promptValue) {
217 if (itemIndex === null) 217 if (itemIndex === null)
218 return; 218 return;
219 this._commands[itemIndex].execute(); 219 this._commands[itemIndex].execute();
220 } 220 }
221 221
222 /** 222 /**
223 * @override 223 * @override
224 * @return {boolean}
225 */
226 renderMonospace() {
227 return false;
228 }
229
230 /**
231 * @override
232 * @return {string} 224 * @return {string}
233 */ 225 */
234 notFoundText() { 226 notFoundText() {
235 return Common.UIString('No commands found'); 227 return Common.UIString('No commands found');
236 } 228 }
237 }; 229 };
238 230
239 QuickOpen.CommandMenuDelegate.MaterialPaletteColors = [ 231 QuickOpen.CommandMenuDelegate.MaterialPaletteColors = [
240 '#F44336', '#E91E63', '#9C27B0', '#673AB7', '#3F51B5', '#03A9F4', '#00BCD4', ' #009688', '#4CAF50', '#8BC34A', 232 '#F44336', '#E91E63', '#9C27B0', '#673AB7', '#3F51B5', '#03A9F4', '#00BCD4', ' #009688', '#4CAF50', '#8BC34A',
241 '#CDDC39', '#FFC107', '#FF9800', '#FF5722', '#795548', '#9E9E9E', '#607D8B' 233 '#CDDC39', '#FFC107', '#FF9800', '#FF5722', '#795548', '#9E9E9E', '#607D8B'
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
316 * @param {!UI.Context} context 308 * @param {!UI.Context} context
317 * @param {string} actionId 309 * @param {string} actionId
318 * @return {boolean} 310 * @return {boolean}
319 */ 311 */
320 handleAction(context, actionId) { 312 handleAction(context, actionId) {
321 new QuickOpen.FilteredListWidget(new QuickOpen.CommandMenuDelegate()).showAs Dialog(); 313 new QuickOpen.FilteredListWidget(new QuickOpen.CommandMenuDelegate()).showAs Dialog();
322 InspectorFrontendHost.bringToFront(); 314 InspectorFrontendHost.bringToFront();
323 return true; 315 return true;
324 } 316 }
325 }; 317 };
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/devtools/front_end/quick_open/FilteredListWidget.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698