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

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

Issue 467903002: Preload PNaCl plugin when the webapp is started. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 months 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 | Annotate | Revision Log
« no previous file with comments | « remoting/webapp/client_plugin.js ('k') | no next file » | 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 '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
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
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 }
OLDNEW
« no previous file with comments | « remoting/webapp/client_plugin.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698