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

Unified Diff: remoting/webapp/crd/js/connected_view.js

Issue 1036413002: Re-enable mouse lock (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/webapp/crd/js/connected_view.js
diff --git a/remoting/webapp/crd/js/connected_view.js b/remoting/webapp/crd/js/connected_view.js
index 70803e07ba14d170ca8cec51ea2c0dde0d6ddbbb..73f300ce48e91187282b559bfbde9f750aa96e64 100644
--- a/remoting/webapp/crd/js/connected_view.js
+++ b/remoting/webapp/crd/js/connected_view.js
@@ -15,18 +15,6 @@ var remoting = remoting || {};
'use strict';
/**
- * True to enable mouse lock.
- * This is currently disabled because the current client plugin does not
- * properly handle mouse lock and delegated large cursors at the same time.
- * This should be re-enabled (by removing this flag) once a version of
- * the plugin that supports both has reached Chrome Stable channel.
- * (crbug.com/429322).
- *
- * @type {boolean}
- */
-remoting.enableMouseLock = false;
-
-/**
* @param {remoting.ClientPlugin} plugin
* @param {HTMLElement} viewportElement
* @param {HTMLElement} cursorElement
@@ -64,8 +52,7 @@ remoting.ConnectedView = function(plugin, viewportElement, cursorElement) {
// TODO(wez): Only allow mouse lock if the app has the pointerLock permission.
// Enable automatic mouse-lock.
- if (remoting.enableMouseLock &&
- this.plugin_.hasFeature(remoting.ClientPlugin.Feature.ALLOW_MOUSE_LOCK)) {
+ if (this.plugin_.hasFeature(remoting.ClientPlugin.Feature.ALLOW_MOUSE_LOCK)) {
this.plugin_.allowMouseLock();
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698