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

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

Issue 1650243004: [DevTools] Option to show device frames in emulation mode (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/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 6972b9a7d8ef1ac36fd35016585cfcf827208638..636e1b65d9bcac66b7bd6d63e4111d92319951cb 100644
--- a/third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeModel.js
+++ b/third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeModel.js
@@ -235,6 +235,30 @@ WebInspector.DeviceModeModel.prototype = {
},
/**
+ * @return {string}
+ */
+ outlineImage: function()
+ {
+ return (this._device && this._mode) ? this._device.outlineImage(this._mode) : "";
+ },
+
+ /**
+ * @return {Insets|string|null}
dgozman 2016/02/01 17:18:27 ?Insets
mmccoy 2016/02/10 20:06:33 Done.
+ */
+ outlineInsets: function()
+ {
+ return (this._device && this._mode) ? this._device.outlineInsets(this._mode) : "";
+ },
+
+ /**
+ * @return {Object|string|null}
+ */
+ outlineDimensions: function()
+ {
+ return (this._device && this._mode) ? this._device.outlineDimensions(this._mode) : "";
+ },
+
+ /**
* @return {!WebInspector.Rect}
*/
screenRect: function()
@@ -427,6 +451,7 @@ WebInspector.DeviceModeModel.prototype = {
if (this._type === WebInspector.DeviceModeModel.Type.Device) {
var orientation = this._device.orientationByName(this._mode.orientation);
this._fitScale = this._calculateFitScale(orientation.width, orientation.height);
+
dgozman 2016/02/01 17:18:27 Revert this one.
this._applyDeviceMetrics(new Size(orientation.width, orientation.height), this._mode.insets, this._scaleSetting.get(), this._device.deviceScaleFactor, this._device.mobile(), resetPageScaleFactor);
this._applyUserAgent(this._device.userAgent);
this._applyTouch(this._device.touch(), this._device.mobile());

Powered by Google App Engine
This is Rietveld 408576698