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

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

Issue 162553005: DevTools: Focus console on Ctrl+` (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 10 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
« no previous file with comments | « no previous file | Source/devtools/front_end/inspector.js » ('j') | 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 264 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 }, 275 },
276 276
277 wasShown: function() 277 wasShown: function()
278 { 278 {
279 if (!this.prompt.isCaretInsidePrompt()) 279 if (!this.prompt.isCaretInsidePrompt())
280 this.prompt.moveCaretToEndOfPrompt(); 280 this.prompt.moveCaretToEndOfPrompt();
281 }, 281 },
282 282
283 focus: function() 283 focus: function()
284 { 284 {
285 if (this.promptElement === WebInspector.currentFocusElement())
286 return;
285 WebInspector.setCurrentFocusElement(this.promptElement); 287 WebInspector.setCurrentFocusElement(this.promptElement);
286 this.prompt.moveCaretToEndOfPrompt(); 288 this.prompt.moveCaretToEndOfPrompt();
287 }, 289 },
288 290
289 storeScrollPositions: function() 291 storeScrollPositions: function()
290 { 292 {
291 WebInspector.View.prototype.storeScrollPositions.call(this); 293 WebInspector.View.prototype.storeScrollPositions.call(this);
292 this._scrolledToBottom = this.messagesElement.isScrolledToBottom(); 294 this._scrolledToBottom = this.messagesElement.isScrolledToBottom();
293 }, 295 },
294 296
(...skipping 804 matching lines...) Expand 10 before | Expand all | Expand 10 after
1099 1101
1100 /** 1102 /**
1101 * @type {!WebInspector.ConsoleView} 1103 * @type {!WebInspector.ConsoleView}
1102 */ 1104 */
1103 WebInspector.consoleView; 1105 WebInspector.consoleView;
1104 1106
1105 WebInspector.ConsoleMessage.create = function(source, level, message, type, url, line, column, repeatCount, parameters, stackTrace, requestId, isOutdated) 1107 WebInspector.ConsoleMessage.create = function(source, level, message, type, url, line, column, repeatCount, parameters, stackTrace, requestId, isOutdated)
1106 { 1108 {
1107 return new WebInspector.ConsoleMessageImpl(source, level, message, WebInspec tor.consoleView._linkifier, type, url, line, column, repeatCount, parameters, st ackTrace, requestId, isOutdated); 1109 return new WebInspector.ConsoleMessageImpl(source, level, message, WebInspec tor.consoleView._linkifier, type, url, line, column, repeatCount, parameters, st ackTrace, requestId, isOutdated);
1108 } 1110 }
OLDNEW
« no previous file with comments | « no previous file | Source/devtools/front_end/inspector.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698