OLD | NEW |
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 Loading... |
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 Loading... |
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; |
OLD | NEW |