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

Unified Diff: third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeView.js

Issue 2826833002: Revert of [DevTools] Consolidate overlay-related functionality in Overlay domain (Closed)
Patch Set: Created 3 years, 8 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
Index: third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeView.js
diff --git a/third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeView.js b/third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeView.js
index 828ea985d7641168603450f0773062252ea10ea2..04e9011877590f1c69e7b574a105f04b159dad13 100644
--- a/third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeView.js
+++ b/third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeView.js
@@ -363,9 +363,9 @@
* @return {!Promise}
*/
async captureScreenshot() {
- SDK.OverlayModel.muteHighlight();
+ SDK.DOMModel.muteHighlight();
var screenshot = await this._model.captureScreenshot(false);
- SDK.OverlayModel.unmuteHighlight();
+ SDK.DOMModel.unmuteHighlight();
if (screenshot === null)
return;
@@ -398,9 +398,9 @@
* @return {!Promise}
*/
async captureFullSizeScreenshot() {
- SDK.OverlayModel.muteHighlight();
+ SDK.DOMModel.muteHighlight();
var screenshot = await this._model.captureScreenshot(true);
- SDK.OverlayModel.unmuteHighlight();
+ SDK.DOMModel.unmuteHighlight();
if (screenshot === null)
return;

Powered by Google App Engine
This is Rietveld 408576698