OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. |
3 * Copyright (C) 2007 Matt Lilek (pewtermoose@gmail.com). | 3 * Copyright (C) 2007 Matt Lilek (pewtermoose@gmail.com). |
4 * Copyright (C) 2009 Joseph Pecoraro | 4 * Copyright (C) 2009 Joseph Pecoraro |
5 * | 5 * |
6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
8 * are met: | 8 * are met: |
9 * | 9 * |
10 * 1. Redistributions of source code must retain the above copyright | 10 * 1. Redistributions of source code must retain the above copyright |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 this._removeDrawerView(); | 143 this._removeDrawerView(); |
144 | 144 |
145 // Once drawer is closed console should be shown if it was shown bef
ore current view replaced it in drawer. | 145 // Once drawer is closed console should be shown if it was shown bef
ore current view replaced it in drawer. |
146 if (this._consoleWasShown) | 146 if (this._consoleWasShown) |
147 this.showConsole(); | 147 this.showConsole(); |
148 else | 148 else |
149 this.drawer.hide(WebInspector.Drawer.AnimationType.Immediately); | 149 this.drawer.hide(WebInspector.Drawer.AnimationType.Immediately); |
150 } | 150 } |
151 }, | 151 }, |
152 | 152 |
| 153 /** |
| 154 * @param {WebInspector.Drawer.AnimationType=} animationType |
| 155 */ |
| 156 closeDrawer : function(animationType) |
| 157 { |
| 158 if (WebInspector.drawer.visible) { |
| 159 if (this._drawerStatusBarHeader) { |
| 160 this._removeDrawerView(); |
| 161 delete this._consoleWasShown; |
| 162 this.drawer.hide(animationType); |
| 163 } else if (this.consoleView.isShowing()) { |
| 164 this.closeConsole(animationType); |
| 165 } |
| 166 } |
| 167 }, |
| 168 |
153 _removeDrawerView: function() | 169 _removeDrawerView: function() |
154 { | 170 { |
155 if (this._drawerStatusBarHeader) { | 171 if (this._drawerStatusBarHeader) { |
156 this._drawerStatusBarHeader.removeSelf(); | 172 this._drawerStatusBarHeader.removeSelf(); |
157 if (this._drawerStatusBarHeader.onclose) | 173 if (this._drawerStatusBarHeader.onclose) |
158 this._drawerStatusBarHeader.onclose(); | 174 this._drawerStatusBarHeader.onclose(); |
159 delete this._drawerStatusBarHeader; | 175 delete this._drawerStatusBarHeader; |
160 } | 176 } |
161 }, | 177 }, |
162 | 178 |
(...skipping 933 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1096 | 1112 |
1097 /** | 1113 /** |
1098 * @return {string} | 1114 * @return {string} |
1099 */ | 1115 */ |
1100 WebInspector.getSelectionForegroundColor = function() | 1116 WebInspector.getSelectionForegroundColor = function() |
1101 { | 1117 { |
1102 return InspectorFrontendHost.getSelectionForegroundColor(); | 1118 return InspectorFrontendHost.getSelectionForegroundColor(); |
1103 } | 1119 } |
1104 | 1120 |
1105 window.DEBUG = true; | 1121 window.DEBUG = true; |
OLD | NEW |