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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 this._filterBar = new WebInspector.FilterBar(); | 63 this._filterBar = new WebInspector.FilterBar(); |
64 | 64 |
65 var statusBarElement = this._contentsElement.createChild("div", "console-sta
tus-bar"); | 65 var statusBarElement = this._contentsElement.createChild("div", "console-sta
tus-bar"); |
66 statusBarElement.appendChild(this._clearConsoleButton.element); | 66 statusBarElement.appendChild(this._clearConsoleButton.element); |
67 statusBarElement.appendChild(this._filterBar.filterButton().element); | 67 statusBarElement.appendChild(this._filterBar.filterButton().element); |
68 statusBarElement.appendChild(this._executionContextSelector.element); | 68 statusBarElement.appendChild(this._executionContextSelector.element); |
69 | 69 |
70 this._filtersContainer = this._contentsElement.createChild("div", "console-f
ilters-header hidden"); | 70 this._filtersContainer = this._contentsElement.createChild("div", "console-f
ilters-header hidden"); |
71 this._filtersContainer.appendChild(this._filterBar.filtersElement()); | 71 this._filtersContainer.appendChild(this._filterBar.filtersElement()); |
72 this._filterBar.addEventListener(WebInspector.FilterBar.Events.FiltersToggle
d, this._onFiltersToggled, this); | 72 this._filterBar.addEventListener(WebInspector.FilterBar.Events.FiltersToggle
d, this._onFiltersToggled, this); |
| 73 this._filterBar.setName("consoleView"); |
73 this._filter.addFilters(this._filterBar); | 74 this._filter.addFilters(this._filterBar); |
74 | 75 |
75 this.messagesElement = document.createElement("div"); | 76 this.messagesElement = document.createElement("div"); |
76 this.messagesElement.id = "console-messages"; | 77 this.messagesElement.id = "console-messages"; |
77 this.messagesElement.className = "monospace"; | 78 this.messagesElement.className = "monospace"; |
78 this.messagesElement.addEventListener("click", this._messagesClicked.bind(th
is), true); | 79 this.messagesElement.addEventListener("click", this._messagesClicked.bind(th
is), true); |
79 this._contentsElement.appendChild(this.messagesElement); | 80 this._contentsElement.appendChild(this.messagesElement); |
80 this._scrolledToBottom = true; | 81 this._scrolledToBottom = true; |
81 | 82 |
82 this.promptElement = document.createElement("div"); | 83 this.promptElement = document.createElement("div"); |
(...skipping 1109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1192 WebInspector.ConsoleView.ShowConsoleActionDelegate.prototype = { | 1193 WebInspector.ConsoleView.ShowConsoleActionDelegate.prototype = { |
1193 /** | 1194 /** |
1194 * @return {boolean} | 1195 * @return {boolean} |
1195 */ | 1196 */ |
1196 handleAction: function() | 1197 handleAction: function() |
1197 { | 1198 { |
1198 WebInspector.console.show(); | 1199 WebInspector.console.show(); |
1199 return true; | 1200 return true; |
1200 } | 1201 } |
1201 } | 1202 } |
OLD | NEW |