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

Side by Side Diff: Source/devtools/front_end/console/ConsoleView.js

Issue 1273363002: Devtools UI: Show multiple shortcuts, show more shortcuts (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/devtools/front_end/profiler/ProfilesPanel.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 /* 1 /*
2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved.
3 * Copyright (C) 2009 Joseph Pecoraro 3 * Copyright (C) 2009 Joseph Pecoraro
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 this._urlToMessageCount = {}; 53 this._urlToMessageCount = {};
54 this._hiddenByFilterCount = 0; 54 this._hiddenByFilterCount = 0;
55 55
56 /** 56 /**
57 * @type {!Array.<!WebInspector.ConsoleView.RegexMatchRange>} 57 * @type {!Array.<!WebInspector.ConsoleView.RegexMatchRange>}
58 */ 58 */
59 this._regexMatchRanges = []; 59 this._regexMatchRanges = [];
60 60
61 this._clearConsoleButton = new WebInspector.ToolbarButton(WebInspector.UIStr ing("Clear console log"), "clear-toolbar-item"); 61 this._clearConsoleButton = new WebInspector.ToolbarButton(WebInspector.UIStr ing("Clear console log"), "clear-toolbar-item");
62 this._clearConsoleButton.addEventListener("click", this._requestClearMessage s, this); 62 this._clearConsoleButton.addEventListener("click", this._requestClearMessage s, this);
63 this._clearConsoleButton.setShortcut([WebInspector.KeyboardShortcut.makeDesc riptor("l", WebInspector.KeyboardShortcut.Modifiers.Ctrl)]);
pfeldman 2015/08/07 19:54:13 We should instead fetch the shortcut by the action
samli 2015/08/11 01:59:44 There is no action id for clear console at the mom
63 64
64 this._executionContextComboBox = new WebInspector.ToolbarComboBox(null, "con sole-context"); 65 this._executionContextComboBox = new WebInspector.ToolbarComboBox(null, "con sole-context");
65 this._executionContextComboBox.setMaxWidth(200); 66 this._executionContextComboBox.setMaxWidth(200);
66 this._executionContextModel = new WebInspector.ExecutionContextModel(this._e xecutionContextComboBox.selectElement()); 67 this._executionContextModel = new WebInspector.ExecutionContextModel(this._e xecutionContextComboBox.selectElement());
67 68
68 this._filter = new WebInspector.ConsoleViewFilter(this); 69 this._filter = new WebInspector.ConsoleViewFilter(this);
69 this._filter.addEventListener(WebInspector.ConsoleViewFilter.Events.FilterCh anged, this._updateMessageList.bind(this)); 70 this._filter.addEventListener(WebInspector.ConsoleViewFilter.Events.FilterCh anged, this._updateMessageList.bind(this));
70 71
71 this._filterBar = new WebInspector.FilterBar("consoleView"); 72 this._filterBar = new WebInspector.FilterBar("consoleView");
72 73
(...skipping 1229 matching lines...) Expand 10 before | Expand all | Expand 10 after
1302 handleAction: function(context, actionId) 1303 handleAction: function(context, actionId)
1303 { 1304 {
1304 WebInspector.console.show(); 1305 WebInspector.console.show();
1305 } 1306 }
1306 } 1307 }
1307 1308
1308 /** 1309 /**
1309 * @typedef {{messageIndex: number, matchIndex: number}} 1310 * @typedef {{messageIndex: number, matchIndex: number}}
1310 */ 1311 */
1311 WebInspector.ConsoleView.RegexMatchRange; 1312 WebInspector.ConsoleView.RegexMatchRange;
OLDNEW
« no previous file with comments | « no previous file | Source/devtools/front_end/profiler/ProfilesPanel.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698