aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorHenri Sara <henri.sara@itmill.com>2010-04-07 10:11:34 +0000
committerHenri Sara <henri.sara@itmill.com>2010-04-07 10:11:34 +0000
commitd6843c65213986215af8f1d3ed79b1addc05062a (patch)
tree0bfa6087d915a5ddfb9fc8119117d49f1014272c /src
parenta0fa605da1b9dd1b17c6795673b6d003882fe384 (diff)
downloadvaadin-framework-d6843c65213986215af8f1d3ed79b1addc05062a.tar.gz
vaadin-framework-d6843c65213986215af8f1d3ed79b1addc05062a.zip
#4491 server side access to browser minor version and updated sample
svn changeset:12346/svn branch:6.3
Diffstat (limited to 'src')
-rw-r--r--src/com/vaadin/terminal/gwt/server/WebBrowser.java15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/com/vaadin/terminal/gwt/server/WebBrowser.java b/src/com/vaadin/terminal/gwt/server/WebBrowser.java
index a9a392b5d8..81d4a638a3 100644
--- a/src/com/vaadin/terminal/gwt/server/WebBrowser.java
+++ b/src/com/vaadin/terminal/gwt/server/WebBrowser.java
@@ -210,4 +210,19 @@ public class WebBrowser implements Terminal {
return browserDetails.getBrowserMajorVersion();
}
+
+ /**
+ * Gets the minor version of the browser the user is using.
+ *
+ * @see #getBrowserMajorVersion()
+ *
+ * @return The minor version of the browser or -1 if not known.
+ */
+ public int getBrowserMinorVersion() {
+ if (browserDetails == null) {
+ return -1;
+ }
+
+ return browserDetails.getBrowserMinorVersion();
+ }
}