summaryrefslogtreecommitdiffstats
path: root/server/src
diff options
context:
space:
mode:
authorFlamenco <Flamenco@users.noreply.github.com>2017-07-27 06:24:43 -0400
committerHenri Sara <henri.sara@gmail.com>2017-07-27 13:24:43 +0300
commit410965ddca3e601343f8b759e1a27a2c1b0d0f29 (patch)
tree248f9da31766b7d5a3ed538331bcc1f431810832 /server/src
parentb4243fe81aefd2f7f61d0a5bc644424616f2312c (diff)
downloadvaadin-framework-410965ddca3e601343f8b759e1a27a2c1b0d0f29.tar.gz
vaadin-framework-410965ddca3e601343f8b759e1a27a2c1b0d0f29.zip
Add support for detecting ChromeOS operating system (#9698)
Diffstat (limited to 'server/src')
-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