| OLD | NEW |
| 1 /* Copyright 2013 The Chromium Authors. All rights reserved. | 1 /* Copyright 2013 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 /** | 6 /** |
| 7 * @fileoverview | 7 * @fileoverview |
| 8 * The sandbox side of the application/sandbox WCS interface, used by the | 8 * The sandbox side of the application/sandbox WCS interface, used by the |
| 9 * sandbox to exchange messages with the application. | 9 * sandbox to exchange messages with the application. |
| 10 */ | 10 */ |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 var message = { | 124 var message = { |
| 125 'command': 'onLocalJid', | 125 'command': 'onLocalJid', |
| 126 'localJid': localJid | 126 'localJid': localJid |
| 127 }; | 127 }; |
| 128 this.parentWindow_.postMessage(message, '*'); | 128 this.parentWindow_.postMessage(message, '*'); |
| 129 }; | 129 }; |
| 130 | 130 |
| 131 /** | 131 /** |
| 132 * Callback method to indicate that something went wrong loading the WCS driver. | 132 * Callback method to indicate that something went wrong loading the WCS driver. |
| 133 * | 133 * |
| 134 * @param {remoting.Error} error Details of the error. | 134 * @param {!remoting.Error} error Details of the error. |
| 135 * @private | 135 * @private |
| 136 */ | 136 */ |
| 137 remoting.WcsSandboxContent.prototype.onError_ = function(error) { | 137 remoting.WcsSandboxContent.prototype.onError_ = function(error) { |
| 138 var message = { | 138 var message = { |
| 139 'command': 'onError', | 139 'command': 'onError', |
| 140 'error': error | 140 'error': error |
| 141 }; | 141 }; |
| 142 this.parentWindow_.postMessage(message, '*'); | 142 this.parentWindow_.postMessage(message, '*'); |
| 143 }; | 143 }; |
| 144 | 144 |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 212 }; | 212 }; |
| 213 | 213 |
| 214 remoting.settings = new remoting.Settings(); | 214 remoting.settings = new remoting.Settings(); |
| 215 remoting.sandboxContent = new remoting.WcsSandboxContent(); | 215 remoting.sandboxContent = new remoting.WcsSandboxContent(); |
| 216 } | 216 } |
| 217 | 217 |
| 218 window.addEventListener('load', onSandboxInit, false); | 218 window.addEventListener('load', onSandboxInit, false); |
| 219 | 219 |
| 220 /** @type {remoting.WcsSandboxContent} */ | 220 /** @type {remoting.WcsSandboxContent} */ |
| 221 remoting.sandboxContent = null; | 221 remoting.sandboxContent = null; |
| OLD | NEW |