Share Gaia assets and adapters, keep private profiles and development documents local, and update both public READMEs.
22 lines
606 B
JavaScript
Executable file
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() {};
|