aboutsummaryrefslogtreecommitdiffstats
path: root/shared/src
diff options
context:
space:
mode:
authorAlexey Fansky <alexey.fansky@effective-soft.com>2015-04-01 15:08:58 -0700
committerMarkus Koivisto <markus@vaadin.com>2015-04-15 11:45:01 +0300
commit2d24d34b19d2ea93e8b2058218915672ad9f0f0e (patch)
tree1f74b2ea36cd06d0ddb673f7ec404a554d5588c1 /shared/src
parent0ae745206a9ebc759a126606621f6cbd9f48b00d (diff)
downloadvaadin-framework-2d24d34b19d2ea93e8b2058218915672ad9f0f0e.tar.gz
vaadin-framework-2d24d34b19d2ea93e8b2058218915672ad9f0f0e.zip
Displaying tooltip on touch devices underneath the field (#17150)
Change-Id: I7381a6212b824f9dafc5fe7359b0e791f15c57b2
Diffstat (limited to 'shared/src')
-rw-r--r--shared/src/com/vaadin/shared/VBrowserDetails.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/shared/src/com/vaadin/shared/VBrowserDetails.java b/shared/src/com/vaadin/shared/VBrowserDetails.java
index 6e45d33e16..561b6c76d0 100644
--- a/shared/src/com/vaadin/shared/VBrowserDetails.java
+++ b/shared/src/com/vaadin/shared/VBrowserDetails.java
@@ -41,6 +41,7 @@ public class VBrowserDetails implements Serializable {
private boolean isFirefox = false;
private boolean isOpera = false;
private boolean isIE = false;
+ private boolean isPhantomJS = false;
private boolean isWindowsPhone;
private boolean isIPad;
@@ -86,6 +87,7 @@ public class VBrowserDetails implements Serializable {
isSafari = !isChrome && !isIE && userAgent.indexOf("safari") != -1;
isFirefox = userAgent.indexOf(" firefox/") != -1;
+ isPhantomJS = userAgent.indexOf("phantomjs/") != -1;
// chromeframe
isChromeFrameCapable = userAgent.indexOf("chromeframe") != -1;
@@ -371,6 +373,15 @@ public class VBrowserDetails implements Serializable {
}
/**
+ * Tests if the browser is PhantomJS.
+ *
+ * @return true if it is PhantomJS, false otherwise
+ */
+ public boolean isPhantomJS() {
+ return isPhantomJS;
+ }
+
+ /**
* Returns the version of the browser engine. For WebKit this is an integer
* e.g., 532.0. For gecko it is a float e.g., 1.8 or 1.9.
*