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

Unified Diff: Source/devtools/front_end/ScreencastView.js

Issue 206313004: DevTools: Rename WebInspector.DOMAgent into WebInspector.DOMModel (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase on master Created 6 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 | « Source/devtools/front_end/RemoteObject.js ('k') | Source/devtools/front_end/StylesSidebarPane.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/ScreencastView.js
diff --git a/Source/devtools/front_end/ScreencastView.js b/Source/devtools/front_end/ScreencastView.js
index 07874730f598ac80decb4aadba7b1ef7b8cf79e5..f54cfb12c4671543c63bef3e1db4ac496cbebdca 100644
--- a/Source/devtools/front_end/ScreencastView.js
+++ b/Source/devtools/front_end/ScreencastView.js
@@ -132,7 +132,7 @@ WebInspector.ScreencastView.prototype = {
dimensions.width *= WebInspector.zoomManager.zoomFactor();
dimensions.height *= WebInspector.zoomManager.zoomFactor();
PageAgent.startScreencast("jpeg", 80, Math.min(maxImageDimension, dimensions.width), Math.min(maxImageDimension, dimensions.height));
- WebInspector.domAgent.setHighlighter(this);
+ WebInspector.domModel.setHighlighter(this);
},
_stopCasting: function()
@@ -141,7 +141,7 @@ WebInspector.ScreencastView.prototype = {
return;
this._isCasting = false;
PageAgent.stopScreencast();
- WebInspector.domAgent.setHighlighter(null);
+ WebInspector.domModel.setHighlighter(null);
},
/**
@@ -283,7 +283,7 @@ WebInspector.ScreencastView.prototype = {
if (event.type === "mousemove")
this.highlightDOMNode(nodeId, this._inspectModeConfig);
else if (event.type === "click")
- WebInspector.Revealer.reveal(WebInspector.domAgent.nodeForId(nodeId));
+ WebInspector.Revealer.reveal(WebInspector.domModel.nodeForId(nodeId));
}
},
@@ -458,7 +458,7 @@ WebInspector.ScreencastView.prototype = {
return;
}
- this._node = WebInspector.domAgent.nodeForId(nodeId);
+ this._node = WebInspector.domModel.nodeForId(nodeId);
DOMAgent.getBoxModel(nodeId, callback.bind(this));
/**
« no previous file with comments | « Source/devtools/front_end/RemoteObject.js ('k') | Source/devtools/front_end/StylesSidebarPane.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698