| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 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 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 186 _reloadResources: function(callback) | 186 _reloadResources: function(callback) |
| 187 { | 187 { |
| 188 function nullCallback() | 188 function nullCallback() |
| 189 { | 189 { |
| 190 } | 190 } |
| 191 this._resourceTrackingCallback = callback; | 191 this._resourceTrackingCallback = callback; |
| 192 if (!InspectorBackend.resourceTrackingEnabled()) { | 192 if (!InspectorBackend.resourceTrackingEnabled()) { |
| 193 InspectorBackend.enableResourceTracking(false); | 193 InspectorBackend.enableResourceTracking(false); |
| 194 this._updateLauncherViewControls(); | 194 this._updateLauncherViewControls(); |
| 195 } else | 195 } else |
| 196 InjectedScriptAccess.evaluate("window.location.reload()", nullCallba
ck); | 196 InjectedScriptAccess.getDefault().evaluate("window.location.reload()
", nullCallback); |
| 197 }, | 197 }, |
| 198 | 198 |
| 199 _didMainResourceLoad: function() | 199 _didMainResourceLoad: function() |
| 200 { | 200 { |
| 201 if (this._resourceTrackingCallback) { | 201 if (this._resourceTrackingCallback) { |
| 202 var callback = this._resourceTrackingCallback; | 202 var callback = this._resourceTrackingCallback; |
| 203 this._resourceTrackingCallback = null; | 203 this._resourceTrackingCallback = null; |
| 204 callback(); | 204 callback(); |
| 205 } | 205 } |
| 206 }, | 206 }, |
| (...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 464 } | 464 } |
| 465 } | 465 } |
| 466 | 466 |
| 467 WebInspector.AuditResultSidebarTreeElement.prototype.__proto__ = WebInspector.Si
debarTreeElement.prototype; | 467 WebInspector.AuditResultSidebarTreeElement.prototype.__proto__ = WebInspector.Si
debarTreeElement.prototype; |
| 468 | 468 |
| 469 // Contributed audit rules should go into this namespace. | 469 // Contributed audit rules should go into this namespace. |
| 470 WebInspector.AuditRules = {}; | 470 WebInspector.AuditRules = {}; |
| 471 | 471 |
| 472 // Contributed audit categories should go into this namespace. | 472 // Contributed audit categories should go into this namespace. |
| 473 WebInspector.AuditCategories = {}; | 473 WebInspector.AuditCategories = {}; |
| OLD | NEW |