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

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

Issue 388963004: DevTools: get rid of the global capabilities set. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: For landing Created 6 years, 5 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) 2009 Joseph Pecoraro 2 * Copyright (C) 2009 Joseph Pecoraro
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 27 matching lines...) Expand all
38 WebInspector.Panel.call(this, "console"); 38 WebInspector.Panel.call(this, "console");
39 this._view = WebInspector.ConsolePanel._view(); 39 this._view = WebInspector.ConsolePanel._view();
40 } 40 }
41 41
42 /** 42 /**
43 * @return {!WebInspector.ConsoleView} 43 * @return {!WebInspector.ConsoleView}
44 */ 44 */
45 WebInspector.ConsolePanel._view = function() 45 WebInspector.ConsolePanel._view = function()
46 { 46 {
47 if (!WebInspector.ConsolePanel._consoleView) 47 if (!WebInspector.ConsolePanel._consoleView)
48 WebInspector.ConsolePanel._consoleView = new WebInspector.ConsoleView(!C apabilities.isMainFrontend); 48 WebInspector.ConsolePanel._consoleView = new WebInspector.ConsoleView(We bInspector.isWorkerFrontend());
49 49
50 return WebInspector.ConsolePanel._consoleView; 50 return WebInspector.ConsolePanel._consoleView;
51 } 51 }
52 52
53 WebInspector.ConsolePanel.prototype = { 53 WebInspector.ConsolePanel.prototype = {
54 /** 54 /**
55 * @return {!Element} 55 * @return {!Element}
56 */ 56 */
57 defaultFocusedElement: function() 57 defaultFocusedElement: function()
58 { 58 {
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 return; 137 return;
138 138
139 var consoleView = WebInspector.ConsolePanel._view(); 139 var consoleView = WebInspector.ConsolePanel._view();
140 if (consoleView.isShowing()) { 140 if (consoleView.isShowing()) {
141 consoleView.focus(); 141 consoleView.focus();
142 return; 142 return;
143 } 143 }
144 WebInspector.inspectorView.showViewInDrawer("console"); 144 WebInspector.inspectorView.showViewInDrawer("console");
145 } 145 }
146 } 146 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/common/Settings.js ('k') | Source/devtools/front_end/host/Platform.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698