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

Unified Diff: webkit/glue/devtools/js/inspector_controller_impl.js

Issue 54002: Make DevTools client survive 'refresh' of the inspectable tab. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/glue/devtools/js/dom_agent.js ('k') | webkit/glue/devtools/tools_agent.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/devtools/js/inspector_controller_impl.js
===================================================================
--- webkit/glue/devtools/js/inspector_controller_impl.js (revision 12355)
+++ webkit/glue/devtools/js/inspector_controller_impl.js (working copy)
@@ -15,7 +15,7 @@
this.window_ = {
get document() {
- return domAgent.document;
+ return devtools.tools.getDomAgent().getDocument();
},
get Node() {
return devtools.DomNode;
@@ -56,7 +56,7 @@
devtools.InspectorController.prototype.addResourceSourceToFrame =
function(identifier, element) {
var self = this;
- netAgent.getResourceContentAsync(identifier, function(source) {
+ tools.getNetAgent().getResourceContentAsync(identifier, function(source) {
var resource = netAgent.getResource(identifier);
self.addSourceToFrame(resource.mimeType, source, element);
});
@@ -89,11 +89,4 @@
};
-/**
- * {@inheritDoc}.
- */
-devtools.InspectorController.prototype.loaded = function() {
- DevToolsHost.loaded();
-};
-
var InspectorController = new devtools.InspectorControllerImpl();
« no previous file with comments | « webkit/glue/devtools/js/dom_agent.js ('k') | webkit/glue/devtools/tools_agent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698