Chromium Code Reviews| 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()); |