blinker / firefox.plugin / data / settings / settingsvariables.js @ 76dd22bd
History | View | Annotate | Download (4.88 KB)
1 | 76dd22bd | KevinTaron | /*
|
---|---|---|---|
2 | * Copyright 2015 Thies Pfeiffer and Dimitri Heil and Kevin Taron
|
||
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 | |||
21 | var eyeTracker,
|
||
22 | scrollAtBorders, |
||
23 | physicalScreenWidth, |
||
24 | physicalScreenHeight, |
||
25 | scaling, |
||
26 | privacyMode, |
||
27 | debugInformation, |
||
28 | borderGazedObjects, |
||
29 | gazeCrosshair, |
||
30 | gazeSmoothing, |
||
31 | gazeSmoothingHistory, |
||
32 | controlsInControlBar, |
||
33 | fixationThreshold, |
||
34 | linkParsingAreaWidth, |
||
35 | linkParsingAreaHeight, |
||
36 | getLinksFromArea, |
||
37 | getLinksFromElementBelow, |
||
38 | eyeTribeAverage, |
||
39 | gazeConfirmationSteps, |
||
40 | blickBrowserMode, |
||
41 | hideOnFocusLost; |
||
42 | |||
43 | //Listen to settings messages
|
||
44 | |||
45 | self.port.on("hideOnFocusLost", function(setting){ |
||
46 | hideOnFocusLost = setting; |
||
47 | console.log("settingsvariables.js :: " + "hideOnFocusLost is: "+hideOnFocusLost); |
||
48 | }); |
||
49 | self.port.on("eyeTribeAverage", function(setting){ |
||
50 | eyeTribeAverage = setting; |
||
51 | console.log("settingsvariables.js :: " + "eyeTribeAverage is: "+eyeTribeAverage); |
||
52 | }); |
||
53 | self.port.on("eyeTracker", function(setting){ |
||
54 | eyeTracker = setting; |
||
55 | console.log("settingsvariables.js :: " + "eyeTracker is: "+eyeTracker); |
||
56 | }); |
||
57 | self.port.on("controlsInControlBar", function(setting){ |
||
58 | controlsInControlBar = setting; |
||
59 | console.log("settingsvariables.js :: " + "controlsInControlBar is: "+controlsInControlBar); |
||
60 | }); |
||
61 | self.port.on("scrollAtBorders", function(setting){ |
||
62 | scrollAtBorders = setting; |
||
63 | console.log("settingsvariables.js :: " + "scrollAtBorders is: "+scrollAtBorders); |
||
64 | }); |
||
65 | self.port.on("physicalScreenWidth", function(setting){ |
||
66 | physicalScreenWidth = setting; |
||
67 | console.log("settingsvariables.js :: " + "physicalScreenWidth is: "+physicalScreenWidth); |
||
68 | }); |
||
69 | self.port.on("physicalScreenHeight", function(setting){ |
||
70 | physicalScreenHeight = setting; |
||
71 | console.log("settingsvariables.js :: " + "physicalScreenHeight is: "+physicalScreenHeight); |
||
72 | }); |
||
73 | self.port.on("scaling", function(setting){ |
||
74 | scaling = setting; |
||
75 | console.log("settingsvariables.js :: " + "scaling is: "+scaling); |
||
76 | }); |
||
77 | self.port.on("privacyMode", function(setting){ |
||
78 | privacyMode = setting; |
||
79 | console.log("settingsvariables.js :: " + "privacyMode is: "+privacyMode); |
||
80 | }); |
||
81 | self.port.on("debugInformation", function(setting){ |
||
82 | debugInformation = setting; |
||
83 | console.log("settingsvariables.js :: " + "debugInformation is: "+debugInformation); |
||
84 | }); |
||
85 | self.port.on("borderGazedObjects", function(setting){ |
||
86 | borderGazedObjects = setting; |
||
87 | console.log("settingsvariables.js :: " + "borderGazedObjects is: "+borderGazedObjects); |
||
88 | }); |
||
89 | self.port.on("gazeCrosshair", function(setting){ |
||
90 | gazeCrosshair = setting; |
||
91 | console.log("settingsvariables.js :: " + "gazeCrosshair is: "+gazeCrosshair); |
||
92 | }); |
||
93 | self.port.on("gazeSmoothing", function(setting){ |
||
94 | gazeSmoothing = setting; |
||
95 | console.log("settingsvariables.js :: " + "gazeSmoothing is: "+gazeSmoothing); |
||
96 | }); |
||
97 | self.port.on("gazeSmoothingHistory", function(setting){ |
||
98 | gazeSmoothingHistory = setting; |
||
99 | console.log("settingsvariables.js :: " + "gazeSmoothingHistory is: "+gazeSmoothingHistory); |
||
100 | }); |
||
101 | self.port.on("fixationThreshold", function(setting){ |
||
102 | fixationThreshold = setting; |
||
103 | console.log("settingsvariables.js :: " + "fixationThreshold is: "+fixationThreshold); |
||
104 | }); |
||
105 | self.port.on("linkParsingAreaWidth", function(setting){ |
||
106 | linkParsingAreaWidth = setting; |
||
107 | console.log("settingsvariables.js :: " + "linkParsingAreaWidth is: "+linkParsingAreaWidth); |
||
108 | }); |
||
109 | self.port.on("linkParsingAreaHeight", function(setting){ |
||
110 | linkParsingAreaHeight = setting; |
||
111 | console.log("settingsvariables.js :: " + "linkParsingAreaHeight is: "+linkParsingAreaHeight); |
||
112 | }); |
||
113 | self.port.on("getLinksFromArea", function(setting){ |
||
114 | getLinksFromArea = setting; |
||
115 | console.log("settingsvariables.js :: " + "getLinksFromArea is: "+getLinksFromArea); |
||
116 | }); |
||
117 | self.port.on("getLinksFromElementBelow", function(setting){ |
||
118 | getLinksFromElementBelow = setting; |
||
119 | console.log("settingsvariables.js :: " + "getLinksFromElementBelow is: "+getLinksFromElementBelow); |
||
120 | }); |
||
121 | self.port.on("gazeConfirmationSteps", function(setting){ |
||
122 | gazeConfirmationSteps = setting; |
||
123 | console.log("settingsvariables.js :: " + "gazeConfirmationSteps is: "+gazeConfirmationSteps); |
||
124 | }); |
||
125 | self.port.on("blickBrowserMode", function(setting){ |
||
126 | blickBrowserMode = setting; |
||
127 | console.log("settingsvariables.js :: " + "blickBrowserMode is: "+blickBrowserMode); |
||
128 | }); |