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

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

Issue 2903083002: DevTools: shorten console links to 40 chars (Closed)
Patch Set: Created 3 years, 6 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
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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698