| 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 28 matching lines...) Expand all Loading... |
| 39 WebInspector.ConsolePanel.prototype = { | 39 WebInspector.ConsolePanel.prototype = { |
| 40 /** | 40 /** |
| 41 * @override | 41 * @override |
| 42 */ | 42 */ |
| 43 wasShown: function() | 43 wasShown: function() |
| 44 { | 44 { |
| 45 WebInspector.Panel.prototype.wasShown.call(this); | 45 WebInspector.Panel.prototype.wasShown.call(this); |
| 46 var wrapper = WebInspector.ConsolePanel.WrapperView._instance; | 46 var wrapper = WebInspector.ConsolePanel.WrapperView._instance; |
| 47 if (wrapper && wrapper.isShowing()) | 47 if (wrapper && wrapper.isShowing()) |
| 48 WebInspector.inspectorView.setDrawerMinimized(true); | 48 WebInspector.inspectorView.setDrawerMinimized(true); |
| 49 this._view.show(this.element); | 49 this._view.show(this.contentElement); |
| 50 }, | 50 }, |
| 51 | 51 |
| 52 /** | 52 /** |
| 53 * @override | 53 * @override |
| 54 */ | 54 */ |
| 55 willHide: function() | 55 willHide: function() |
| 56 { | 56 { |
| 57 WebInspector.Panel.prototype.willHide.call(this); | 57 WebInspector.Panel.prototype.willHide.call(this); |
| 58 if (WebInspector.ConsolePanel.WrapperView._instance) | 58 if (WebInspector.ConsolePanel.WrapperView._instance) |
| 59 WebInspector.ConsolePanel.WrapperView._instance._showViewInWrapper()
; | 59 WebInspector.ConsolePanel.WrapperView._instance._showViewInWrapper()
; |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 WebInspector.inspectorView.setCurrentPanel(WebInspector.ConsolePanel._instan
ce()); | 139 WebInspector.inspectorView.setCurrentPanel(WebInspector.ConsolePanel._instan
ce()); |
| 140 } | 140 } |
| 141 | 141 |
| 142 /** | 142 /** |
| 143 * @return {!WebInspector.ConsolePanel} | 143 * @return {!WebInspector.ConsolePanel} |
| 144 */ | 144 */ |
| 145 WebInspector.ConsolePanel._instance = function() | 145 WebInspector.ConsolePanel._instance = function() |
| 146 { | 146 { |
| 147 return /** @type {!WebInspector.ConsolePanel} */ (self.runtime.sharedInstanc
e(WebInspector.ConsolePanel)); | 147 return /** @type {!WebInspector.ConsolePanel} */ (self.runtime.sharedInstanc
e(WebInspector.ConsolePanel)); |
| 148 } | 148 } |
| OLD | NEW |