Changeset 90240 in webkit


Ignore:
Timestamp:
Jul 1, 2011 9:56:20 AM (13 years ago)
Author:
joone.hur@collabora.co.uk
Message:

2011-07-01 Joone Hur <joone.hur@collabora.co.uk>

Reviewed by Martin Robinson.

[GTK] Add DeviceOrientation feature
https://bugs.webkit.org/show_bug.cgi?id=63720

Add configure option to enable/disable DeviceOrientation feature.

  • configure.ac:

2011-07-01 Joone Hur <joone.hur@collabora.co.uk>

Reviewed by Martin Robinson.

[GTK] Add DeviceOrientation feature
https://bugs.webkit.org/show_bug.cgi?id=63720

Add DeviceMotionClientGtk.cpp and DeviceOrientationClientGtk.cpp to WebKitGtk+ build.

  • GNUmakefile.am: Add DeviceMotionClientGtk.cpp, DeviceOrientationClientGtk.cpp.

2011-07-01 Joone Hur <joone.hur@collabora.co.uk>

Reviewed by Martin Robinson.

[GTK] Add DeviceOrientation feature
https://bugs.webkit.org/show_bug.cgi?id=63720

Add empty implementation of DeviceMotionClient and DeviceOrientationClient callback methods.

  • GNUmakefile.am:
  • WebCoreSupport/DeviceMotionClientGtk.cpp: Added. (WebCore::DeviceMotionClientGtk::DeviceMotionClientGtk): (WebCore::DeviceMotionClientGtk::~DeviceMotionClientGtk): (WebCore::DeviceMotionClientGtk::deviceMotionControllerDestroyed): (WebCore::DeviceMotionClientGtk::setController): (WebCore::DeviceMotionClientGtk::startUpdating): (WebCore::DeviceMotionClientGtk::stopUpdating): (WebCore::DeviceMotionClientGtk::currentDeviceMotion):
  • WebCoreSupport/DeviceMotionClientGtk.h: Added.
  • WebCoreSupport/DeviceOrientationClientGtk.cpp: Added. (WebCore::DeviceOrientationClientGtk::DeviceOrientationClientGtk): (WebCore::DeviceOrientationClientGtk::~DeviceOrientationClientGtk): (WebCore::DeviceOrientationClientGtk::deviceOrientationControllerDestroyed): (WebCore::DeviceOrientationClientGtk::setController): (WebCore::DeviceOrientationClientGtk::startUpdating): (WebCore::DeviceOrientationClientGtk::stopUpdating): (WebCore::DeviceOrientationClientGtk::lastOrientation):
  • WebCoreSupport/DeviceOrientationClientGtk.h: Added.
  • webkit/webkitwebview.cpp: (webkit_web_view_init):
