| 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 551 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 562 _consoleCleared() { | 562 _consoleCleared() { |
| 563 this._currentMatchRangeIndex = -1; | 563 this._currentMatchRangeIndex = -1; |
| 564 this._consoleMessages = []; | 564 this._consoleMessages = []; |
| 565 this._updateMessageList(); | 565 this._updateMessageList(); |
| 566 this._hidePromptSuggestBox(); | 566 this._hidePromptSuggestBox(); |
| 567 this._viewport.setStickToBottom(true); | 567 this._viewport.setStickToBottom(true); |
| 568 this._linkifier.reset(); | 568 this._linkifier.reset(); |
| 569 } | 569 } |
| 570 | 570 |
| 571 _handleContextMenuEvent(event) { | 571 _handleContextMenuEvent(event) { |
| 572 if (event.target.enclosingNodeOrSelfWithNodeName('a')) | |
| 573 return; | |
| 574 | |
| 575 var contextMenu = new UI.ContextMenu(event); | 572 var contextMenu = new UI.ContextMenu(event); |
| 576 if (event.target.isSelfOrDescendant(this._promptElement)) { | 573 if (event.target.isSelfOrDescendant(this._promptElement)) { |
| 577 contextMenu.show(); | 574 contextMenu.show(); |
| 578 return; | 575 return; |
| 579 } | 576 } |
| 580 | 577 |
| 581 function monitoringXHRItemAction() { | 578 function monitoringXHRItemAction() { |
| 582 Common.moduleSetting('monitoringXHREnabled').set(!Common.moduleSetting('mo
nitoringXHREnabled').get()); | 579 Common.moduleSetting('monitoringXHREnabled').set(!Common.moduleSetting('mo
nitoringXHREnabled').get()); |
| 583 } | 580 } |
| 584 contextMenu.appendCheckboxItem( | 581 contextMenu.appendCheckboxItem( |
| (...skipping 745 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1330 return true; | 1327 return true; |
| 1331 } | 1328 } |
| 1332 return false; | 1329 return false; |
| 1333 } | 1330 } |
| 1334 }; | 1331 }; |
| 1335 | 1332 |
| 1336 /** | 1333 /** |
| 1337 * @typedef {{messageIndex: number, matchIndex: number}} | 1334 * @typedef {{messageIndex: number, matchIndex: number}} |
| 1338 */ | 1335 */ |
| 1339 Console.ConsoleView.RegexMatchRange; | 1336 Console.ConsoleView.RegexMatchRange; |
| OLD | NEW |