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

Unified Diff: Source/devtools/front_end/Target.js

Issue 243233002: [DevTools] Disable touch emulation on devices with touch input. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Staying inside core Created 6 years, 8 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/Target.js
diff --git a/Source/devtools/front_end/Target.js b/Source/devtools/front_end/Target.js
index 6d142efe38ed80e1735c58567582a87b355e6091..959a7e112c6cf2a822bde9405d2c8bfb4c34dc81 100644
--- a/Source/devtools/front_end/Target.js
+++ b/Source/devtools/front_end/Target.js
@@ -16,8 +16,18 @@ WebInspector.Target = function(connection, callback)
this._connection = connection;
this.isMainFrontend = false;
+ /**
+ * @type {boolean}
+ */
+ this.canScreencast = false;
this.pageAgent().canScreencast(this._initializeCapability.bind(this, "canScreencast", null));
+ /**
+ * @type {boolean}
+ */
+ this.hasTouchInputs = false;
+ this.pageAgent().hasTouchInputs(this._initializeCapability.bind(this, "hasTouchInputs", null));
+
if (WebInspector.experimentsSettings.powerProfiler.isEnabled())
this.powerAgent().canProfilePower(this._initializeCapability.bind(this, "canProfilePower", null));

Powered by Google App Engine
This is Rietveld 408576698