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

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

Issue 780503003: [DevTools] Resizing DevTools window should clear autocomplete text from console prompt. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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 451 matching lines...) Expand 10 before | Expand all | Expand 10 after
462 if (this._viewport.scrolledToBottom()) 462 if (this._viewport.scrolledToBottom())
463 this._immediatelyScrollToBottom(); 463 this._immediatelyScrollToBottom();
464 else 464 else
465 WebInspector.View.prototype.restoreScrollPositions.call(this); 465 WebInspector.View.prototype.restoreScrollPositions.call(this);
466 }, 466 },
467 467
468 onResize: function() 468 onResize: function()
469 { 469 {
470 this._scheduleViewportRefresh(); 470 this._scheduleViewportRefresh();
471 this._prompt.hideSuggestBox(); 471 this._prompt.hideSuggestBox();
472 this._prompt.clearAutoComplete(true);
pfeldman 2014/12/03 12:34:38 lgtm Do we think these two come together? If so,
472 if (this._viewport.scrolledToBottom()) 473 if (this._viewport.scrolledToBottom())
473 this._immediatelyScrollToBottom(); 474 this._immediatelyScrollToBottom();
474 }, 475 },
475 476
476 _scheduleViewportRefresh: function() 477 _scheduleViewportRefresh: function()
477 { 478 {
478 /** 479 /**
479 * @param {!WebInspector.Throttler.FinishCallback} finishCallback 480 * @param {!WebInspector.Throttler.FinishCallback} finishCallback
480 * @this {WebInspector.ConsoleView} 481 * @this {WebInspector.ConsoleView}
481 */ 482 */
(...skipping 828 matching lines...) Expand 10 before | Expand all | Expand 10 after
1310 /** 1311 /**
1311 * @override 1312 * @override
1312 * @return {boolean} 1313 * @return {boolean}
1313 */ 1314 */
1314 handleAction: function() 1315 handleAction: function()
1315 { 1316 {
1316 WebInspector.console.show(); 1317 WebInspector.console.show();
1317 return true; 1318 return true;
1318 } 1319 }
1319 } 1320 }
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