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

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

Issue 2819183002: [DevTools] Consolidate overlay-related functionality in Overlay domain (Closed)
Patch Set: rebased bad merge 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 e63753bd1cd7ba04073370b59a2e9f355ba3e3ac..d196701a38740d6631013eb197401af79e611da1 100644
--- a/third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeView.js
+++ b/third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeView.js
@@ -375,9 +375,9 @@ Emulation.DeviceModeView = class extends UI.VBox {
* @return {!Promise}
*/
async captureScreenshot() {
- SDK.DOMModel.muteHighlight();
+ SDK.OverlayModel.muteHighlight();
var screenshot = await this._model.captureScreenshot(false);
- SDK.DOMModel.unmuteHighlight();
+ SDK.OverlayModel.unmuteHighlight();
if (screenshot === null)
return;
@@ -410,9 +410,9 @@ Emulation.DeviceModeView = class extends UI.VBox {
* @return {!Promise}
*/
async captureFullSizeScreenshot() {
- SDK.DOMModel.muteHighlight();
+ SDK.OverlayModel.muteHighlight();
var screenshot = await this._model.captureScreenshot(true);
- SDK.DOMModel.unmuteHighlight();
+ SDK.OverlayModel.unmuteHighlight();
if (screenshot === null)
return;

Powered by Google App Engine
This is Rietveld 408576698