| 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 'use strict'; | 5 'use strict'; |
| 6 | 6 |
| 7 /** @suppress {duplicate} */ | 7 /** @suppress {duplicate} */ |
| 8 var remoting = remoting || {}; | 8 var remoting = remoting || {}; |
| 9 | 9 |
| 10 /** @type {remoting.HostSession} */ remoting.hostSession = null; | 10 /** @type {remoting.HostSession} */ remoting.hostSession = null; |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 isWindowed_(onIsWindowed); | 171 isWindowed_(onIsWindowed); |
| 172 } | 172 } |
| 173 | 173 |
| 174 remoting.testEvents = new base.EventSource(); | 174 remoting.testEvents = new base.EventSource(); |
| 175 | 175 |
| 176 /** @enum {string} */ | 176 /** @enum {string} */ |
| 177 remoting.testEvents.Names = { | 177 remoting.testEvents.Names = { |
| 178 uiModeChanged: 'uiModeChanged' | 178 uiModeChanged: 'uiModeChanged' |
| 179 }; | 179 }; |
| 180 remoting.testEvents.defineEvents(base.values(remoting.testEvents.Names)); | 180 remoting.testEvents.defineEvents(base.values(remoting.testEvents.Names)); |
| 181 |
| 182 remoting.ClientPlugin.preload(); |
| 181 }; | 183 }; |
| 182 | 184 |
| 183 /** | 185 /** |
| 184 * Returns whether or not IT2Me is supported via the host NPAPI plugin. | 186 * Returns whether or not IT2Me is supported via the host NPAPI plugin. |
| 185 * | 187 * |
| 186 * @return {boolean} | 188 * @return {boolean} |
| 187 */ | 189 */ |
| 188 function isIT2MeSupported_() { | 190 function isIT2MeSupported_() { |
| 189 // Currently, IT2Me on Chromebooks is not supported. | 191 // Currently, IT2Me on Chromebooks is not supported. |
| 190 return !remoting.runningOnChromeOS(); | 192 return !remoting.runningOnChromeOS(); |
| (...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 565 } | 567 } |
| 566 | 568 |
| 567 /** | 569 /** |
| 568 * Tests whether we are running on ChromeOS. | 570 * Tests whether we are running on ChromeOS. |
| 569 * | 571 * |
| 570 * @return {boolean} True if the platform is ChromeOS. | 572 * @return {boolean} True if the platform is ChromeOS. |
| 571 */ | 573 */ |
| 572 remoting.platformIsChromeOS = function() { | 574 remoting.platformIsChromeOS = function() { |
| 573 return navigator.userAgent.match(/\bCrOS\b/) != null; | 575 return navigator.userAgent.match(/\bCrOS\b/) != null; |
| 574 } | 576 } |
| OLD | NEW |