VulpesOS/gaia/shared/test/unit/mocks/mock_shrinking_ui.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

22 lines
606 B
JavaScript
Executable file

'use strict';
/* exported MockShrinkingUI */
function MockShrinkingUI(foregroundElement, backgroundElement) {
this.mStarted = false;
this.mActive = false;
this.elements.foregroundElement = foregroundElement;
this.elements.backgroundElement = backgroundElement;
}
MockShrinkingUI.prototype.elements = {};
MockShrinkingUI.prototype.start = function() {
this.mStarted = true;
};
MockShrinkingUI.prototype.stop = function() {
this.mStarted = false;
};
MockShrinkingUI.prototype.isActive = function() {
return this.mActive;
};
MockShrinkingUI.prototype.respondToHierarchyEvent = function() {};