Changeset 64851 in webkit


Ignore:
Timestamp:
Aug 6, 2010 8:30:59 AM (14 years ago)
Author:
pfeldman@chromium.org
Message:

2010-08-06 Pavel Feldman <pfeldman@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):
Location:
trunk/WebKit/chromium
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKit/chromium/ChangeLog

    r64844 r64851  
     12010-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
    1152010-08-06  Kavita Kanetkar  <kkanetkar@chromium.org>
    216
  • trunk/WebKit/chromium/public/WebRuntimeFeatures.h

    r64269 r64851  
    7878    WEBKIT_API static bool isTouchEnabled();
    7979
     80    WEBKIT_API static void enableDeviceMotion(bool);
     81    WEBKIT_API static bool isDeviceMotionEnabled();
     82
    8083    WEBKIT_API static void enableDeviceOrientation(bool);
    8184    WEBKIT_API static bool isDeviceOrientationEnabled();
  • trunk/WebKit/chromium/src/WebRuntimeFeatures.cpp

    r64269 r64851  
    227227}
    228228
     229void WebRuntimeFeatures::enableDeviceMotion(bool enable)
     230{
     231    RuntimeEnabledFeatures::setDeviceMotionEnabled(enable);
     232}
     233
     234bool WebRuntimeFeatures::isDeviceMotionEnabled()
     235{
     236    return RuntimeEnabledFeatures::deviceMotionEnabled();
     237}
     238
    229239void WebRuntimeFeatures::enableDeviceOrientation(bool enable)
    230240{
    231241    RuntimeEnabledFeatures::setDeviceOrientationEnabled(enable);
     242    // TODO: fix once called downstream.
     243    RuntimeEnabledFeatures::setDeviceMotionEnabled(false);
    232244}
    233245
Note: See TracChangeset for help on using the changeset viewer.