Author: ygrego Date: 2015-06-15 10:50:14 +0000 (Mon, 15 Jun 2015) New Revision: 1723 Url: http://forge.nuiton.org/projects/sandbox/repository/revisions/1723 Log: Permit to activate and deactivate an application. Modified: oipf/lib/js/impl/model/Application.js Modified: oipf/lib/js/impl/model/Application.js =================================================================== --- oipf/lib/js/impl/model/Application.js 2015-06-15 10:41:45 UTC (rev 1722) +++ oipf/lib/js/impl/model/Application.js 2015-06-15 10:50:14 UTC (rev 1723) @@ -183,9 +183,26 @@ * the value for argument gainFocus. */ activateInput(gainFocus) { + if (this._applicationManager.getApplicationVisualizationMode() == 1 || + this._applicationManager.getApplicationVisualizationMode() == 2) { + this.active = true; + } } + /** + * [[Description]] + * Remove the application from the active applications list. This has no effect on the + * lifecycle of the application and MAY have no effect on the resources it uses. Applications + * which are not active will receive no cross-application events, unless their Application + * object is the target of the event (as for the events defined in section 7.2.6). Applications + * may still be manipulated via their Application object or their DOM tree. + */ + deactivateInput() { + this.active = false; + this._applicationManager._removeFromActiveList(this); + } + _setWindow(windowApp) { this.window = {}; if (windowApp && windowApp.postMessage) {
participants (1)
-
ygregoï¼ users.nuiton.org