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

Side by Side Diff: Source/devtools/front_end/inspector.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 | « Source/devtools/front_end/ConsoleView.js ('k') | 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) 2006, 2007, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved.
3 * Copyright (C) 2007 Matt Lilek (pewtermoose@gmail.com). 3 * Copyright (C) 2007 Matt Lilek (pewtermoose@gmail.com).
4 * Copyright (C) 2009 Joseph Pecoraro 4 * Copyright (C) 2009 Joseph Pecoraro
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 9 *
10 * 1. Redistributions of source code must retain the above copyright 10 * 1. Redistributions of source code must retain the above copyright
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 * @return {boolean} 126 * @return {boolean}
127 */ 127 */
128 isWorkerFrontend: function() 128 isWorkerFrontend: function()
129 { 129 {
130 return !!WebInspector.queryParamsObject["dedicatedWorkerId"] || 130 return !!WebInspector.queryParamsObject["dedicatedWorkerId"] ||
131 !!WebInspector.queryParamsObject["isSharedWorker"]; 131 !!WebInspector.queryParamsObject["isSharedWorker"];
132 }, 132 },
133 133
134 showConsole: function() 134 showConsole: function()
135 { 135 {
136 if (this.consoleView.isShowing()) 136 if (this.consoleView.isShowing()) {
137 this.consoleView.focus();
137 return; 138 return;
139 }
138 this.inspectorView.showViewInDrawer("console"); 140 this.inspectorView.showViewInDrawer("console");
139 }, 141 },
140 142
141 _resetErrorAndWarningCounts: function() 143 _resetErrorAndWarningCounts: function()
142 { 144 {
143 WebInspector.inspectorView.setErrorAndWarningCounts(0, 0); 145 WebInspector.inspectorView.setErrorAndWarningCounts(0, 0);
144 }, 146 },
145 147
146 _updateErrorAndWarningCounts: function() 148 _updateErrorAndWarningCounts: function()
147 { 149 {
(...skipping 698 matching lines...) Expand 10 before | Expand all | Expand 10 after
846 WebInspector.addMainEventListeners = function(doc) 848 WebInspector.addMainEventListeners = function(doc)
847 { 849 {
848 doc.addEventListener("keydown", this.postDocumentKeyDown.bind(this), false); 850 doc.addEventListener("keydown", this.postDocumentKeyDown.bind(this), false);
849 doc.addEventListener("beforecopy", this.documentCanCopy.bind(this), true); 851 doc.addEventListener("beforecopy", this.documentCanCopy.bind(this), true);
850 doc.addEventListener("copy", this.documentCopy.bind(this), false); 852 doc.addEventListener("copy", this.documentCopy.bind(this), false);
851 doc.addEventListener("contextmenu", this.contextMenuEventFired.bind(this), t rue); 853 doc.addEventListener("contextmenu", this.contextMenuEventFired.bind(this), t rue);
852 doc.addEventListener("click", this.documentClick.bind(this), false); 854 doc.addEventListener("click", this.documentClick.bind(this), false);
853 } 855 }
854 856
855 window.DEBUG = true; 857 window.DEBUG = true;
OLDNEW
« no previous file with comments | « Source/devtools/front_end/ConsoleView.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698