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

Side by Side Diff: remoting/webapp/crd/js/client_session.js

Issue 695363002: Remote assistance on Chrome OS Part VI - Enable It2me on ChromeOS in the webapp (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add to do statement Created 6 years, 1 month 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 unified diff | Download patch
« no previous file with comments | « remoting/webapp/base/js/platform.js ('k') | remoting/webapp/crd/js/remoting.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « remoting/webapp/base/js/platform.js ('k') | remoting/webapp/crd/js/remoting.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698