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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 | 77 |
78 /** | 78 /** |
79 * @constructor | 79 * @constructor |
80 * @extends {WebInspector.VBox} | 80 * @extends {WebInspector.VBox} |
81 */ | 81 */ |
82 WebInspector.ConsolePanel.WrapperView = function() | 82 WebInspector.ConsolePanel.WrapperView = function() |
83 { | 83 { |
84 WebInspector.VBox.call(this); | 84 WebInspector.VBox.call(this); |
85 this.element.classList.add("console-view-wrapper"); | 85 this.element.classList.add("console-view-wrapper"); |
86 | 86 |
| 87 WebInspector.ConsolePanel.WrapperView._instance = this; |
| 88 |
87 this._view = WebInspector.ConsolePanel._view(); | 89 this._view = WebInspector.ConsolePanel._view(); |
88 // FIXME: this won't be needed once drawer becomes a view. | 90 // FIXME: this won't be needed once drawer becomes a view. |
89 this.wasShown(); | 91 this.wasShown(); |
90 } | 92 } |
91 | 93 |
92 WebInspector.ConsolePanel.WrapperView.prototype = { | 94 WebInspector.ConsolePanel.WrapperView.prototype = { |
93 wasShown: function() | 95 wasShown: function() |
94 { | 96 { |
95 if (!WebInspector.inspectorView.currentPanel() || WebInspector.inspector
View.currentPanel().name !== "console") | 97 if (!WebInspector.inspectorView.currentPanel() || WebInspector.inspector
View.currentPanel().name !== "console") |
96 this._showViewInWrapper(); | 98 this._showViewInWrapper(); |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 return; | 137 return; |
136 | 138 |
137 var consoleView = WebInspector.ConsolePanel._view(); | 139 var consoleView = WebInspector.ConsolePanel._view(); |
138 if (consoleView.isShowing()) { | 140 if (consoleView.isShowing()) { |
139 consoleView.focus(); | 141 consoleView.focus(); |
140 return; | 142 return; |
141 } | 143 } |
142 WebInspector.inspectorView.showViewInDrawer("console"); | 144 WebInspector.inspectorView.showViewInDrawer("console"); |
143 } | 145 } |
144 } | 146 } |
OLD | NEW |