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

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

Issue 1647653003: [DevTools] Remove old responsive design v1 code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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/EmulatedDevices.js
diff --git a/third_party/WebKit/Source/devtools/front_end/emulation/EmulatedDevices.js b/third_party/WebKit/Source/devtools/front_end/emulation/EmulatedDevices.js
index 7af5a72c22b113bfd352304814e56cd552798754..70d8a0e11649fd3a4d2dc07abf5bbaa08f4939e0 100644
--- a/third_party/WebKit/Source/devtools/front_end/emulation/EmulatedDevices.js
+++ b/third_party/WebKit/Source/devtools/front_end/emulation/EmulatedDevices.js
@@ -190,31 +190,6 @@ WebInspector.EmulatedDevice.fromJSONV1 = function(json)
}
/**
- * @param {!WebInspector.OverridesSupport.Device} device
- * @param {string} title
- * @param {string=} type
- * @return {!WebInspector.EmulatedDevice}
- */
-WebInspector.EmulatedDevice.fromOverridesDevice = function(device, title, type)
-{
- var result = new WebInspector.EmulatedDevice();
- result.title = title;
- result.type = type || WebInspector.EmulatedDevice.Type.Unknown;
- result.vertical.width = device.width;
- result.vertical.height = device.height;
- result.horizontal.width = device.height;
- result.horizontal.height = device.width;
- result.deviceScaleFactor = device.deviceScaleFactor;
- result.userAgent = device.userAgent;
- result.capabilities = [];
- if (device.touch)
- result.capabilities.push(WebInspector.EmulatedDevice.Capability.Touch);
- if (device.mobile)
- result.capabilities.push(WebInspector.EmulatedDevice.Capability.Mobile);
- return result;
-}
-
-/**
* @param {!WebInspector.EmulatedDevice} device1
* @param {!WebInspector.EmulatedDevice} device2
* @return {number}
@@ -321,23 +296,6 @@ WebInspector.EmulatedDevice.prototype = {
/**
* @param {!WebInspector.EmulatedDevice.Mode} mode
- * @return {!WebInspector.OverridesSupport.Device}
- */
- modeToOverridesDevice: function(mode)
- {
- var result = {};
- var orientation = this.orientationByName(mode.orientation);
- result.width = orientation.width - mode.insets.left - mode.insets.right;
- result.height = orientation.height - mode.insets.top - mode.insets.bottom;
- result.deviceScaleFactor = this.deviceScaleFactor;
- result.userAgent = this.userAgent;
- result.touch = this.touch();
- result.mobile = this.mobile();
- return result;
- },
-
- /**
- * @param {!WebInspector.EmulatedDevice.Mode} mode
* @return {string}
*/
modeImage: function(mode)

Powered by Google App Engine
This is Rietveld 408576698