OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
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 are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * 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 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 | 154 |
155 if (this._visibleView) | 155 if (this._visibleView) |
156 this._visibleView.detach(); | 156 this._visibleView.detach(); |
157 | 157 |
158 this._visibleView = x; | 158 this._visibleView = x; |
159 | 159 |
160 if (x) | 160 if (x) |
161 this.splitWidget().setMainWidget(x); | 161 this.splitWidget().setMainWidget(x); |
162 }, | 162 }, |
163 | 163 |
| 164 /** |
| 165 * @override |
| 166 */ |
164 wasShown: function() | 167 wasShown: function() |
165 { | 168 { |
166 WebInspector.Panel.prototype.wasShown.call(this); | 169 WebInspector.PanelWithSidebar.prototype.wasShown.call(this); |
167 if (!this._visibleView) | 170 if (!this._visibleView) |
168 this._auditsItemTreeElement.select(); | 171 this._auditsItemTreeElement.select(); |
169 }, | 172 }, |
170 | 173 |
171 /** | 174 /** |
172 * @override | 175 * @override |
173 */ | 176 */ |
174 focus: function() | 177 focus: function() |
175 { | 178 { |
176 this._sidebarTree.focus(); | 179 this._sidebarTree.focus(); |
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
540 }; | 543 }; |
541 | 544 |
542 // Contributed audit rules should go into this namespace. | 545 // Contributed audit rules should go into this namespace. |
543 WebInspector.AuditRules = {}; | 546 WebInspector.AuditRules = {}; |
544 | 547 |
545 /** | 548 /** |
546 * Contributed audit categories should go into this namespace. | 549 * Contributed audit categories should go into this namespace. |
547 * @type {!Object.<string, function(new:WebInspector.AuditCategory)>} | 550 * @type {!Object.<string, function(new:WebInspector.AuditCategory)>} |
548 */ | 551 */ |
549 WebInspector.AuditCategories = {}; | 552 WebInspector.AuditCategories = {}; |
OLD | NEW |