Share Gaia assets and adapters, keep private profiles and development documents local, and update both public READMEs.
45 lines
796 B
JavaScript
Executable file
45 lines
796 B
JavaScript
Executable file
'use strict';
|
|
/* exported MockLockScreen */
|
|
|
|
var MockLockScreen = {
|
|
locked: false,
|
|
|
|
enabled: true,
|
|
|
|
passCodeEnabled: false,
|
|
|
|
passcode: '0000',
|
|
|
|
maskedBackground: undefined,
|
|
|
|
notificationsContainer: undefined,
|
|
notificationArrow: undefined,
|
|
|
|
init: function mls_init() {
|
|
this.locked = false;
|
|
this.maskedBackground = undefined;
|
|
this.notificationsContainer = undefined;
|
|
this.notificationArrow = undefined;
|
|
},
|
|
|
|
lock: function mls_lock() {
|
|
this.locked = true;
|
|
},
|
|
|
|
lockIfEnabled: function mls_lockIfEnabled() {
|
|
if (this.enabled) {
|
|
this.lock();
|
|
}
|
|
},
|
|
|
|
unlock: function mls_unclock() {
|
|
this.locked = false;
|
|
},
|
|
|
|
mozLockOrientation: function mls_mozLockOrientation() {
|
|
},
|
|
|
|
mTeardown: function mls_mTeardown() {
|
|
this.init();
|
|
}
|
|
};
|