-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathPlatformReporter.js
More file actions
37 lines (33 loc) · 1.04 KB
/
PlatformReporter.js
File metadata and controls
37 lines (33 loc) · 1.04 KB
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
/**
* GPII Linux Platform Reporter
*
* Copyright 2017 Inclusive Design Research Centre, OCAD University
*
* Licensed under the New BSD license. You may not use this file except in
* compliance with this License.
*
* You may obtain a copy of the License at
* https://github.com/GPII/linux/blob/master/LICENSE.txt
*
* The research leading to these results has received funding from the European Union's
* Seventh Framework Programme (FP7/2007-2013)
* under grant agreement no. 289016.
*/
"use strict";
var fluid = require("infusion");
require("xrandr");
var gpii = fluid.registerNamespace("gpii");
fluid.require("gpii-universal");
fluid.defaults("gpii.platformReporter.linux", {
gradeNames: ["gpii.platformReporter"],
invokers: {
reportPlatform: {
funcName: "gpii.platformReporter.linux.reportAll",
args: ["{that}"]
}
}
});
gpii.platformReporter.linux.reportAll = function (that) {
var allInfo = that.getBasicOS();
return Object.assign(allInfo, gpii.xrandr.getAllScreenResolutions());
};