Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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 Loading... | |
| 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; |
| OLD | NEW |