| 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 80dfa6b53951ca93ee56f2258ac6019921cfd8ed..aca67d2cf0d885387277664521cf4ac2ef6a78da 100644
|
| --- a/third_party/WebKit/Source/devtools/front_end/emulation/EmulatedDevices.js
|
| +++ b/third_party/WebKit/Source/devtools/front_end/emulation/EmulatedDevices.js
|
| @@ -133,7 +133,6 @@ WebInspector.EmulatedDevice.fromJSONV1 = function(json)
|
| throw new Error("Emulated device has wrong outline insets");
|
| result.outlineImage = /** @type {string} */ (parseValue(json["outline"], "image", "string"));
|
| }
|
| -
|
| return /** @type {!WebInspector.EmulatedDevice.Orientation} */ (result);
|
| }
|
|
|
| @@ -307,6 +306,20 @@ WebInspector.EmulatedDevice.prototype = {
|
| },
|
|
|
| /**
|
| + * @param {!WebInspector.EmulatedDevice.Mode} mode
|
| + * @return {string}
|
| + */
|
| + outlineImage: function(mode)
|
| + {
|
| + var orientation = this.orientationByName(mode.orientation);
|
| + if (!orientation.outlineImage)
|
| + return "";
|
| + if (!this._extension)
|
| + return orientation.outlineImage;
|
| + return this._extension.module().substituteURL(orientation.outlineImage);
|
| + },
|
| +
|
| + /**
|
| * @param {string} name
|
| * @return {!WebInspector.EmulatedDevice.Orientation}
|
| */
|
|
|