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

Unified Diff: Source/devtools/front_end/main/OverridesView.js

Issue 376873004: [DevTools] Allow touch emulation on devices with native touch. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebased Created 6 years, 5 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
« no previous file with comments | « Source/core/inspector/InspectorPageAgent.cpp ('k') | Source/devtools/front_end/sdk/OverridesSupport.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/main/OverridesView.js
diff --git a/Source/devtools/front_end/main/OverridesView.js b/Source/devtools/front_end/main/OverridesView.js
index 5131bc8e22ae4ae71517bc0356d09b462b22b531..18dabd4ad477bc83618e0efa419f793a841b4b96 100644
--- a/Source/devtools/front_end/main/OverridesView.js
+++ b/Source/devtools/front_end/main/OverridesView.js
@@ -439,15 +439,15 @@ WebInspector.OverridesView.NetworkTab.prototype = {
*/
WebInspector.OverridesView.SensorsTab = function()
{
- var settings = [WebInspector.overridesSupport.settings.overrideGeolocation, WebInspector.overridesSupport.settings.overrideDeviceOrientation];
- if (!WebInspector.overridesSupport.hasTouchInputs())
- settings.push(WebInspector.overridesSupport.settings.emulateTouch);
- WebInspector.OverridesView.Tab.call(this, "sensors", WebInspector.UIString("Sensors"), settings);
+ WebInspector.OverridesView.Tab.call(this, "sensors", WebInspector.UIString("Sensors"), [
+ WebInspector.overridesSupport.settings.overrideGeolocation,
+ WebInspector.overridesSupport.settings.overrideDeviceOrientation,
+ WebInspector.overridesSupport.settings.emulateTouch
+ ]);
this.element.classList.add("overrides-sensors");
this.registerRequiredCSS("accelerometer.css");
- if (!WebInspector.overridesSupport.hasTouchInputs())
- this.element.appendChild(this._createSettingCheckbox(WebInspector.UIString("Emulate touch screen"), WebInspector.overridesSupport.settings.emulateTouch, undefined));
+ this.element.appendChild(this._createSettingCheckbox(WebInspector.UIString("Emulate touch screen"), WebInspector.overridesSupport.settings.emulateTouch, undefined));
this._appendGeolocationOverrideControl();
this._apendDeviceOrientationOverrideControl();
}
« no previous file with comments | « Source/core/inspector/InspectorPageAgent.cpp ('k') | Source/devtools/front_end/sdk/OverridesSupport.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698