| 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'; |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 } | 84 } |
| 85 | 85 |
| 86 console.log(this.getExtensionInfo()); | 86 console.log(this.getExtensionInfo()); |
| 87 l10n.localize(); | 87 l10n.localize(); |
| 88 | 88 |
| 89 var sandbox = | 89 var sandbox = |
| 90 /** @type {HTMLIFrameElement} */ (document.getElementById('wcs-sandbox')); | 90 /** @type {HTMLIFrameElement} */ (document.getElementById('wcs-sandbox')); |
| 91 remoting.wcsSandbox = new remoting.WcsSandboxContainer( | 91 remoting.wcsSandbox = new remoting.WcsSandboxContainer( |
| 92 sandbox.contentWindow, this.windowMessageDispatcher_); | 92 sandbox.contentWindow, this.windowMessageDispatcher_); |
| 93 remoting.initModalDialogs(); | 93 remoting.initModalDialogs(); |
| 94 | |
| 95 remoting.testEvents = new base.EventSourceImpl(); | |
| 96 /** @enum {string} */ | |
| 97 remoting.testEvents.Names = { | |
| 98 uiModeChanged: 'uiModeChanged' | |
| 99 }; | |
| 100 remoting.testEvents.defineEvents(base.values(remoting.testEvents.Names)); | |
| 101 }; | 94 }; |
| 102 | 95 |
| 103 /** | 96 /** |
| 104 * @return {string} Information about the current extension. | 97 * @return {string} Information about the current extension. |
| 105 */ | 98 */ |
| 106 remoting.Application.prototype.getExtensionInfo = function() { | 99 remoting.Application.prototype.getExtensionInfo = function() { |
| 107 var v2OrLegacy = base.isAppsV2() ? " (v2)" : " (legacy)"; | 100 var v2OrLegacy = base.isAppsV2() ? " (v2)" : " (legacy)"; |
| 108 var manifest = chrome.runtime.getManifest(); | 101 var manifest = chrome.runtime.getManifest(); |
| 109 if (manifest && manifest.version) { | 102 if (manifest && manifest.version) { |
| 110 var name = this.getApplicationName(); | 103 var name = this.getApplicationName(); |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 206 */ | 199 */ |
| 207 remoting.ApplicationInterface.prototype.startApplication_ = function(token) {}; | 200 remoting.ApplicationInterface.prototype.startApplication_ = function(token) {}; |
| 208 | 201 |
| 209 /** | 202 /** |
| 210 * Close down the application before exiting. | 203 * Close down the application before exiting. |
| 211 */ | 204 */ |
| 212 remoting.ApplicationInterface.prototype.exitApplication_ = function() {}; | 205 remoting.ApplicationInterface.prototype.exitApplication_ = function() {}; |
| 213 | 206 |
| 214 /** @type {remoting.Application} */ | 207 /** @type {remoting.Application} */ |
| 215 remoting.app = null; | 208 remoting.app = null; |
| OLD | NEW |