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 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 { | 149 { |
150 if (this._visibleView === x) | 150 if (this._visibleView === x) |
151 return; | 151 return; |
152 | 152 |
153 if (this._visibleView) | 153 if (this._visibleView) |
154 this._visibleView.detach(); | 154 this._visibleView.detach(); |
155 | 155 |
156 this._visibleView = x; | 156 this._visibleView = x; |
157 | 157 |
158 if (x) | 158 if (x) |
159 this.splitView().setMainView(x); | 159 this.splitWidget().setMainWidget(x); |
160 }, | 160 }, |
161 | 161 |
162 wasShown: function() | 162 wasShown: function() |
163 { | 163 { |
164 WebInspector.Panel.prototype.wasShown.call(this); | 164 WebInspector.Panel.prototype.wasShown.call(this); |
165 if (!this._visibleView) | 165 if (!this._visibleView) |
166 this.auditsItemTreeElement.select(); | 166 this.auditsItemTreeElement.select(); |
167 }, | 167 }, |
168 | 168 |
169 clearResults: function() | 169 clearResults: function() |
(...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
568 } | 568 } |
569 | 569 |
570 // Contributed audit rules should go into this namespace. | 570 // Contributed audit rules should go into this namespace. |
571 WebInspector.AuditRules = {}; | 571 WebInspector.AuditRules = {}; |
572 | 572 |
573 /** | 573 /** |
574 * Contributed audit categories should go into this namespace. | 574 * Contributed audit categories should go into this namespace. |
575 * @type {!Object.<string, function(new:WebInspector.AuditCategory)>} | 575 * @type {!Object.<string, function(new:WebInspector.AuditCategory)>} |
576 */ | 576 */ |
577 WebInspector.AuditCategories = {}; | 577 WebInspector.AuditCategories = {}; |
OLD | NEW |