Use goog.string.compareVersions.
Compares two version numbers.
|
code » | |
No description.
Returns: string
the platform (operating system) the user agent is running
on. Default to empty string because navigator.platform may not be defined
(on Rhino, for example).
|
code » | |
No description.
Returns: string
The string that describes the version number of the user
agent.
|
code » | |
No description.
|
code » | |
TODO(nnaze): Change type to "Navigator" and update compilation targets.
Returns: Object
The native navigator object.
|
code » | |
Returns the userAgent string for the current browser.
Returns: string
The userAgent string.
|
code » | |
![]()
Initialize the goog.userAgent constants that define which platform the user
agent is running on.
|
code » | |
![]()
No description.
|
code » | |
Use goog.userAgent.isDocumentModeOrHigher().
Deprecated alias to
goog.userAgent.isDocumentModeOrHigher .
|
code » | |
Whether the IE effective document mode is higher or the same as the given
document mode version.
NOTE: Only for IE, return false for another browser.
|
code » | |
Whether the user agent is running on a mobile device.
This is a separate function so that the logic can be tested.
TODO(nnaze): Investigate swapping in goog.labs.userAgent.device.isMobile().
Returns: boolean
Whether the user agent is running on a mobile device.
|
code » | |
Use goog.userAgent.isVersionOrHigher().
Deprecated alias to
goog.userAgent.isVersionOrHigher .
|
code » | |
Whether the user agent version is higher or the same as the given version.
NOTE: When checking the version numbers for Firefox and Safari, be sure to
use the engine's version, not the browser's version number. For example,
Firefox 3.0 corresponds to Gecko 1.9 and Safari 3.0 to Webkit 522.11.
Opera and Internet Explorer versions match the product release number.
|
code » |
![]()
Whether the user agent is running on Android.
|
Code » | |
![]()
No description.
|
Code » | |
![]()
No description.
|
Code » | |
![]()
No description.
|
Code » | |
![]()
No description.
|
Code » | |
![]()
No description.
|
Code » | |
![]()
No description.
|
Code » | |
![]()
No description.
|
Code » | |
![]()
No description.
|
Code » | |
![]()
No description.
|
Code » | |
![]()
No description.
|
Code » | |
![]()
No description.
|
Code » | |
![]()
No description.
|
Code » | |
![]()
No description.
|
Code » | |
![]()
Whether we know the browser engine at compile-time.
|
Code » | |
![]()
No description.
|
Code » | |
![]()
For IE version < 7, documentMode is undefined, so attempt to use the
CSS1Compat property to see if we are in standards mode. If we are in
standards mode, treat the browser version as the document mode. Otherwise,
IE is emulating version 5.
|
Code » | |
![]()
Whether the user agent is Gecko. Gecko is the rendering engine used by
Mozilla, Firefox, and others.
|
Code » | |
![]()
Whether the user agent is Internet Explorer.
|
Code » | |
![]()
Whether the user agent is running on an iPad.
|
Code » | |
![]()
Whether the user agent is running on an iPhone.
|
Code » | |
![]()
Whether the user agent is running on a Linux operating system.
|
Code » | |
![]()
Whether the user agent is running on a Macintosh operating system.
|
Code » | |
![]()
Whether the user agent is running on a mobile device.
TODO(nnaze): Consider deprecating MOBILE when labs.userAgent
is promoted as the gecko/webkit logic is likely inaccurate.
|
Code » | |
![]()
Whether the user agent is Opera.
|
Code » | |
![]()
The platform (operating system) the user agent is running on. Default to
empty string because navigator.platform may not be defined (on Rhino, for
example).
|
Code » | |
![]()
No description.
|
Code » | |
![]()
Used while transitioning code to use WEBKIT instead.
|
Code » | |
![]()
The version of the user agent. This is a string because it might contain
'b' (as in beta) as well as multiple dots.
|
Code » | |
![]()
Whether the user agent is WebKit. WebKit is the rendering engine that
Safari, Android and others use.
|
Code » | |
![]()
Whether the user agent is running on a Windows operating system.
|
Code » | |
![]()
Whether the user agent is running on a X11 windowing system.
|
Code » | |
![]()
No description.
|
Code » | |
![]()
No description.
|
Code » | |
![]()
Whether the user agent is running on Android.
|
Code » | |
![]()
Whether the user agent is running on an iPad.
|
Code » | |
![]()
Whether the user agent is running on an iPhone.
|
Code » | |
![]()
Whether the user agent is running on a Linux operating system.
|
Code » | |
![]()
Whether the user agent is running on a Macintosh operating system.
|
Code » | |
![]()
Whether the user agent is running on a Windows operating system.
|
Code » | |
![]()
Whether the user agent is running on a X11 windowing system.
|
Code » | |
![]()
No description.
|
Code » | |
![]()
No description.
|
Code » | |
![]()
No description.
|
Code » | |
![]()
Cache for
goog.userAgent.isVersionOrHigher .
Calls to compareVersions are surprisingly expensive and, as a browser's
version number is unlikely to change during a session, we cache the results.
|
Code » | |
![]()
No description.
|
Code » | |
![]()
No description.
|
Code » | |
![]()
No description.
|
Code » | |
![]()
No description.
|
Code » | |
![]()
No description.
|
Code » | |
![]()
No description.
|
Code » | |
![]()
No description.
|
Code » | |
![]()
No description.
|
Code » | |
![]()
No description.
|
Code » |