Title: [99500] trunk/Source/WebCore
Revision
99500
Author
commit-qu...@webkit.org
Date
2011-11-07 16:27:44 -0800 (Mon, 07 Nov 2011)

Log Message

Allow gamepad API to be enabled at runtime
https://bugs.webkit.org/show_bug.cgi?id=71736

Part of full patch, found at
https://bugs.webkit.org/show_bug.cgi?id=69451

Patch by Scott Graham <scot...@chromium.org> on 2011-11-07
Reviewed by Adam Barth.

No new tests. No new functionality.

* bindings/generic/RuntimeEnabledFeatures.cpp:
* bindings/generic/RuntimeEnabledFeatures.h:
(WebCore::RuntimeEnabledFeatures::setGamepadsEnabled):
(WebCore::RuntimeEnabledFeatures::gamepadsEnabled):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (99499 => 99500)


--- trunk/Source/WebCore/ChangeLog	2011-11-08 00:21:23 UTC (rev 99499)
+++ trunk/Source/WebCore/ChangeLog	2011-11-08 00:27:44 UTC (rev 99500)
@@ -1,3 +1,20 @@
+2011-11-07  Scott Graham  <scot...@chromium.org>
+
+        Allow gamepad API to be enabled at runtime
+        https://bugs.webkit.org/show_bug.cgi?id=71736
+
+        Part of full patch, found at
+        https://bugs.webkit.org/show_bug.cgi?id=69451
+
+        Reviewed by Adam Barth.
+
+        No new tests. No new functionality.
+
+        * bindings/generic/RuntimeEnabledFeatures.cpp:
+        * bindings/generic/RuntimeEnabledFeatures.h:
+        (WebCore::RuntimeEnabledFeatures::setGamepadsEnabled):
+        (WebCore::RuntimeEnabledFeatures::gamepadsEnabled):
+
 2011-11-07  Kentaro Hara  <hara...@chromium.org>
 
         Remove [CustomGetter] IDL for window.Option of V8

Modified: trunk/Source/WebCore/bindings/generic/RuntimeEnabledFeatures.cpp (99499 => 99500)


--- trunk/Source/WebCore/bindings/generic/RuntimeEnabledFeatures.cpp	2011-11-08 00:21:23 UTC (rev 99499)
+++ trunk/Source/WebCore/bindings/generic/RuntimeEnabledFeatures.cpp	2011-11-08 00:27:44 UTC (rev 99500)
@@ -60,6 +60,10 @@
 bool RuntimeEnabledFeatures::isMediaStreamEnabled = true;
 #endif
 
+#if ENABLE(GAMEPAD)
+bool RuntimeEnabledFeatures::isGamepadEnabled = false;
+#endif
+
 #if ENABLE(XHR_RESPONSE_BLOB)
 bool RuntimeEnabledFeatures::isXHRResponseBlobEnabled = false;
 #endif

Modified: trunk/Source/WebCore/bindings/generic/RuntimeEnabledFeatures.h (99499 => 99500)


--- trunk/Source/WebCore/bindings/generic/RuntimeEnabledFeatures.h	2011-11-08 00:21:23 UTC (rev 99499)
+++ trunk/Source/WebCore/bindings/generic/RuntimeEnabledFeatures.h	2011-11-08 00:27:44 UTC (rev 99500)
@@ -170,6 +170,11 @@
     static bool webkitPeerConnectionEnabled() { return isMediaStreamEnabled; }
 #endif
 
+#if ENABLE(GAMEPAD)
+    static void setGamepadsEnabled(bool isEnabled) { isGamepadEnabled = isEnabled; }
+    static bool gamepadsEnabled() { return isGamepadEnabled; }
+#endif
+
 #if ENABLE(QUOTA)
     static bool quotaEnabled() { return isQuotaEnabled; }
     static void setQuotaEnabled(bool isEnabled) { isQuotaEnabled = isEnabled; }
@@ -218,6 +223,10 @@
     static bool isMediaStreamEnabled;
 #endif
 
+#if ENABLE(GAMEPAD)
+    static bool isGamepadEnabled;
+#endif
+
 #if ENABLE(QUOTA)
     static bool isQuotaEnabled;
 #endif
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to