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 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
327 this._updateMessageList(); | 327 this._updateMessageList(); |
328 this._consoleMessages.forEach(function(viewMessage) { | 328 this._consoleMessages.forEach(function(viewMessage) { |
329 viewMessage.updateTimestamp(enabled); | 329 viewMessage.updateTimestamp(enabled); |
330 }); | 330 }); |
331 } | 331 } |
332 | 332 |
333 _executionContextChanged() { | 333 _executionContextChanged() { |
334 this._prompt.clearAutocomplete(); | 334 this._prompt.clearAutocomplete(); |
335 if (!this._showAllMessagesCheckbox.checked()) | 335 if (!this._showAllMessagesCheckbox.checked()) |
336 this._updateMessageList(); | 336 this._updateMessageList(); |
| 337 this._consoleMessages.forEach(message => message.updateContextLabel()); |
337 } | 338 } |
338 | 339 |
339 /** | 340 /** |
340 * @override | 341 * @override |
341 */ | 342 */ |
342 willHide() { | 343 willHide() { |
343 this._hidePromptSuggestBox(); | 344 this._hidePromptSuggestBox(); |
344 } | 345 } |
345 | 346 |
346 /** | 347 /** |
(...skipping 987 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1334 return true; | 1335 return true; |
1335 } | 1336 } |
1336 return false; | 1337 return false; |
1337 } | 1338 } |
1338 }; | 1339 }; |
1339 | 1340 |
1340 /** | 1341 /** |
1341 * @typedef {{messageIndex: number, matchIndex: number}} | 1342 * @typedef {{messageIndex: number, matchIndex: number}} |
1342 */ | 1343 */ |
1343 Console.ConsoleView.RegexMatchRange; | 1344 Console.ConsoleView.RegexMatchRange; |
OLD | NEW |