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

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

Issue 1688113002: Devtools: Add device frames to device mode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 80dfa6b53951ca93ee56f2258ac6019921cfd8ed..dc110198417d7b4e7bf43aa7874ca20b31af73a4 100644
--- a/third_party/WebKit/Source/devtools/front_end/emulation/EmulatedDevices.js
+++ b/third_party/WebKit/Source/devtools/front_end/emulation/EmulatedDevices.js
@@ -307,6 +307,20 @@ WebInspector.EmulatedDevice.prototype = {
},
/**
+ * @param {string} orientationName
+ * @return {string}
+ */
+ outlineImage: function(orientationName)
+ {
+ var orientation = this.orientationByName(orientationName);
+ if (!orientation.outlineImage)
+ return "";
+ if (!this._extension)
+ return orientation.outlineImage;
+ return this._extension.module().substituteURL(orientation.outlineImage);
+ },
+
+ /**
* @param {string} name
* @return {!WebInspector.EmulatedDevice.Orientation}
*/

Powered by Google App Engine
This is Rietveld 408576698