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 610 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
621 evaluateUsingTextPrompt: function(expression, showResultOnly) | 621 evaluateUsingTextPrompt: function(expression, showResultOnly) |
622 { | 622 { |
623 this._appendCommand(expression, this.prompt.text, false, showResultOnly)
; | 623 this._appendCommand(expression, this.prompt.text, false, showResultOnly)
; |
624 }, | 624 }, |
625 | 625 |
626 _enterKeyPressed: function(event) | 626 _enterKeyPressed: function(event) |
627 { | 627 { |
628 if (event.altKey || event.ctrlKey || event.shiftKey) | 628 if (event.altKey || event.ctrlKey || event.shiftKey) |
629 return; | 629 return; |
630 | 630 |
631 event.consume(); | 631 event.consume(true); |
632 | 632 |
633 this.prompt.clearAutoComplete(true); | 633 this.prompt.clearAutoComplete(true); |
634 | 634 |
635 var str = this.prompt.text; | 635 var str = this.prompt.text; |
636 if (!str.length) | 636 if (!str.length) |
637 return; | 637 return; |
638 this._appendCommand(str, "", true, false); | 638 this._appendCommand(str, "", true, false); |
639 }, | 639 }, |
640 | 640 |
641 _appendCommand: function(text, newPromptText, useCommandLineAPI, showResultO
nly) | 641 _appendCommand: function(text, newPromptText, useCommandLineAPI, showResultO
nly) |
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
839 if (groupTitleElement) { | 839 if (groupTitleElement) { |
840 var groupElement = groupTitleElement.enclosingNodeOrSelfWithClass("c
onsole-group"); | 840 var groupElement = groupTitleElement.enclosingNodeOrSelfWithClass("c
onsole-group"); |
841 if (groupElement) | 841 if (groupElement) |
842 if (groupElement.hasStyleClass("collapsed")) | 842 if (groupElement.hasStyleClass("collapsed")) |
843 groupElement.removeStyleClass("collapsed"); | 843 groupElement.removeStyleClass("collapsed"); |
844 else | 844 else |
845 groupElement.addStyleClass("collapsed"); | 845 groupElement.addStyleClass("collapsed"); |
846 groupTitleElement.scrollIntoViewIfNeeded(true); | 846 groupTitleElement.scrollIntoViewIfNeeded(true); |
847 } | 847 } |
848 | 848 |
849 event.consume(); | 849 event.consume(true); |
850 } | 850 } |
851 } | 851 } |
852 | 852 |
853 /** | 853 /** |
854 * @type {?WebInspector.ConsoleView} | 854 * @type {?WebInspector.ConsoleView} |
855 */ | 855 */ |
856 WebInspector.consoleView = null; | 856 WebInspector.consoleView = null; |
857 | 857 |
858 WebInspector.ConsoleMessage.create = function(source, level, message, type, url,
line, repeatCount, parameters, stackTrace, request) | 858 WebInspector.ConsoleMessage.create = function(source, level, message, type, url,
line, repeatCount, parameters, stackTrace, request) |
859 { | 859 { |
860 return new WebInspector.ConsoleMessageImpl(source, level, message, WebInspec
tor.consoleView._linkifier, type, url, line, repeatCount, parameters, stackTrace
, request); | 860 return new WebInspector.ConsoleMessageImpl(source, level, message, WebInspec
tor.consoleView._linkifier, type, url, line, repeatCount, parameters, stackTrace
, request); |
861 } | 861 } |
OLD | NEW |