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

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

Issue 1113813002: [DevTools] Rename View to Widget. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebased Created 5 years, 7 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 | Annotate | Revision Log
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 472 matching lines...) Expand 10 before | Expand all | Expand 10 after
483 return; 483 return;
484 WebInspector.setCurrentFocusElement(this._promptElement); 484 WebInspector.setCurrentFocusElement(this._promptElement);
485 this._prompt.moveCaretToEndOfPrompt(); 485 this._prompt.moveCaretToEndOfPrompt();
486 }, 486 },
487 487
488 restoreScrollPositions: function() 488 restoreScrollPositions: function()
489 { 489 {
490 if (this._viewport.scrolledToBottom()) 490 if (this._viewport.scrolledToBottom())
491 this._immediatelyScrollToBottom(); 491 this._immediatelyScrollToBottom();
492 else 492 else
493 WebInspector.View.prototype.restoreScrollPositions.call(this); 493 WebInspector.Widget.prototype.restoreScrollPositions.call(this);
494 }, 494 },
495 495
496 onResize: function() 496 onResize: function()
497 { 497 {
498 this._scheduleViewportRefresh(); 498 this._scheduleViewportRefresh();
499 this._hidePromptSuggestBox(); 499 this._hidePromptSuggestBox();
500 if (this._viewport.scrolledToBottom()) 500 if (this._viewport.scrolledToBottom())
501 this._immediatelyScrollToBottom(); 501 this._immediatelyScrollToBottom();
502 }, 502 },
503 503
(...skipping 934 matching lines...) Expand 10 before | Expand all | Expand 10 after
1438 handleAction: function(context, actionId) 1438 handleAction: function(context, actionId)
1439 { 1439 {
1440 WebInspector.console.show(); 1440 WebInspector.console.show();
1441 } 1441 }
1442 } 1442 }
1443 1443
1444 /** 1444 /**
1445 * @typedef {{messageIndex: number, matchIndex: number}} 1445 * @typedef {{messageIndex: number, matchIndex: number}}
1446 */ 1446 */
1447 WebInspector.ConsoleView.RegexMatchRange; 1447 WebInspector.ConsoleView.RegexMatchRange;
OLDNEW
« no previous file with comments | « Source/devtools/front_end/components_lazy/FilmStripView.js ('k') | Source/devtools/front_end/console/ConsoleViewMessage.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698