| 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 * @return {!Element} | 42 * @return {!Element} |
| 43 */ | 43 */ |
| 44 defaultFocusedElement: function() | 44 defaultFocusedElement: function() |
| 45 { | 45 { |
| 46 return this._view.defaultFocusedElement(); | 46 return this._view.defaultFocusedElement(); |
| 47 }, | 47 }, |
| 48 | 48 |
| 49 /** | 49 /** |
| 50 * @override | 50 * @override |
| 51 */ | 51 */ |
| 52 focus: function() |
| 53 { |
| 54 this._view.focus(); |
| 55 }, |
| 56 |
| 57 /** |
| 58 * @override |
| 59 */ |
| 52 wasShown: function() | 60 wasShown: function() |
| 53 { | 61 { |
| 54 WebInspector.Panel.prototype.wasShown.call(this); | 62 WebInspector.Panel.prototype.wasShown.call(this); |
| 55 var wrapper = WebInspector.ConsolePanel.WrapperView._instance; | 63 var wrapper = WebInspector.ConsolePanel.WrapperView._instance; |
| 56 if (wrapper && wrapper.isShowing()) | 64 if (wrapper && wrapper.isShowing()) |
| 57 WebInspector.inspectorView.setDrawerMinimized(true); | 65 WebInspector.inspectorView.setDrawerMinimized(true); |
| 58 this._view.show(this.element); | 66 this._view.show(this.element); |
| 59 }, | 67 }, |
| 60 | 68 |
| 61 /** | 69 /** |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 WebInspector.ConsolePanelFactory.prototype = { | 191 WebInspector.ConsolePanelFactory.prototype = { |
| 184 /** | 192 /** |
| 185 * @override | 193 * @override |
| 186 * @return {!WebInspector.Panel} | 194 * @return {!WebInspector.Panel} |
| 187 */ | 195 */ |
| 188 createPanel: function() | 196 createPanel: function() |
| 189 { | 197 { |
| 190 return WebInspector.ConsolePanel._instance(); | 198 return WebInspector.ConsolePanel._instance(); |
| 191 } | 199 } |
| 192 } | 200 } |
| OLD | NEW |