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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 var message = { | 133 var message = { |
134 'command': 'onLocalJid', | 134 'command': 'onLocalJid', |
135 'localJid': localJid | 135 'localJid': localJid |
136 }; | 136 }; |
137 this.parentWindow_.postMessage(message, '*'); | 137 this.parentWindow_.postMessage(message, '*'); |
138 }; | 138 }; |
139 | 139 |
140 /** | 140 /** |
141 * Callback method to indicate that something went wrong loading the WCS driver. | 141 * Callback method to indicate that something went wrong loading the WCS driver. |
142 * | 142 * |
143 * @param {remoting.Error} error Details of the error. | 143 * @param {!remoting.Error} error Details of the error. |
144 * @private | 144 * @private |
145 */ | 145 */ |
146 remoting.WcsSandboxContent.prototype.onError_ = function(error) { | 146 remoting.WcsSandboxContent.prototype.onError_ = function(error) { |
147 var message = { | 147 var message = { |
148 'command': 'onError', | 148 'command': 'onError', |
149 'error': error | 149 'error': error |
150 }; | 150 }; |
151 this.parentWindow_.postMessage(message, '*'); | 151 this.parentWindow_.postMessage(message, '*'); |
152 }; | 152 }; |
153 | 153 |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
221 }; | 221 }; |
222 | 222 |
223 remoting.settings = new remoting.Settings(); | 223 remoting.settings = new remoting.Settings(); |
224 remoting.sandboxContent = new remoting.WcsSandboxContent(); | 224 remoting.sandboxContent = new remoting.WcsSandboxContent(); |
225 } | 225 } |
226 | 226 |
227 window.addEventListener('load', onSandboxInit, false); | 227 window.addEventListener('load', onSandboxInit, false); |
228 | 228 |
229 /** @type {remoting.WcsSandboxContent} */ | 229 /** @type {remoting.WcsSandboxContent} */ |
230 remoting.sandboxContent = null; | 230 remoting.sandboxContent = null; |
OLD | NEW |