Publish Vulpes Preview 15 sources for desktop, Android and Tundra

Share Gaia assets and adapters, keep private profiles and development documents local, and update both public READMEs.
This commit is contained in:
OverSu 2026-09-30 23:13:03 +02:00
commit b38dea0597
25901 changed files with 9982925 additions and 369 deletions

View file

@ -0,0 +1,65 @@
/* global BaseModule */
'use strict';
(function(exports) {
/**
* HomescreenWindowManager manages the show/hide of HomescreenWindow and
* HomescreenLauncher instances.
*
* @class HomescreenWindowManager
* @requires BaseModule
*/
function HomescreenWindowManager() {}
HomescreenWindowManager.EVENTS = [
'appswitching',
'open-app',
'webapps-launch'
];
HomescreenWindowManager.SUB_MODULES = [
'HomescreenLauncher'
];
HomescreenWindowManager.STATES = [
'getHomescreen'
];
BaseModule.create(HomescreenWindowManager, {
DEBUG: false,
name: 'HomescreenWindowManager',
_handle_appswitching: function() {
this.getHomescreen().fadeOut();
},
'_handle_open-app': function(evt) {
this._handle_launch_homescreen(evt);
},
'_handle_webapps-launch': function(evt) {
this._handle_launch_homescreen(evt);
},
_handle_launch_homescreen: function(evt) {
var detail = evt.detail;
if (this.homescreenLauncher &&
detail.manifestURL === this.homescreenLauncher.manifestURL) {
this.getHomescreen();
evt.stopImmediatePropagation();
}
},
/**
* getHomescreen returns the homescreen app window based on if it is
* triggered by home event.
*
* @memberOf HomescreenWindowManager.prototype
*/
getHomescreen: function getHomescreen(isHomeEvent) {
if (!this.homescreenLauncher) {
return null;
}
var home = this.homescreenLauncher.getHomescreen(true);
if (isHomeEvent) {
home.ensure(true);
}
return home;
}
});
}());