| 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 | 61 |
| 62 WebInspector.Drawer.prototype = { | 62 WebInspector.Drawer.prototype = { |
| 63 /** | 63 /** |
| 64 * @param {string} id | 64 * @param {string} id |
| 65 * @param {boolean=} immediate | 65 * @param {boolean=} immediate |
| 66 * @return {!Promise.<?WebInspector.Widget>} | 66 * @return {!Promise.<?WebInspector.Widget>} |
| 67 */ | 67 */ |
| 68 showView: function(id, immediate) | 68 showView: function(id, immediate) |
| 69 { | 69 { |
| 70 this._innerShow(immediate); | 70 this._innerShow(immediate); |
| 71 WebInspector.userMetrics.drawerShown(id); | |
| 72 return this._extensibleTabbedPaneController.showTab(id); | 71 return this._extensibleTabbedPaneController.showTab(id); |
| 73 }, | 72 }, |
| 74 | 73 |
| 75 showDrawer: function() | 74 showDrawer: function() |
| 76 { | 75 { |
| 77 this._innerShow(); | 76 this._innerShow(); |
| 78 }, | 77 }, |
| 79 | 78 |
| 80 wasShown: function() | 79 wasShown: function() |
| 81 { | 80 { |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 return this._tabbedPane.selectedTabId; | 137 return this._tabbedPane.selectedTabId; |
| 139 }, | 138 }, |
| 140 | 139 |
| 141 initialPanelShown: function() | 140 initialPanelShown: function() |
| 142 { | 141 { |
| 143 this._initialPanelWasShown = true; | 142 this._initialPanelWasShown = true; |
| 144 }, | 143 }, |
| 145 | 144 |
| 146 __proto__: WebInspector.VBox.prototype | 145 __proto__: WebInspector.VBox.prototype |
| 147 } | 146 } |
| OLD | NEW |