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

Unified Diff: Source/devtools/front_end/emulation/DevicesSettingsTab.js

Issue 1202493002: [DevTools] Refactor emulated devices modes. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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: Source/devtools/front_end/emulation/DevicesSettingsTab.js
diff --git a/Source/devtools/front_end/emulation/DevicesSettingsTab.js b/Source/devtools/front_end/emulation/DevicesSettingsTab.js
index 1a6c471378f8a38976133887645513865eb0542b..821dffeb5376e0d078ce484c091fdee8a99296cb 100644
--- a/Source/devtools/front_end/emulation/DevicesSettingsTab.js
+++ b/Source/devtools/front_end/emulation/DevicesSettingsTab.js
@@ -280,7 +280,8 @@ WebInspector.DevicesSettingsTab.prototype = {
this._editDevice.horizontal.height = this._editDevice.vertical.width;
this._editDevice.deviceScaleFactor = this._editDeviceScale.value ? parseFloat(this._editDeviceScale.value) : 0;
this._editDevice.userAgent = this._editDeviceUserAgent.value;
- this._editDevice.createImplicitModes();
+ this._editDevice.modes.push({title: "", orientation: WebInspector.EmulatedDevice.Horizontal, insets: new Insets(0, 0, 0, 0), images: null});
+ this._editDevice.modes.push({title: "", orientation: WebInspector.EmulatedDevice.Vertical, insets: new Insets(0, 0, 0, 0), images: null});
this._stopEditing();
if (this._editDeviceListItem)
« no previous file with comments | « Source/devtools/front_end/emulated_devices/module.json ('k') | Source/devtools/front_end/emulation/EmulatedDevices.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698