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

Side by Side Diff: Source/WebCore/inspector/front-end/ConsoleView.js

Issue 9968120: Merge 112992 - Web Inspector: "Pause on start" doesn't change checked state in workers panel (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1084/
Patch Set: Created 8 years, 8 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 610 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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 }
OLDNEW
« no previous file with comments | « Source/WebCore/inspector/front-end/CSSSelectorProfileView.js ('k') | Source/WebCore/inspector/front-end/DataGrid.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698