Location:
trunk
Files:
4 added
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/ChangeLog

    r89940 r90240  
     12011-07-01  Joone Hur  <joone.hur@collabora.co.uk>
     2
     3        Reviewed by Martin Robinson.
     4
     5        [GTK] Add DeviceOrientation feature
     6        https://bugs.webkit.org/show_bug.cgi?id=63720
     7
     8        Add configure option to enable/disable DeviceOrientation feature.
     9
     10        * configure.ac:
     11
    1122011-06-28  Joone Hur  <joone.hur@collabora.co.uk>
    213
  • trunk/Source/WebCore/ChangeLog

    r90225 r90240  
     12011-07-01  Joone Hur  <joone.hur@collabora.co.uk>
     2
     3        Reviewed by Martin Robinson.
     4
     5        [GTK] Add DeviceOrientation feature
     6        https://bugs.webkit.org/show_bug.cgi?id=63720
     7
     8        Add DeviceMotionClientGtk.cpp and DeviceOrientationClientGtk.cpp to WebKitGtk+ build.
     9
     10        * GNUmakefile.am: Add DeviceMotionClientGtk.cpp, DeviceOrientationClientGtk.cpp.
     11
    1122011-07-01  Kentaro Hara  <haraken@google.com>
    213
  • trunk/Source/WebCore/GNUmakefile.am

    r89940 r90240  
    604604endif  # END ENABLE_REGISTER_PROTOCOL_HANDLER
    605605
     606# ---
     607# DeviceOrientation support
     608# ---
     609if ENABLE_DEVICE_ORIENTATION
     610FEATURE_DEFINES += ENABLE_DEVICE_ORIENTATION=1
     611webcore_cppflags += -DENABLE_DEVICE_ORIENTATION=1
     612endif  # END ENABLE_DEVICE_ORIENTATION
     613
    606614DerivedSources/WebCore/CSSPropertyNames.cpp: DerivedSources/WebCore/CSSPropertyNames.h
    607615DerivedSources/WebCore/CSSPropertyNames.h: $(WEBCORE_CSS_PROPERTY_NAMES) $(WebCore)/css/makeprop.pl
  • trunk/Source/WebKit/gtk/ChangeLog

    r89937 r90240  
     12011-07-01  Joone Hur  <joone.hur@collabora.co.uk>
     2
     3        Reviewed by Martin Robinson.
     4
     5        [GTK] Add DeviceOrientation feature
     6        https://bugs.webkit.org/show_bug.cgi?id=63720
     7
     8        Add empty implementation of DeviceMotionClient and DeviceOrientationClient callback methods.
     9
     10        * GNUmakefile.am:
     11        * WebCoreSupport/DeviceMotionClientGtk.cpp: Added.
     12        (WebCore::DeviceMotionClientGtk::DeviceMotionClientGtk):
     13        (WebCore::DeviceMotionClientGtk::~DeviceMotionClientGtk):
     14        (WebCore::DeviceMotionClientGtk::deviceMotionControllerDestroyed):
     15        (WebCore::DeviceMotionClientGtk::setController):
     16        (WebCore::DeviceMotionClientGtk::startUpdating):
     17        (WebCore::DeviceMotionClientGtk::stopUpdating):
     18        (WebCore::DeviceMotionClientGtk::currentDeviceMotion):
     19        * WebCoreSupport/DeviceMotionClientGtk.h: Added.
     20        * WebCoreSupport/DeviceOrientationClientGtk.cpp: Added.
     21        (WebCore::DeviceOrientationClientGtk::DeviceOrientationClientGtk):
     22        (WebCore::DeviceOrientationClientGtk::~DeviceOrientationClientGtk):
     23        (WebCore::DeviceOrientationClientGtk::deviceOrientationControllerDestroyed):
     24        (WebCore::DeviceOrientationClientGtk::setController):
     25        (WebCore::DeviceOrientationClientGtk::startUpdating):
     26        (WebCore::DeviceOrientationClientGtk::stopUpdating):
     27        (WebCore::DeviceOrientationClientGtk::lastOrientation):
     28        * WebCoreSupport/DeviceOrientationClientGtk.h: Added.
     29        * webkit/webkitwebview.cpp:
     30        (webkit_web_view_init):
     31
    1322011-06-28  Joone Hur  <joone.hur@collabora.co.uk>
    233
  • trunk/Source/WebKit/gtk/GNUmakefile.am

    r89251 r90240  
    183183        Source/WebKit/gtk/WebCoreSupport/ContextMenuClientGtk.cpp \
    184184        Source/WebKit/gtk/WebCoreSupport/ContextMenuClientGtk.h \
     185        Source/WebKit/gtk/WebCoreSupport/DeviceMotionClientGtk.cpp \
     186        Source/WebKit/gtk/WebCoreSupport/DeviceMotionClientGtk.h \
     187        Source/WebKit/gtk/WebCoreSupport/DeviceOrientationClientGtk.cpp \
     188        Source/WebKit/gtk/WebCoreSupport/DeviceOrientationClientGtk.h \
    185189        Source/WebKit/gtk/WebCoreSupport/DocumentLoaderGtk.cpp \
    186190        Source/WebKit/gtk/WebCoreSupport/DocumentLoaderGtk.h \
  • trunk/Source/WebKit/gtk/webkit/webkitwebview.cpp

    r89828 r90240  
    108108#include <wtf/gobject/GOwnPtr.h>
    109109#include <wtf/text/CString.h>
     110
     111#if ENABLE(DEVICE_ORIENTATION)
     112#include "DeviceMotionClientGtk.h"
     113#include "DeviceOrientationClientGtk.h"
     114#endif
    110115
    111116/**
     
    33763381    pageClients.dragClient = new WebKit::DragClient(webView);
    33773382    pageClients.inspectorClient = new WebKit::InspectorClient(webView);
     3383
     3384#if ENABLE(DEVICE_ORIENTATION)
     3385    pageClients.deviceMotionClient = static_cast<WebCore::DeviceMotionClient*>(new DeviceMotionClientGtk);
     3386    pageClients.deviceOrientationClient = static_cast<WebCore::DeviceOrientationClient*>(new DeviceOrientationClientGtk);
     3387#endif
     3388
    33783389    priv->corePage = new Page(pageClients);
    33793390
  • trunk/configure.ac

    r89940 r90240  
    928928              [],[enable_register_protocol_handler="no"])
    929929AC_MSG_RESULT([$enable_register_protocol_handler])
     930
     931# check whether to enable DeviceOrientation support
     932AC_MSG_CHECKING([whether to enable DeviceOrientation])
     933AC_ARG_ENABLE(device_orientation,
     934              AC_HELP_STRING([--enable-device-orientation],
     935                             [enable support for DeviceOrientation (experimental and incomplete) [default=no]]),
     936              [],[enable_device_orientation="no"])
     937AC_MSG_RESULT([$enable_device_orientation])
    930938
    931939G_IR_SCANNER=
     
    11961204AM_CONDITIONAL([ENABLE_TOUCH_ICON_LOADING],[test "$enable_touch_icon_loading" = "yes"])
    11971205AM_CONDITIONAL([ENABLE_REGISTER_PROTOCOL_HANDLER],[test "$enable_register_protocol_handler" = "yes"])
     1206AM_CONDITIONAL([ENABLE_DEVICE_ORIENTATION],[test "$enable_device_orientation" = "yes"])
    11981207
    11991208# Gtk conditionals
     
    12461255 WebGL                                                    : $enable_webgl
    12471256 Blob support                                             : $enable_blob
     1257 DeviceOrientation support                                : $enable_device_orientation
    12481258 Directory upload                                         : $enable_directory_upload
    12491259 Fast Mobile Scrolling                                    : $enable_fast_mobile_scrolling
Note: See TracChangeset for help on using the changeset viewer.