Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(491)

Side by Side Diff: inspector/front-end/AuditsPanel.js

Issue 542055: DevTools: injected script per context(WebCore part) (Closed) Base URL: http://svn.webkit.org/repository/webkit/trunk/WebCore/
Patch Set: '' Created 10 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « inspector/InspectorFrontend.cpp ('k') | inspector/front-end/ConsoleView.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 = {};
OLDNEW
« no previous file with comments | « inspector/InspectorFrontend.cpp ('k') | inspector/front-end/ConsoleView.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698