Changeset 64851 in webkit
- Timestamp:
- Aug 6, 2010 8:30:59 AM (14 years ago)
- Location:
- trunk/WebKit/chromium
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebKit/chromium/ChangeLog
r64844 r64851 1 2010-08-06 Pavel Feldman <pfeldman@chromium.org> 2 3 Reviewed by Yury Semikhatsky. 4 5 Chromium: disable device motion by default. 6 7 https://bugs.webkit.org/show_bug.cgi?id=43623 8 9 * public/WebRuntimeFeatures.h: 10 * src/WebRuntimeFeatures.cpp: 11 (WebKit::WebRuntimeFeatures::enableDeviceMotion): 12 (WebKit::WebRuntimeFeatures::isDeviceMotionEnabled): 13 (WebKit::WebRuntimeFeatures::enableDeviceOrientation): 14 1 15 2010-08-06 Kavita Kanetkar <kkanetkar@chromium.org> 2 16 -
trunk/WebKit/chromium/public/WebRuntimeFeatures.h
r64269 r64851 78 78 WEBKIT_API static bool isTouchEnabled(); 79 79 80 WEBKIT_API static void enableDeviceMotion(bool); 81 WEBKIT_API static bool isDeviceMotionEnabled(); 82 80 83 WEBKIT_API static void enableDeviceOrientation(bool); 81 84 WEBKIT_API static bool isDeviceOrientationEnabled(); -
trunk/WebKit/chromium/src/WebRuntimeFeatures.cpp
r64269 r64851 227 227 } 228 228 229 void WebRuntimeFeatures::enableDeviceMotion(bool enable) 230 { 231 RuntimeEnabledFeatures::setDeviceMotionEnabled(enable); 232 } 233 234 bool WebRuntimeFeatures::isDeviceMotionEnabled() 235 { 236 return RuntimeEnabledFeatures::deviceMotionEnabled(); 237 } 238 229 239 void WebRuntimeFeatures::enableDeviceOrientation(bool enable) 230 240 { 231 241 RuntimeEnabledFeatures::setDeviceOrientationEnabled(enable); 242 // TODO: fix once called downstream. 243 RuntimeEnabledFeatures::setDeviceMotionEnabled(false); 232 244 } 233 245
Note: See TracChangeset
for help on using the changeset viewer.