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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 { | 80 { |
81 WebInspector.VBox.call(this); | 81 WebInspector.VBox.call(this); |
82 this.element.classList.add("console-view-wrapper"); | 82 this.element.classList.add("console-view-wrapper"); |
83 | 83 |
84 WebInspector.ConsolePanel.WrapperView._instance = this; | 84 WebInspector.ConsolePanel.WrapperView._instance = this; |
85 | 85 |
86 this._view = WebInspector.ConsoleView.instance(); | 86 this._view = WebInspector.ConsoleView.instance(); |
87 }; | 87 }; |
88 | 88 |
89 WebInspector.ConsolePanel.WrapperView.prototype = { | 89 WebInspector.ConsolePanel.WrapperView.prototype = { |
| 90 /** |
| 91 * @override |
| 92 */ |
90 wasShown: function() | 93 wasShown: function() |
91 { | 94 { |
92 if (!WebInspector.ConsolePanel.instance().isShowing()) | 95 if (!WebInspector.ConsolePanel.instance().isShowing()) |
93 this._showViewInWrapper(); | 96 this._showViewInWrapper(); |
94 else | 97 else |
95 WebInspector.inspectorView.setDrawerMinimized(true); | 98 WebInspector.inspectorView.setDrawerMinimized(true); |
96 }, | 99 }, |
97 | 100 |
| 101 /** |
| 102 * @override |
| 103 */ |
98 willHide: function() | 104 willHide: function() |
99 { | 105 { |
100 WebInspector.inspectorView.setDrawerMinimized(false); | 106 WebInspector.inspectorView.setDrawerMinimized(false); |
101 }, | 107 }, |
102 | 108 |
103 _showViewInWrapper: function() | 109 _showViewInWrapper: function() |
104 { | 110 { |
105 this._view.show(this.element); | 111 this._view.show(this.element); |
106 }, | 112 }, |
107 | 113 |
(...skipping 26 matching lines...) Expand all Loading... |
134 } | 140 } |
135 }; | 141 }; |
136 | 142 |
137 /** | 143 /** |
138 * @return {!WebInspector.ConsolePanel} | 144 * @return {!WebInspector.ConsolePanel} |
139 */ | 145 */ |
140 WebInspector.ConsolePanel.instance = function() | 146 WebInspector.ConsolePanel.instance = function() |
141 { | 147 { |
142 return /** @type {!WebInspector.ConsolePanel} */ (self.runtime.sharedInstanc
e(WebInspector.ConsolePanel)); | 148 return /** @type {!WebInspector.ConsolePanel} */ (self.runtime.sharedInstanc
e(WebInspector.ConsolePanel)); |
143 }; | 149 }; |
OLD | NEW |