| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2009 Joseph Pecoraro | 3 * Copyright (C) 2009 Joseph Pecoraro |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * | 8 * |
| 9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 293 this._drawerEditor.installedIntoDrawer(); | 293 this._drawerEditor.installedIntoDrawer(); |
| 294 }, | 294 }, |
| 295 | 295 |
| 296 /** | 296 /** |
| 297 * @param {boolean} available | 297 * @param {boolean} available |
| 298 */ | 298 */ |
| 299 setDrawerEditorAvailable: function(available) | 299 setDrawerEditorAvailable: function(available) |
| 300 { | 300 { |
| 301 if (!WebInspector.experimentsSettings.showEditorInDrawer.isEnabled()) | 301 if (!WebInspector.experimentsSettings.showEditorInDrawer.isEnabled()) |
| 302 available = false; | 302 available = false; |
| 303 this._toggleDrawerEditorButton.element.enableStyleClass("hidden", !avail
able); | 303 this._toggleDrawerEditorButton.element.classList.toggle("hidden", !avail
able); |
| 304 }, | 304 }, |
| 305 | 305 |
| 306 showDrawerEditor: function() | 306 showDrawerEditor: function() |
| 307 { | 307 { |
| 308 if (!WebInspector.experimentsSettings.showEditorInDrawer.isEnabled()) | 308 if (!WebInspector.experimentsSettings.showEditorInDrawer.isEnabled()) |
| 309 return; | 309 return; |
| 310 | 310 |
| 311 this._splitView.showBoth(); | 311 this._splitView.showBoth(); |
| 312 this._drawerEditorSplitView.showBoth(); | 312 this._drawerEditorSplitView.showBoth(); |
| 313 }, | 313 }, |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 375 } | 375 } |
| 376 | 376 |
| 377 WebInspector.DrawerEditor.prototype = { | 377 WebInspector.DrawerEditor.prototype = { |
| 378 /** | 378 /** |
| 379 * @return {!WebInspector.View} | 379 * @return {!WebInspector.View} |
| 380 */ | 380 */ |
| 381 view: function() { }, | 381 view: function() { }, |
| 382 | 382 |
| 383 installedIntoDrawer: function() { }, | 383 installedIntoDrawer: function() { }, |
| 384 } | 384 } |
| OLD | NEW |