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