Go to the source code of this file.
Functions | |
function | CPBrowserBackingStorePixelRatio (context) |
function | CPBrowserCSSProperty (aProperty) |
function | CPBrowserIsEngine (anEngine) |
function | CPBrowserIsOperatingSystem (anOperatingSystem) |
function | CPBrowserStyleProperty (aProperty) |
function | CPFeatureIsCompatible (aFeature) |
function | CPPlatformHasBug (aBug) |
if (typeof window!=="undefined"&&typeof window.navigator!=="undefined") USER_AGENT | |
else | if (USER_AGENT.indexOf("AppleWebKit/")!=-1) |
else | if (USER_AGENT.indexOf("KHTML")!=-1) |
else | if (USER_AGENT.indexOf("Gecko")!==-1) |
if (typeof document!="undefined") | |
if (USER_AGENT.indexOf("Mac")!==-1) | |
function CPBrowserBackingStorePixelRatio | ( | context | ) |
Definition at line 440 of file CPCompatibility.j.
function CPBrowserCSSProperty | ( | aProperty | ) |
Definition at line 403 of file CPCompatibility.j.
function CPBrowserIsEngine | ( | anEngine | ) |
Definition at line 285 of file CPCompatibility.j.
function CPBrowserIsOperatingSystem | ( | anOperatingSystem | ) |
Definition at line 290 of file CPCompatibility.j.
function CPBrowserStyleProperty | ( | aProperty | ) |
Return the properly prefixed JS property for the given name. E.g. in a webkit browser, CPBrowserStyleProperty('transition') -> WebkitTransition
While technically not a style property, style related event handler names are also supported. CPBrowserStyleProperty('transitionend') -> 'webkitTransitionEnd'
CSS is only available in platform(dom), so don't rely too heavily on it.
Definition at line 332 of file CPCompatibility.j.
function CPFeatureIsCompatible | ( | aFeature | ) |
Definition at line 275 of file CPCompatibility.j.
function CPPlatformHasBug | ( | aBug | ) |
Definition at line 280 of file CPCompatibility.j.
else if | ( | typeof window! | = = "undefined" && typeof window.navigator !== "undefined" ) |
Definition at line 109 of file CPCompatibility.j.
else if | ( | USER_AGENT.indexOf("AppleWebKit/")! | = -1 ) |
Definition at line 138 of file CPCompatibility.j.
else if | ( | USER_AGENT.indexOf("KHTML")! | = -1 ) |
Definition at line 188 of file CPCompatibility.j.
else if | ( | USER_AGENT.indexOf("Gecko")! | = = -1 ) |
Definition at line 194 of file CPCompatibility.j.
if | ( | typeof document! | = "undefined" ) |
Definition at line 226 of file CPCompatibility.j.
if | ( | USER_AGENT.indexOf("Mac")! | = = -1 ) |
Definition at line 297 of file CPCompatibility.j.
CPAltEnterTextAreaFeature = 32 |
Definition at line 79 of file CPCompatibility.j.
CPCanvasParentDrawErrorsOnMovementBug = 1 << 0 |
Definition at line 86 of file CPCompatibility.j.
CPCSSRGBAFeature = 5 |
Definition at line 39 of file CPCompatibility.j.
CPFileAPIFeature = 31 |
Definition at line 77 of file CPCompatibility.j.
CPGeckoBrowserEngine = 1 |
Definition at line 27 of file CPCompatibility.j.
CPHTML5DragAndDropSourceYOffBy1 = 26 |
Definition at line 66 of file CPCompatibility.j.
CPHTMLCanvasFeature = 6 |
Definition at line 41 of file CPCompatibility.j.
CPHTMLContentEditableFeature = 7 |
Definition at line 42 of file CPCompatibility.j.
CPHTMLDragAndDropFeature = 8 |
Definition at line 43 of file CPCompatibility.j.
CPInput1PxLeftPadding = 29 |
Definition at line 74 of file CPCompatibility.j.
CPInputOnInputEventFeature = 30 |
Definition at line 75 of file CPCompatibility.j.
CPInputSetFontOutsideOfDOM = 28 |
Definition at line 71 of file CPCompatibility.j.
CPInputTypeCanBeChangedFeature = 25 |
Definition at line 65 of file CPCompatibility.j.
CPInternetExplorerBrowserEngine = 2 |
Definition at line 28 of file CPCompatibility.j.
CPJavaScriptCanvasDrawFeature = 13 |
Definition at line 51 of file CPCompatibility.j.
CPJavaScriptCanvasTransformFeature = 14 |
Definition at line 52 of file CPCompatibility.j.
CPJavaScriptClipboardAccessFeature = 12 |
Definition at line 50 of file CPCompatibility.j.
CPJavaScriptClipboardEventsFeature = 11 |
Definition at line 48 of file CPCompatibility.j.
CPJavaScriptInnerTextFeature = 9 |
Definition at line 45 of file CPCompatibility.j.
CPJavaScriptMouseWheelValues_8_15 = 23 |
Definition at line 60 of file CPCompatibility.j.
CPJavaScriptNegativeMouseWheelValues = 22 |
Definition at line 59 of file CPCompatibility.j.
CPJavaScriptPasteCantRefocus = 1 << 2 |
Definition at line 91 of file CPCompatibility.j.
CPJavaScriptPasteRequiresEditableTarget = 1 << 1 |
Definition at line 89 of file CPCompatibility.j.
CPJavaScriptRemedialKeySupport = 16 |
Definition at line 56 of file CPCompatibility.j.
CPJavaScriptShadowFeature = 20 |
Definition at line 57 of file CPCompatibility.j.
CPJavaScriptTextContentFeature = 10 |
Definition at line 46 of file CPCompatibility.j.
CPKHTMLBrowserEngine = 3 |
Definition at line 29 of file CPCompatibility.j.
CPMacOperatingSystem = 0 |
Definition at line 34 of file CPCompatibility.j.
CPOpacityRequiresFilterFeature = 24 |
Definition at line 62 of file CPCompatibility.j.
CPOperaBrowserEngine = 4 |
Definition at line 30 of file CPCompatibility.j.
CPOtherOperatingSystem = 2 |
Definition at line 36 of file CPCompatibility.j.
CPPlatformActionKeyMask = CPControlKeyMask |
Definition at line 314 of file CPCompatibility.j.
CPRedoKeyEquivalent = @"y" |
Definition at line 317 of file CPCompatibility.j.
CPRedoKeyEquivalentModifierMask = CPControlKeyMask |
Definition at line 320 of file CPCompatibility.j.
CPSOPDisabledFromFileURLs = 27 |
Definition at line 68 of file CPCompatibility.j.
CPUndoKeyEquivalent = @"z" |
Definition at line 316 of file CPCompatibility.j.
CPUndoKeyEquivalentModifierMask = CPControlKeyMask |
Definition at line 319 of file CPCompatibility.j.
CPUnknownBrowserEngine = 0 |
Definition at line 26 of file CPCompatibility.j.
CPVMLFeature = 15 |
Definition at line 54 of file CPCompatibility.j.
CPWebKitBrowserEngine = 5 |
Definition at line 31 of file CPCompatibility.j.
CPWindowsOperatingSystem = 1 |
Definition at line 35 of file CPCompatibility.j.
else |
Definition at line 310 of file CPCompatibility.j.
OPERATING_SYSTEM = CPOtherOperatingSystem |
Definition at line 295 of file CPCompatibility.j.
var PLATFORM_BUGS = 0 |
Definition at line 97 of file CPCompatibility.j.
var PLATFORM_ENGINE = CPUnknownBrowserEngine |
Definition at line 95 of file CPCompatibility.j.
PLATFORM_FEATURES[CPAltEnterTextAreaFeature] = [] |
Definition at line 96 of file CPCompatibility.j.
var PLATFORM_STYLE_JS_PROPERTIES = {} |
Definition at line 98 of file CPCompatibility.j.
var USER_AGENT = "" |
Definition at line 94 of file CPCompatibility.j.