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:
parent
93e3a48004
commit
b38dea0597
25901 changed files with 9982925 additions and 369 deletions
53
gaia/apps/communications/dialer/js/index.js
Executable file
53
gaia/apps/communications/dialer/js/index.js
Executable file
|
|
@ -0,0 +1,53 @@
|
|||
/* globals KeypadManager, NavbarManager, LazyLoader, CallHandler */
|
||||
'use strict';
|
||||
|
||||
function onLoadDialer() {
|
||||
// Dialer chrome UI and keypad UI is visible and already exists in the DOM
|
||||
window.performance.mark('navigationLoaded');
|
||||
window.performance.mark('visuallyLoaded');
|
||||
|
||||
window.removeEventListener('load', onLoadDialer);
|
||||
|
||||
/* Tell the audio channel manager that we want to adjust the "notification"
|
||||
* channel when the user presses the volumeup/volumedown buttons. */
|
||||
if (navigator.mozAudioChannelManager) {
|
||||
navigator.mozAudioChannelManager.volumeControlChannel = 'notification';
|
||||
}
|
||||
|
||||
KeypadManager.init(/* oncall */ false);
|
||||
// Keypad (app core content) is now bound
|
||||
window.performance.mark('contentInteractive');
|
||||
|
||||
NavbarManager.init();
|
||||
// Navbar (chrome) events have now been bound
|
||||
window.performance.mark('navigationInteractive');
|
||||
|
||||
setTimeout(function nextTick() {
|
||||
var lazyPanels = ['confirmation-message',
|
||||
'edit-mode',
|
||||
'sim-picker'];
|
||||
|
||||
var lazyPanelsElements = lazyPanels.map(function toElement(id) {
|
||||
return document.getElementById(id);
|
||||
});
|
||||
LazyLoader.load(lazyPanelsElements);
|
||||
|
||||
CallHandler.init();
|
||||
navigator.mozL10n.once(function loadLazyFilesSet() {
|
||||
LazyLoader.load([
|
||||
'/shared/js/fb/fb_request.js',
|
||||
'/shared/js/fb/fb_data_reader.js',
|
||||
'/shared/js/fb/fb_reader_utils.js',
|
||||
'/shared/style/confirm.css',
|
||||
'/shared/js/confirm.js',
|
||||
'/shared/elements/config.js',
|
||||
'/shared/elements/gaia-header/dist/gaia-header.js',
|
||||
'/shared/style/edit_mode.css'
|
||||
], function fileSetLoaded() {
|
||||
window.performance.mark('fullyLoaded');
|
||||
});
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
window.addEventListener('load', onLoadDialer);
|
||||
Loading…
Reference in a new issue