| 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 that wraps low-level details of interacting with the client plugin. | 7 * Class that wraps low-level details of interacting with the client plugin. |
| 8 * | 8 * |
| 9 * This abstracts a <embed> element and controls the plugin which does | 9 * This abstracts a <embed> element and controls the plugin which does |
| 10 * the actual remoting work. It also handles differences between | 10 * the actual remoting work. It also handles differences between |
| (...skipping 891 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 902 remoting.DefaultClientPluginFactory.prototype.preloadPlugin = function() { | 902 remoting.DefaultClientPluginFactory.prototype.preloadPlugin = function() { |
| 903 if (remoting.settings.CLIENT_PLUGIN_TYPE != 'pnacl') { | 903 if (remoting.settings.CLIENT_PLUGIN_TYPE != 'pnacl') { |
| 904 return; | 904 return; |
| 905 } | 905 } |
| 906 | 906 |
| 907 var plugin = remoting.ClientPluginImpl.createPluginElement_(); | 907 var plugin = remoting.ClientPluginImpl.createPluginElement_(); |
| 908 plugin.addEventListener( | 908 plugin.addEventListener( |
| 909 'loadend', function() { document.body.removeChild(plugin); }, false); | 909 'loadend', function() { document.body.removeChild(plugin); }, false); |
| 910 document.body.appendChild(plugin); | 910 document.body.appendChild(plugin); |
| 911 }; | 911 }; |
| OLD | NEW |