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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 this._promptElement.id = 'console-prompt'; | 128 this._promptElement.id = 'console-prompt'; |
129 | 129 |
130 // FIXME: This is a workaround for the selection machinery bug. See crbug.co
m/410899 | 130 // FIXME: This is a workaround for the selection machinery bug. See crbug.co
m/410899 |
131 var selectAllFixer = this._messagesElement.createChild('div', 'console-view-
fix-select-all'); | 131 var selectAllFixer = this._messagesElement.createChild('div', 'console-view-
fix-select-all'); |
132 selectAllFixer.textContent = '.'; | 132 selectAllFixer.textContent = '.'; |
133 | 133 |
134 this._registerShortcuts(); | 134 this._registerShortcuts(); |
135 | 135 |
136 this._messagesElement.addEventListener('contextmenu', this._handleContextMen
uEvent.bind(this), false); | 136 this._messagesElement.addEventListener('contextmenu', this._handleContextMen
uEvent.bind(this), false); |
137 | 137 |
138 this._linkifier = new Components.Linkifier(); | 138 this._linkifier = new Components.Linkifier(Console.ConsoleViewMessage.MaxLen
gthForLinks); |
139 this._badgePool = new ProductRegistry.BadgePool(); | 139 this._badgePool = new ProductRegistry.BadgePool(); |
140 | 140 |
141 /** @type {!Array.<!Console.ConsoleViewMessage>} */ | 141 /** @type {!Array.<!Console.ConsoleViewMessage>} */ |
142 this._consoleMessages = []; | 142 this._consoleMessages = []; |
143 this._viewMessageSymbol = Symbol('viewMessage'); | 143 this._viewMessageSymbol = Symbol('viewMessage'); |
144 | 144 |
145 this._consoleHistorySetting = Common.settings.createLocalSetting('consoleHis
tory', []); | 145 this._consoleHistorySetting = Common.settings.createLocalSetting('consoleHis
tory', []); |
146 | 146 |
147 this._prompt = new Console.ConsolePrompt(); | 147 this._prompt = new Console.ConsolePrompt(); |
148 this._prompt.show(this._promptElement); | 148 this._prompt.show(this._promptElement); |
(...skipping 1127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1276 return true; | 1276 return true; |
1277 } | 1277 } |
1278 return false; | 1278 return false; |
1279 } | 1279 } |
1280 }; | 1280 }; |
1281 | 1281 |
1282 /** | 1282 /** |
1283 * @typedef {{messageIndex: number, matchIndex: number}} | 1283 * @typedef {{messageIndex: number, matchIndex: number}} |
1284 */ | 1284 */ |
1285 Console.ConsoleView.RegexMatchRange; | 1285 Console.ConsoleView.RegexMatchRange; |
OLD | NEW |