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

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

Issue 773883003: [DevTools] Console view should hide the suggestion box upon console clear (Ctrl/Cmd+L). (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Reuploading the patch Created 6 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
« no previous file with comments | « no previous file | 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 600 matching lines...) Expand 10 before | Expand all | Expand 10 after
611 default: 611 default:
612 return new WebInspector.ConsoleViewMessage(message, this._linkifier, nestingLevel); 612 return new WebInspector.ConsoleViewMessage(message, this._linkifier, nestingLevel);
613 } 613 }
614 }, 614 },
615 615
616 _consoleCleared: function() 616 _consoleCleared: function()
617 { 617 {
618 this._clearCurrentSearchResultHighlight(); 618 this._clearCurrentSearchResultHighlight();
619 this._consoleMessages = []; 619 this._consoleMessages = [];
620 this._updateMessageList(); 620 this._updateMessageList();
621 this._prompt.hideSuggestBox();
622 this._prompt.clearAutoComplete(true);
621 623
622 if (this._searchRegex) 624 if (this._searchRegex)
623 this._searchableView.updateSearchMatchesCount(0); 625 this._searchableView.updateSearchMatchesCount(0);
624 626
625 this._linkifier.reset(); 627 this._linkifier.reset();
626 }, 628 },
627 629
628 _handleContextMenuEvent: function(event) 630 _handleContextMenuEvent: function(event)
629 { 631 {
630 if (event.target.enclosingNodeOrSelfWithNodeName("a")) 632 if (event.target.enclosingNodeOrSelfWithNodeName("a"))
(...skipping 679 matching lines...) Expand 10 before | Expand all | Expand 10 after
1310 /** 1312 /**
1311 * @override 1313 * @override
1312 * @return {boolean} 1314 * @return {boolean}
1313 */ 1315 */
1314 handleAction: function() 1316 handleAction: function()
1315 { 1317 {
1316 WebInspector.console.show(); 1318 WebInspector.console.show();
1317 return true; 1319 return true;
1318 } 1320 }
1319 } 1321 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698