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

Side by Side Diff: Source/devtools/front_end/ConsoleView.js

Issue 102003004: [DevTools] Do not filter manually entered commands in console. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed blank lines. Created 7 years 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 | Annotate | Revision Log
« no previous file with comments | « Source/devtools/front_end/ConsoleModel.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 825 matching lines...) Expand 10 before | Expand all | Expand 10 after
836 836
837 /** 837 /**
838 * @param {WebInspector.ConsoleMessage} message 838 * @param {WebInspector.ConsoleMessage} message
839 * @return {boolean} 839 * @return {boolean}
840 */ 840 */
841 shouldBeVisible: function(message) 841 shouldBeVisible: function(message)
842 { 842 {
843 if ((message.type === WebInspector.ConsoleMessage.MessageType.StartGroup || message.type === WebInspector.ConsoleMessage.MessageType.StartGroupCollapsed || message.type === WebInspector.ConsoleMessage.MessageType.EndGroup)) 843 if ((message.type === WebInspector.ConsoleMessage.MessageType.StartGroup || message.type === WebInspector.ConsoleMessage.MessageType.StartGroupCollapsed || message.type === WebInspector.ConsoleMessage.MessageType.EndGroup))
844 return true; 844 return true;
845 845
846 if (message.type === WebInspector.ConsoleMessage.MessageType.Result || m essage.type === WebInspector.ConsoleMessage.MessageType.Command)
847 return true;
848
846 if (message.url && this._messageURLFilters[message.url]) 849 if (message.url && this._messageURLFilters[message.url])
847 return false; 850 return false;
848 851
849 if (message.level && !this._levelFilterUI.accept(message.level)) 852 if (message.level && !this._levelFilterUI.accept(message.level))
850 return false; 853 return false;
851 854
852 if (this._filterRegex) { 855 if (this._filterRegex) {
853 this._filterRegex.lastIndex = 0; 856 this._filterRegex.lastIndex = 0;
854 if (!message.matchesRegex(this._filterRegex)) 857 if (!message.matchesRegex(this._filterRegex))
855 return false; 858 return false;
(...skipping 14 matching lines...) Expand all
870 }; 873 };
871 874
872 875
873 /** 876 /**
874 * @constructor 877 * @constructor
875 * @extends WebInspector.ConsoleMessage 878 * @extends WebInspector.ConsoleMessage
876 */ 879 */
877 WebInspector.ConsoleCommand = function(text) 880 WebInspector.ConsoleCommand = function(text)
878 { 881 {
879 this.text = text; 882 this.text = text;
883 this.type = WebInspector.ConsoleMessage.MessageType.Command;
880 } 884 }
881 885
882 WebInspector.ConsoleCommand.prototype = { 886 WebInspector.ConsoleCommand.prototype = {
883 wasShown: function() 887 wasShown: function()
884 { 888 {
885 }, 889 },
886 890
887 willHide: function() 891 willHide: function()
888 { 892 {
889 }, 893 },
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
1063 1067
1064 /** 1068 /**
1065 * @type {?WebInspector.ConsoleView} 1069 * @type {?WebInspector.ConsoleView}
1066 */ 1070 */
1067 WebInspector.consoleView = null; 1071 WebInspector.consoleView = null;
1068 1072
1069 WebInspector.ConsoleMessage.create = function(source, level, message, type, url, line, column, repeatCount, parameters, stackTrace, requestId, isOutdated) 1073 WebInspector.ConsoleMessage.create = function(source, level, message, type, url, line, column, repeatCount, parameters, stackTrace, requestId, isOutdated)
1070 { 1074 {
1071 return new WebInspector.ConsoleMessageImpl(source, level, message, WebInspec tor.consoleView._linkifier, type, url, line, column, repeatCount, parameters, st ackTrace, requestId, isOutdated); 1075 return new WebInspector.ConsoleMessageImpl(source, level, message, WebInspec tor.consoleView._linkifier, type, url, line, column, repeatCount, parameters, st ackTrace, requestId, isOutdated);
1072 } 1076 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/ConsoleModel.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698