| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 creation and teardown of a remoting client session. | 7 * Class handling creation and teardown of a remoting client session. |
| 8 * | 8 * |
| 9 * The ClientSession class controls lifetime of the client plugin | 9 * The ClientSession class controls lifetime of the client plugin |
| 10 * object and provides the plugin with the functionality it needs to | 10 * object and provides the plugin with the functionality it needs to |
| (...skipping 698 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 709 | 709 |
| 710 /** | 710 /** |
| 711 * Applies the configured key remappings to the session, or resets them. | 711 * Applies the configured key remappings to the session, or resets them. |
| 712 * | 712 * |
| 713 * @param {boolean} apply True to apply remappings, false to cancel them. | 713 * @param {boolean} apply True to apply remappings, false to cancel them. |
| 714 */ | 714 */ |
| 715 remoting.ClientSession.prototype.applyRemapKeys_ = function(apply) { | 715 remoting.ClientSession.prototype.applyRemapKeys_ = function(apply) { |
| 716 // By default, under ChromeOS, remap the right Control key to the right | 716 // By default, under ChromeOS, remap the right Control key to the right |
| 717 // Win / Cmd key. | 717 // Win / Cmd key. |
| 718 var remapKeys = this.remapKeys_; | 718 var remapKeys = this.remapKeys_; |
| 719 if (remapKeys == '' && remoting.runningOnChromeOS()) { | 719 if (remapKeys == '' && remoting.platformIsChromeOS()) { |
| 720 remapKeys = '0x0700e4>0x0700e7'; | 720 remapKeys = '0x0700e4>0x0700e7'; |
| 721 } | 721 } |
| 722 | 722 |
| 723 if (remapKeys == '') { | 723 if (remapKeys == '') { |
| 724 return; | 724 return; |
| 725 } | 725 } |
| 726 | 726 |
| 727 var remappings = remapKeys.split(','); | 727 var remappings = remapKeys.split(','); |
| 728 for (var i = 0; i < remappings.length; ++i) { | 728 for (var i = 0; i < remappings.length; ++i) { |
| 729 var keyCodes = remappings[i].split('>'); | 729 var keyCodes = remappings[i].split('>'); |
| (...skipping 835 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1565 * @param {string} data Contents of the extension message. | 1565 * @param {string} data Contents of the extension message. |
| 1566 * @return {boolean} True if the message was recognized, false otherwise. | 1566 * @return {boolean} True if the message was recognized, false otherwise. |
| 1567 */ | 1567 */ |
| 1568 remoting.ClientSession.prototype.handleExtensionMessage = | 1568 remoting.ClientSession.prototype.handleExtensionMessage = |
| 1569 function(type, data) { | 1569 function(type, data) { |
| 1570 if (this.videoFrameRecorder_) { | 1570 if (this.videoFrameRecorder_) { |
| 1571 return this.videoFrameRecorder_.handleMessage(type, data); | 1571 return this.videoFrameRecorder_.handleMessage(type, data); |
| 1572 } | 1572 } |
| 1573 return false; | 1573 return false; |
| 1574 } | 1574 } |
| OLD | NEW |