OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 * Interface abstracting the Application functionality. | 7 * Interface abstracting the Application functionality. |
8 */ | 8 */ |
9 | 9 |
10 'use strict'; | 10 'use strict'; |
11 | 11 |
12 /** @suppress {duplicate} */ | 12 /** @suppress {duplicate} */ |
13 var remoting = remoting || {}; | 13 var remoting = remoting || {}; |
14 | 14 |
15 /** | 15 /** |
16 * @type {base.EventSourceImpl} An event source object for handling global | 16 * @type {base.EventSourceImpl} An event source object for handling global |
17 * events. This is an interim hack. Eventually, we should move | 17 * events. This is an interim hack. Eventually, we should move |
18 * functionalities away from the remoting namespace and into smaller objects. | 18 * functionalities away from the remoting namespace and into smaller objects. |
19 */ | 19 */ |
20 remoting.testEvents; | 20 remoting.testEvents; |
21 | 21 |
22 /** | 22 /** |
23 * @constructor | 23 * @constructor |
24 */ | 24 */ |
25 remoting.Application = function() { | 25 remoting.Application = function() { |
26 // Create global factories. | 26 // Create global factories. |
27 remoting.ClientPlugin.factory = new remoting.DefaultClientPluginFactory(); | 27 remoting.ClientPlugin.factory = new remoting.DefaultClientPluginFactory(); |
28 remoting.SessionConnector.factory = | |
29 new remoting.DefaultSessionConnectorFactory(); | |
30 | 28 |
31 /** @protected {remoting.Application.Mode} */ | 29 /** @protected {remoting.Application.Mode} */ |
32 this.connectionMode_ = remoting.Application.Mode.ME2ME; | 30 this.connectionMode_ = remoting.Application.Mode.ME2ME; |
33 }; | 31 }; |
34 | 32 |
35 /** | 33 /** |
36 * The current application mode (IT2Me, Me2Me or AppRemoting). | 34 * The current application mode (IT2Me, Me2Me or AppRemoting). |
37 * | 35 * |
38 * TODO(kelvinp): Remove this when Me2Me and It2Me are abstracted into its | 36 * TODO(kelvinp): Remove this when Me2Me and It2Me are abstracted into its |
39 * own flow objects. | 37 * own flow objects. |
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
222 */ | 220 */ |
223 remoting.ApplicationInterface.prototype.startApplication_ = function(token) {}; | 221 remoting.ApplicationInterface.prototype.startApplication_ = function(token) {}; |
224 | 222 |
225 /** | 223 /** |
226 * Close down the application before exiting. | 224 * Close down the application before exiting. |
227 */ | 225 */ |
228 remoting.ApplicationInterface.prototype.exitApplication_ = function() {}; | 226 remoting.ApplicationInterface.prototype.exitApplication_ = function() {}; |
229 | 227 |
230 /** @type {remoting.Application} */ | 228 /** @type {remoting.Application} */ |
231 remoting.app = null; | 229 remoting.app = null; |
OLD | NEW |