| 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 26 matching lines...) Expand all Loading... |
| 37 { | 37 { |
| 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(!C
apabilities.isMainFrontend); |
| 49 WebInspector.console.setUIDelegate(WebInspector.ConsolePanel._consoleVie
w); | 49 |
| 50 } | |
| 51 return WebInspector.ConsolePanel._consoleView; | 50 return WebInspector.ConsolePanel._consoleView; |
| 52 } | 51 } |
| 53 | 52 |
| 54 WebInspector.ConsolePanel.prototype = { | 53 WebInspector.ConsolePanel.prototype = { |
| 55 /** | 54 /** |
| 56 * @return {!Element} | 55 * @return {!Element} |
| 57 */ | 56 */ |
| 58 defaultFocusedElement: function() | 57 defaultFocusedElement: function() |
| 59 { | 58 { |
| 60 return this._view.defaultFocusedElement(); | 59 return this._view.defaultFocusedElement(); |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 return; | 135 return; |
| 137 | 136 |
| 138 var consoleView = WebInspector.ConsolePanel._view(); | 137 var consoleView = WebInspector.ConsolePanel._view(); |
| 139 if (consoleView.isShowing()) { | 138 if (consoleView.isShowing()) { |
| 140 consoleView.focus(); | 139 consoleView.focus(); |
| 141 return; | 140 return; |
| 142 } | 141 } |
| 143 WebInspector.inspectorView.showViewInDrawer("console"); | 142 WebInspector.inspectorView.showViewInDrawer("console"); |
| 144 } | 143 } |
| 145 } | 144 } |
| OLD | NEW |