| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 /** | 5 /** |
| 6 * @fileoverview | 6 * @fileoverview |
| 7 * Class handling user-facing aspects of the client session. | 7 * Class handling user-facing aspects of the client session. |
| 8 */ | 8 */ |
| 9 | 9 |
| 10 'use strict'; | 10 'use strict'; |
| (...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 251 * @param {boolean} enable True to enable the mapping; false to disable. | 251 * @param {boolean} enable True to enable the mapping; false to disable. |
| 252 */ | 252 */ |
| 253 remoting.DesktopConnectedView.prototype.setMapRightCtrl = function(enable) { | 253 remoting.DesktopConnectedView.prototype.setMapRightCtrl = function(enable) { |
| 254 if (enable === this.getMapRightCtrl()) { | 254 if (enable === this.getMapRightCtrl()) { |
| 255 return; // In case right Ctrl is mapped, but not to right Meta. | 255 return; // In case right Ctrl is mapped, but not to right Meta. |
| 256 } | 256 } |
| 257 | 257 |
| 258 if (enable) { | 258 if (enable) { |
| 259 this.host_.options.remapKeys[0x0700e4] = 0x0700e7; | 259 this.host_.options.remapKeys[0x0700e4] = 0x0700e7; |
| 260 } else { | 260 } else { |
| 261 delete this.host_.options.remapKeys[0x0700e4] | 261 this.host_.options.remapKeys[0x0700e4] = 0x0700e4; |
| 262 } | 262 } |
| 263 this.setRemapKeys(this.host_.options.remapKeys); | 263 this.setRemapKeys(this.host_.options.remapKeys); |
| 264 }; | 264 }; |
| 265 | 265 |
| 266 /** | 266 /** |
| 267 * Sends a Ctrl-Alt-Del sequence to the remoting client. | 267 * Sends a Ctrl-Alt-Del sequence to the remoting client. |
| 268 * | 268 * |
| 269 * @return {void} Nothing. | 269 * @return {void} Nothing. |
| 270 */ | 270 */ |
| 271 remoting.DesktopConnectedView.prototype.sendCtrlAltDel = function() { | 271 remoting.DesktopConnectedView.prototype.sendCtrlAltDel = function() { |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 334 /** | 334 /** |
| 335 * Factory function so that it can be overwritten in unit test to avoid | 335 * Factory function so that it can be overwritten in unit test to avoid |
| 336 * UI dependencies. | 336 * UI dependencies. |
| 337 * | 337 * |
| 338 * @param {HTMLElement} container | 338 * @param {HTMLElement} container |
| 339 * @param {remoting.ConnectionInfo} connectionInfo | 339 * @param {remoting.ConnectionInfo} connectionInfo |
| 340 * @return {remoting.DesktopConnectedView} | 340 * @return {remoting.DesktopConnectedView} |
| 341 */ | 341 */ |
| 342 remoting.DesktopConnectedView.create = function(container, connectionInfo) { | 342 remoting.DesktopConnectedView.create = function(container, connectionInfo) { |
| 343 return new remoting.DesktopConnectedView(container, connectionInfo); | 343 return new remoting.DesktopConnectedView(container, connectionInfo); |
| 344 }; | 344 }; |
| OLD | NEW |