Statistics
| Branch: | Revision:

blinker / firefox.plugin / data / settingsvariables.js @ 4a410264

History | View | Annotate | Download (4.738 KB)

1
/*
2
 * Copyright 2015 Thies Pfeiffer and Dimitri Heil
3
 * Blinker is distributed under the terms of the GNU General Public License
4
 * 
5
 * This file is part of Blinker.
6
 * 
7
 * Blinker is free software: you can redistribute it and/or modify
8
 * it under the terms of the GNU General Public License as published by
9
 * the Free Software Foundation, either version 3 of the License, or
10
 * (at your option) any later version.
11
 * 
12
 * Blinker is distributed in the hope that it will be useful,
13
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
 * GNU General Public License for more details.
16
 * 
17
 * You should have received a copy of the GNU General Public License
18
 * along with Blinker. If not, see <http://www.gnu.org/licenses/>.
19
 */
20
var eyeTracker, 
21
scrollAtBorders, 
22
physicalScreenWidth, 
23
physicalScreenHeight, 
24
scaling, 
25
privacyMode, 
26
debugInformation, 
27
borderGazedObjects, 
28
gazeCrosshair,
29
gazeSmoothing,
30
gazeSmoothingHistory,
31
controlsInControlBar,
32
fixationThreshold,
33
linkParsingAreaWidth,
34
linkParsingAreaHeight,
35
getLinksFromArea,
36
getLinksFromElementBelow,
37
eyeTribeAverage,
38
gazeConfirmationSteps,
39
blickBrowserMode,
40
hideOnFocusLost;
41

    
42
//Listen to settings messages
43

    
44
self.port.on("hideOnFocusLost", function(setting){
45
        hideOnFocusLost = setting;
46
        console.log("settingsvariables.js :: " + "hideOnFocusLost is: "+hideOnFocusLost);
47
});
48
self.port.on("eyeTribeAverage", function(setting){
49
        eyeTribeAverage = setting;
50
        console.log("settingsvariables.js :: " + "eyeTribeAverage is: "+eyeTribeAverage);
51
});
52
self.port.on("eyeTracker", function(setting){
53
        eyeTracker = setting;
54
        console.log("settingsvariables.js :: " + "eyeTracker is: "+eyeTracker);
55
});
56
self.port.on("controlsInControlBar", function(setting){
57
        controlsInControlBar = setting;
58
        console.log("settingsvariables.js :: " + "controlsInControlBar is: "+controlsInControlBar);
59
});
60
self.port.on("scrollAtBorders", function(setting){
61
        scrollAtBorders = setting;
62
        console.log("settingsvariables.js :: " + "scrollAtBorders is: "+scrollAtBorders);
63
});
64
self.port.on("physicalScreenWidth", function(setting){
65
        physicalScreenWidth = setting;
66
        console.log("settingsvariables.js :: " + "physicalScreenWidth is: "+physicalScreenWidth);
67
});
68
self.port.on("physicalScreenHeight", function(setting){
69
        physicalScreenHeight = setting;
70
        console.log("settingsvariables.js :: " + "physicalScreenHeight is: "+physicalScreenHeight);
71
});
72
self.port.on("scaling", function(setting){
73
        scaling = setting;
74
        console.log("settingsvariables.js :: " + "scaling is: "+scaling);
75
});
76
self.port.on("privacyMode", function(setting){
77
        privacyMode = setting;
78
        console.log("settingsvariables.js :: " + "privacyMode is: "+privacyMode);
79
});
80
self.port.on("debugInformation", function(setting){
81
        debugInformation = setting;
82
        console.log("settingsvariables.js :: " + "debugInformation is: "+debugInformation);
83
});
84
self.port.on("borderGazedObjects", function(setting){
85
        borderGazedObjects = setting;
86
        console.log("settingsvariables.js :: " + "borderGazedObjects is: "+borderGazedObjects);
87
});
88
self.port.on("gazeCrosshair", function(setting){
89
        gazeCrosshair = setting;
90
        console.log("settingsvariables.js :: " + "gazeCrosshair is: "+gazeCrosshair);
91
});
92
self.port.on("gazeSmoothing", function(setting){
93
        gazeSmoothing = setting;
94
        console.log("settingsvariables.js :: " + "gazeSmoothing is: "+gazeSmoothing);
95
});
96
self.port.on("gazeSmoothingHistory", function(setting){
97
        gazeSmoothingHistory = setting;
98
        console.log("settingsvariables.js :: " + "gazeSmoothingHistory is: "+gazeSmoothingHistory);
99
});
100
self.port.on("fixationThreshold", function(setting){
101
        fixationThreshold = setting;
102
        console.log("settingsvariables.js :: " + "fixationThreshold is: "+fixationThreshold);
103
});
104
self.port.on("linkParsingAreaWidth", function(setting){
105
        linkParsingAreaWidth = setting;
106
        console.log("settingsvariables.js :: " + "linkParsingAreaWidth is: "+linkParsingAreaWidth);
107
});
108
self.port.on("linkParsingAreaHeight", function(setting){
109
        linkParsingAreaHeight = setting;
110
        console.log("settingsvariables.js :: " + "linkParsingAreaHeight is: "+linkParsingAreaHeight);
111
});
112
self.port.on("getLinksFromArea", function(setting){
113
        getLinksFromArea = setting;
114
        console.log("settingsvariables.js :: " + "getLinksFromArea is: "+getLinksFromArea);
115
});
116
self.port.on("getLinksFromElementBelow", function(setting){
117
        getLinksFromElementBelow = setting;
118
        console.log("settingsvariables.js :: " + "getLinksFromElementBelow is: "+getLinksFromElementBelow);
119
});
120
self.port.on("gazeConfirmationSteps", function(setting){
121
        gazeConfirmationSteps = setting;
122
        console.log("settingsvariables.js :: " + "gazeConfirmationSteps is: "+gazeConfirmationSteps);
123
});
124
self.port.on("blickBrowserMode", function(setting){
125
        blickBrowserMode = setting;
126
        console.log("settingsvariables.js :: " + "blickBrowserMode is: "+blickBrowserMode);
127
});