summaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
Diffstat (limited to 'server')
-rw-r--r--server/src/main/java/com/vaadin/server/WebBrowser.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/server/src/main/java/com/vaadin/server/WebBrowser.java b/server/src/main/java/com/vaadin/server/WebBrowser.java
index 82f5e2df79..b454da030c 100644
--- a/server/src/main/java/com/vaadin/server/WebBrowser.java
+++ b/server/src/main/java/com/vaadin/server/WebBrowser.java
@@ -330,6 +330,16 @@ public class WebBrowser implements Serializable {
}
/**
+ * Tests if the browser is run on ChromeOS (e.g. a Chromebook).
+ *
+ * @return true if run on ChromeOS false if the user is not using ChromeOS or if no
+ * information on the browser is present
+ */
+ public boolean isChromeOS() {
+ return browserDetails.isChromeOS();
+ }
+
+ /**
* Returns the browser-reported TimeZone offset in milliseconds from GMT.
* This includes possible daylight saving adjustments, to figure out which
* TimeZone the user actually might be in, see