diff options
Diffstat (limited to 'WebCore/bindings/generic/RuntimeEnabledFeatures.h')
-rw-r--r-- | WebCore/bindings/generic/RuntimeEnabledFeatures.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/WebCore/bindings/generic/RuntimeEnabledFeatures.h b/WebCore/bindings/generic/RuntimeEnabledFeatures.h index 73bbf0f..d8eae23 100644 --- a/WebCore/bindings/generic/RuntimeEnabledFeatures.h +++ b/WebCore/bindings/generic/RuntimeEnabledFeatures.h @@ -113,6 +113,11 @@ public: static bool ontouchcancelEnabled() { return isTouchEnabled; } #endif + static void setDeviceOrientationEnabled(bool isEnabled) { isDeviceOrientationEnabled = isEnabled; } + static bool deviceOrientationEnabled() { return isDeviceOrientationEnabled; } + static bool deviceOrientationEventEnabled() { return isDeviceOrientationEnabled; } + static bool ondeviceorientationEnabled() { return isDeviceOrientationEnabled; } + private: // Never instantiate. RuntimeEnabledFeatures() { } @@ -126,6 +131,7 @@ private: static bool isWebGLEnabled; static bool isPushStateEnabled; static bool isTouchEnabled; + static bool isDeviceOrientationEnabled; }; } // namespace WebCore |