| 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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 this._scrolledToBottom = true; | 84 this._scrolledToBottom = true; |
| 85 | 85 |
| 86 this._filterStatusMessageElement = this._messagesElement.createChild("div",
"console-message"); | 86 this._filterStatusMessageElement = this._messagesElement.createChild("div",
"console-message"); |
| 87 this._filterStatusTextElement = this._filterStatusMessageElement.createChild
("span", "console-info"); | 87 this._filterStatusTextElement = this._filterStatusMessageElement.createChild
("span", "console-info"); |
| 88 this._filterStatusMessageElement.createTextChild(" "); | 88 this._filterStatusMessageElement.createTextChild(" "); |
| 89 var resetFiltersLink = this._filterStatusMessageElement.createChild("span",
"console-info node-link"); | 89 var resetFiltersLink = this._filterStatusMessageElement.createChild("span",
"console-info node-link"); |
| 90 resetFiltersLink.textContent = WebInspector.UIString("Show all messages."); | 90 resetFiltersLink.textContent = WebInspector.UIString("Show all messages."); |
| 91 resetFiltersLink.addEventListener("click", this._filter.reset.bind(this._fil
ter), true); | 91 resetFiltersLink.addEventListener("click", this._filter.reset.bind(this._fil
ter), true); |
| 92 | 92 |
| 93 this._messagesContainer = this._messagesElement.createChild("div", "console-
group"); | 93 this._messagesContainer = this._messagesElement.createChild("div", "console-
group"); |
| 94 this._messagesContainer.classList.add("console-group-messages"); |
| 94 this._topGroup = WebInspector.ConsoleGroup.createTopGroup(); | 95 this._topGroup = WebInspector.ConsoleGroup.createTopGroup(); |
| 95 this._currentGroup = this._topGroup; | 96 this._currentGroup = this._topGroup; |
| 96 | 97 |
| 97 this._promptElement = this._messagesElement.createChild("div", "source-code"
); | 98 this._promptElement = this._messagesElement.createChild("div", "source-code"
); |
| 98 this._promptElement.id = "console-prompt"; | 99 this._promptElement.id = "console-prompt"; |
| 99 this._promptElement.spellcheck = false; | 100 this._promptElement.spellcheck = false; |
| 100 this._promptElement.addEventListener("paste", this._onPasteIntoPrompt.bind(t
his), false); | 101 this._promptElement.addEventListener("paste", this._onPasteIntoPrompt.bind(t
his), false); |
| 101 this._promptElement.addEventListener("drop", this._onPasteIntoPrompt.bind(th
is), false); | 102 this._promptElement.addEventListener("drop", this._onPasteIntoPrompt.bind(th
is), false); |
| 102 this._messagesElement.appendChild(this._promptElement); | 103 this._messagesElement.appendChild(this._promptElement); |
| 103 this._messagesElement.appendChild(document.createElement("br")); | 104 this._messagesElement.appendChild(document.createElement("br")); |
| (...skipping 1039 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1143 WebInspector.ConsoleView.ShowConsoleActionDelegate.prototype = { | 1144 WebInspector.ConsoleView.ShowConsoleActionDelegate.prototype = { |
| 1144 /** | 1145 /** |
| 1145 * @return {boolean} | 1146 * @return {boolean} |
| 1146 */ | 1147 */ |
| 1147 handleAction: function() | 1148 handleAction: function() |
| 1148 { | 1149 { |
| 1149 WebInspector.console.show(); | 1150 WebInspector.console.show(); |
| 1150 return true; | 1151 return true; |
| 1151 } | 1152 } |
| 1152 } | 1153 } |
| OLD | NEW |