VulpesOS/gaia/apps/system/test/unit/mock_layout_manager.js
OverSu b38dea0597 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.
2026-09-30 23:13:03 +02:00

27 lines
732 B
JavaScript
Executable file

'use strict';
(function(exports) {
var MockLayoutManager = function MockLayoutManager() {};
MockLayoutManager.prototype = {
width: window.innerWidth,
height: window.innerHeight,
mKeyboardHeight: 0,
keyboardEnabled: false,
match: function() {
return true;
},
getHeightFor: function(win, ignoreKeyboard) {
return this.height - (ignoreKeyboard ? 0 : this.mKeyboardHeight);
},
start: function() {
return this;
},
mTeardown: function mlm_mTeardown() {
this.width = window.innerWidth;
this.height = window.innerHeight;
this.keyboardEnabled = false;
this.mKeyboardHeight = 0;
}
};
exports.MockLayoutManager = MockLayoutManager;
}(window));