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

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

Issue 1641513003: [DevTools] Split DeviceModeView.js into view, toolbar and wrapper. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@device-mode-cleanup-remove-files
Patch Set: Created 4 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeModel.js
diff --git a/third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeModel.js b/third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeModel.js
index 3ab03939ba624f156386519981a43337b84ec915..4f18f1837787ea50b50b001153c4485dd95afedd 100644
--- a/third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeModel.js
+++ b/third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeModel.js
@@ -18,7 +18,6 @@ WebInspector.DeviceModeModel = function(updateCallback)
this._deviceMetricsThrottler = new WebInspector.Throttler(0);
this._appliedDeviceSize = new Size(1, 1);
this._currentDeviceScaleFactor = window.devicePixelRatio;
- this._appliedDeviceScaleFactor = 0;
this._scaleSetting = WebInspector.settings.createSetting("emulation.deviceScale", 1);
// We've used to allow zero before.
@@ -284,14 +283,6 @@ WebInspector.DeviceModeModel.prototype = {
},
/**
- * @return {number}
- */
- appliedDeviceScaleFactor: function()
- {
- return this._appliedDeviceScaleFactor;
- },
-
- /**
* @return {!WebInspector.Setting}
*/
scaleSetting: function()
@@ -384,11 +375,6 @@ WebInspector.DeviceModeModel.prototype = {
this._target = null;
},
- requestAppBanner: function()
- {
- this._target.pageAgent().requestAppBanner();
- },
-
_scaleSettingChanged: function()
{
this._calculateAndEmulate(true);
@@ -528,7 +514,6 @@ WebInspector.DeviceModeModel.prototype = {
Math.min(pageWidth * scale, this._availableSize.width - this._screenRect.left - positionX * scale),
Math.min(pageHeight * scale, this._availableSize.height - this._screenRect.top - positionY * scale));
this._scale = scale;
- this._appliedDeviceScaleFactor = deviceScaleFactor;
if (scale === 1 && this._availableSize.width >= screenSize.width && this._availableSize.height >= screenSize.height) {
// When we have enough space, no page size override is required. This will speed things up and remove lag.

Powered by Google App Engine
This is Rietveld 408576698