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
27
gaia/apps/system/js/playing_icon.js
Executable file
27
gaia/apps/system/js/playing_icon.js
Executable file
|
|
@ -0,0 +1,27 @@
|
|||
/* global BaseIcon, Service */
|
||||
'use strict';
|
||||
|
||||
(function(exports) {
|
||||
var PlayingIcon = function(manager, index) {
|
||||
BaseIcon.call(this, manager, index);
|
||||
};
|
||||
PlayingIcon.prototype = Object.create(BaseIcon.prototype);
|
||||
PlayingIcon.prototype.name = 'PlayingIcon';
|
||||
PlayingIcon.prototype.shouldDisplay = function() {
|
||||
// The camera recording fires a audio-channel-changed event to kill
|
||||
// existing "content" audio channels, in this case we don't show the
|
||||
// playing icon.
|
||||
return this.manager.currentChannel === 'content' &&
|
||||
!Service.query('RecordingIcon.isVisible');
|
||||
};
|
||||
|
||||
PlayingIcon.prototype.view = function view() {
|
||||
return `<div id="statusbar-playing"
|
||||
class="sb-icon sb-icon-playing"
|
||||
hidden role="listitem"
|
||||
data-l10n-id="statusbarPlaying">
|
||||
</div>`;
|
||||
};
|
||||
|
||||
exports.PlayingIcon = PlayingIcon;
|
||||
}(window));
|
||||
Loading…
Reference in a new issue