This file is indexed.

/usr/share/gnome-shell/js/ui/flashspot.js is in gnome-shell-common 3.4.1-0ubuntu2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
// -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*-

const Lang = imports.lang;

const Lightbox = imports.ui.lightbox;
const Main = imports.ui.main;
const Tweener = imports.ui.tweener;

const FLASHSPOT_ANIMATION_TIME = 0.25; // seconds

const Flashspot = new Lang.Class({
    Name: 'Flashspot',
    Extends: Lightbox.Lightbox,

    _init: function(area) {
        this.parent(Main.uiGroup, { inhibitEvents: true,
                                    width: area.width,
                                    height: area.height });

        this.actor.style_class = 'flashspot';
        this.actor.set_position(area.x, area.y);
    },

    fire: function() {
        this.actor.opacity = 0;
        Tweener.addTween(this.actor,
                         { opacity: 255,
                           time: FLASHSPOT_ANIMATION_TIME,
                           transition: 'linear',
                           onComplete: Lang.bind(this, this._onFireShowComplete)
                         });
        this.actor.show();
    },

    _onFireShowComplete: function() {
        Tweener.addTween(this.actor,
                         { opacity: 0,
                           time: FLASHSPOT_ANIMATION_TIME,
                           transition: 'linear',
                           onComplete: Lang.bind(this, function() {
                               this.destroy();
                           })
                         });
    }
});