OLD | NEW |
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 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
243 return false; | 243 return false; |
244 } | 244 } |
245 | 245 |
246 /** | 246 /** |
247 * @override | 247 * @override |
248 * @return {boolean} | 248 * @return {boolean} |
249 */ | 249 */ |
250 renderMonospace() { | 250 renderMonospace() { |
251 return false; | 251 return false; |
252 } | 252 } |
| 253 |
| 254 /** |
| 255 * @override |
| 256 * @return {string} |
| 257 */ |
| 258 notFoundText() { |
| 259 return Common.UIString('No commands found'); |
| 260 } |
253 }; | 261 }; |
254 | 262 |
255 QuickOpen.CommandMenuDelegate.MaterialPaletteColors = [ | 263 QuickOpen.CommandMenuDelegate.MaterialPaletteColors = [ |
256 '#F44336', '#E91E63', '#9C27B0', '#673AB7', '#3F51B5', '#03A9F4', '#00BCD4', '
#009688', '#4CAF50', '#8BC34A', | 264 '#F44336', '#E91E63', '#9C27B0', '#673AB7', '#3F51B5', '#03A9F4', '#00BCD4', '
#009688', '#4CAF50', '#8BC34A', |
257 '#CDDC39', '#FFC107', '#FF9800', '#FF5722', '#795548', '#9E9E9E', '#607D8B' | 265 '#CDDC39', '#FFC107', '#FF9800', '#FF5722', '#795548', '#9E9E9E', '#607D8B' |
258 ]; | 266 ]; |
259 | 267 |
260 /** | 268 /** |
261 * @unrestricted | 269 * @unrestricted |
262 */ | 270 */ |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
332 * @param {!UI.Context} context | 340 * @param {!UI.Context} context |
333 * @param {string} actionId | 341 * @param {string} actionId |
334 * @return {boolean} | 342 * @return {boolean} |
335 */ | 343 */ |
336 handleAction(context, actionId) { | 344 handleAction(context, actionId) { |
337 new QuickOpen.FilteredListWidget(new QuickOpen.CommandMenuDelegate()).showAs
Dialog(); | 345 new QuickOpen.FilteredListWidget(new QuickOpen.CommandMenuDelegate()).showAs
Dialog(); |
338 InspectorFrontendHost.bringToFront(); | 346 InspectorFrontendHost.bringToFront(); |
339 return true; | 347 return true; |
340 } | 348 } |
341 }; | 349 }; |
OLD | NEW |