[SCM] WebKit Debian packaging branch, debian/experimental, updated. upstream/1.3.3-9427-gc2be6fc
pfeldman at chromium.org
pfeldman at chromium.org
Wed Dec 22 11:46:48 UTC 2010
The following commit has been merged in the debian/experimental branch:
commit 8e9718cf2c83b614f09c641ad77a0282b1a6dfa9
Author: pfeldman at chromium.org <pfeldman at chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date: Fri Aug 6 15:30:59 2010 +0000
2010-08-06 Pavel Feldman <pfeldman at chromium.org>
Reviewed by Yury Semikhatsky.
Chromium: disable device motion by default.
https://bugs.webkit.org/show_bug.cgi?id=43623
* public/WebRuntimeFeatures.h:
* src/WebRuntimeFeatures.cpp:
(WebKit::WebRuntimeFeatures::enableDeviceMotion):
(WebKit::WebRuntimeFeatures::isDeviceMotionEnabled):
(WebKit::WebRuntimeFeatures::enableDeviceOrientation):
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64851 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/WebKit/chromium/ChangeLog b/WebKit/chromium/ChangeLog
index 99bbeec..4c86ba4 100644
--- a/WebKit/chromium/ChangeLog
+++ b/WebKit/chromium/ChangeLog
@@ -1,3 +1,17 @@
+2010-08-06 Pavel Feldman <pfeldman at chromium.org>
+
+ Reviewed by Yury Semikhatsky.
+
+ Chromium: disable device motion by default.
+
+ https://bugs.webkit.org/show_bug.cgi?id=43623
+
+ * public/WebRuntimeFeatures.h:
+ * src/WebRuntimeFeatures.cpp:
+ (WebKit::WebRuntimeFeatures::enableDeviceMotion):
+ (WebKit::WebRuntimeFeatures::isDeviceMotionEnabled):
+ (WebKit::WebRuntimeFeatures::enableDeviceOrientation):
+
2010-08-06 Kavita Kanetkar <kkanetkar at chromium.org>
Reviewed by Joseph Pecoraro.
diff --git a/WebKit/chromium/public/WebRuntimeFeatures.h b/WebKit/chromium/public/WebRuntimeFeatures.h
index 517aad5..9aa1f4f 100644
--- a/WebKit/chromium/public/WebRuntimeFeatures.h
+++ b/WebKit/chromium/public/WebRuntimeFeatures.h
@@ -77,6 +77,9 @@ public:
WEBKIT_API static void enableTouch(bool);
WEBKIT_API static bool isTouchEnabled();
+ WEBKIT_API static void enableDeviceMotion(bool);
+ WEBKIT_API static bool isDeviceMotionEnabled();
+
WEBKIT_API static void enableDeviceOrientation(bool);
WEBKIT_API static bool isDeviceOrientationEnabled();
diff --git a/WebKit/chromium/src/WebRuntimeFeatures.cpp b/WebKit/chromium/src/WebRuntimeFeatures.cpp
index 217553b..7cbc4fb 100644
--- a/WebKit/chromium/src/WebRuntimeFeatures.cpp
+++ b/WebKit/chromium/src/WebRuntimeFeatures.cpp
@@ -226,9 +226,21 @@ bool WebRuntimeFeatures::isTouchEnabled()
#endif
}
+void WebRuntimeFeatures::enableDeviceMotion(bool enable)
+{
+ RuntimeEnabledFeatures::setDeviceMotionEnabled(enable);
+}
+
+bool WebRuntimeFeatures::isDeviceMotionEnabled()
+{
+ return RuntimeEnabledFeatures::deviceMotionEnabled();
+}
+
void WebRuntimeFeatures::enableDeviceOrientation(bool enable)
{
RuntimeEnabledFeatures::setDeviceOrientationEnabled(enable);
+ // TODO: fix once called downstream.
+ RuntimeEnabledFeatures::setDeviceMotionEnabled(false);
}
bool WebRuntimeFeatures::isDeviceOrientationEnabled()
--
WebKit Debian packaging
More information about the Pkg-webkit-commits
mailing list