| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 * This class implements the functionality that is specific to desktop | 7 * This class implements the functionality that is specific to desktop |
| 8 * remoting ("Chromoting" or CRD). | 8 * remoting ("Chromoting" or CRD). |
| 9 */ | 9 */ |
| 10 | 10 |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 document.getElementById('help-feedback-main')); | 112 document.getElementById('help-feedback-main')); |
| 113 var toolbarFeedback = new remoting.MenuButton( | 113 var toolbarFeedback = new remoting.MenuButton( |
| 114 document.getElementById('help-feedback-toolbar')); | 114 document.getElementById('help-feedback-toolbar')); |
| 115 remoting.manageHelpAndFeedback( | 115 remoting.manageHelpAndFeedback( |
| 116 document.getElementById('title-bar')); | 116 document.getElementById('title-bar')); |
| 117 remoting.manageHelpAndFeedback( | 117 remoting.manageHelpAndFeedback( |
| 118 document.getElementById('help-feedback-toolbar')); | 118 document.getElementById('help-feedback-toolbar')); |
| 119 remoting.manageHelpAndFeedback( | 119 remoting.manageHelpAndFeedback( |
| 120 document.getElementById('help-feedback-main')); | 120 document.getElementById('help-feedback-main')); |
| 121 | 121 |
| 122 remoting.windowShape.updateClientWindowShape(); | |
| 123 | |
| 124 remoting.showOrHideIT2MeUi(); | 122 remoting.showOrHideIT2MeUi(); |
| 125 remoting.showOrHideMe2MeUi(); | 123 remoting.showOrHideMe2MeUi(); |
| 126 | 124 |
| 127 // For Apps v1, check the tab type to warn the user if they are not getting | 125 // For Apps v1, check the tab type to warn the user if they are not getting |
| 128 // the best keyboard experience. | 126 // the best keyboard experience. |
| 129 if (!base.isAppsV2() && !remoting.platformIsMac()) { | 127 if (!base.isAppsV2() && !remoting.platformIsMac()) { |
| 130 /** @param {boolean} isWindowed */ | 128 /** @param {boolean} isWindowed */ |
| 131 var onIsWindowed = function(isWindowed) { | 129 var onIsWindowed = function(isWindowed) { |
| 132 if (!isWindowed) { | 130 if (!isWindowed) { |
| 133 document.getElementById('startup-mode-box-me2me').hidden = false; | 131 document.getElementById('startup-mode-box-me2me').hidden = false; |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 240 * Entry-point for It2Me connections. | 238 * Entry-point for It2Me connections. |
| 241 * | 239 * |
| 242 * @private | 240 * @private |
| 243 */ | 241 */ |
| 244 remoting.DesktopRemoting.prototype.connectIt2Me_ = function() { | 242 remoting.DesktopRemoting.prototype.connectIt2Me_ = function() { |
| 245 base.dispose(this.activity_); | 243 base.dispose(this.activity_); |
| 246 this.activity_ = new remoting.It2MeActivity(); | 244 this.activity_ = new remoting.It2MeActivity(); |
| 247 this.activity_.start(); | 245 this.activity_.start(); |
| 248 this.connectionMode_ = remoting.DesktopRemoting.Mode.IT2ME; | 246 this.connectionMode_ = remoting.DesktopRemoting.Mode.IT2ME; |
| 249 }; | 247 }; |
| OLD | NEW |