Changeset 68978 in webkit


Ignore:
Timestamp:
Oct 2, 2010 2:16:10 PM (14 years ago)
Author:
diegohcg@webkit.org
Message:

[Qt] Provide Qt support for DeviceMotion/Orientation clients
https://bugs.webkit.org/show_bug.cgi?id=47051

Reviewed by Kenneth Rohde Christiansen.

WebCore:

Add Qt DeviceMotion/Orientation dummy clients in build system.

  • WebCore.pro:

WebKit/qt:

Dummy implementation of DeviceMotion/Orientation client classes
to make possible to hook up motion/orientation data
in further implementations.

  • Api/qwebpage.cpp:

(QWebPagePrivate::QWebPagePrivate):

  • WebCoreSupport/DeviceMotionClientQt.cpp: Added.

(WebCore::DeviceMotionClientQt::DeviceMotionClientQt):
(WebCore::DeviceMotionClientQt::setController):
(WebCore::DeviceMotionClientQt::startUpdating):
(WebCore::DeviceMotionClientQt::stopUpdating):
(WebCore::DeviceMotionClientQt::currentDeviceMotion):
(WebCore::DeviceMotionClientQt::deviceMotionControllerDestroyed):

  • WebCoreSupport/DeviceMotionClientQt.h: Added.

(WebCore::DeviceMotionClientQt::~DeviceMotionClientQt):

  • WebCoreSupport/DeviceOrientationClientQt.cpp: Added.

(WebCore::DeviceOrientationClientQt::DeviceOrientationClientQt):
(WebCore::DeviceOrientationClientQt::setController):
(WebCore::DeviceOrientationClientQt::startUpdating):
(WebCore::DeviceOrientationClientQt::stopUpdating):
(WebCore::DeviceOrientationClientQt::lastOrientation):
(WebCore::DeviceOrientationClientQt::deviceOrientationControllerDestroyed):

  • WebCoreSupport/DeviceOrientationClientQt.h: Added.

(WebCore::DeviceOrientationClientQt::~DeviceOrientationClientQt):

Location:
trunk
Files:
4 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r68976 r68978  
     12010-10-02  Diego Gonzalez  <diegohcg@webkit.org>
     2
     3        Reviewed by Kenneth Rohde Christiansen.
     4
     5        [Qt] Provide Qt support for DeviceMotion/Orientation clients
     6        https://bugs.webkit.org/show_bug.cgi?id=47051
     7
     8        Add Qt DeviceMotion/Orientation dummy clients in build system.
     9
     10        * WebCore.pro:
     11
    1122010-10-01  Nikolas Zimmermann  <nzimmermann@rim.com>
    213
  • trunk/WebCore/WebCore.pro

    r68976 r68978  
    32673267}
    32683268
     3269contains(DEFINES, ENABLE_DEVICE_ORIENTATION=1) {
     3270    HEADERS += \
     3271        ../WebKit/qt/WebCoreSupport/DeviceMotionClientQt.h \
     3272        ../WebKit/qt/WebCoreSupport/DeviceOrientationClientQt.h \
     3273        bindings/generic/RuntimeEnabledFeatures.h
     3274    SOURCES += \
     3275        ../WebKit/qt/WebCoreSupport/DeviceMotionClientQt.cpp \
     3276        ../WebKit/qt/WebCoreSupport/DeviceOrientationClientQt.cpp \
     3277        bindings/generic/RuntimeEnabledFeatures.cpp
     3278}
     3279
    32693280contains(DEFINES, ENABLE_SVG=1) {
    32703281    !v8 {
  • trunk/WebKit/qt/Api/qwebpage.cpp

    r68525 r68978  
    4646#include "ContextMenu.h"
    4747#include "ContextMenuClientQt.h"
     48#include "DeviceMotionClientQt.h"
     49#include "DeviceOrientationClientQt.h"
    4850#include "DocumentLoader.h"
    4951#include "DragClientQt.h"
     
    299301    pageClients.dragClient = new DragClientQt(q);
    300302    pageClients.inspectorClient = new InspectorClientQt(q);
     303#if ENABLE(DEVICE_ORIENTATION)
     304    pageClients.deviceOrientationClient = new DeviceOrientationClientQt(q);
     305    pageClients.deviceMotionClient = new DeviceMotionClientQt(q);
     306#endif
    301307    page = new Page(pageClients);
    302308
  • trunk/WebKit/qt/ChangeLog

    r68825 r68978  
     12010-10-02  Diego Gonzalez  <diegohcg@webkit.org>
     2
     3        Reviewed by Kenneth Rohde Christiansen.
     4
     5        [Qt] Provide Qt support for DeviceMotion/Orientation clients
     6        https://bugs.webkit.org/show_bug.cgi?id=47051
     7
     8        Dummy implementation of DeviceMotion/Orientation client classes
     9        to make possible to hook up motion/orientation data
     10        in further implementations.
     11
     12        * Api/qwebpage.cpp:
     13        (QWebPagePrivate::QWebPagePrivate):
     14        * WebCoreSupport/DeviceMotionClientQt.cpp: Added.
     15        (WebCore::DeviceMotionClientQt::DeviceMotionClientQt):
     16        (WebCore::DeviceMotionClientQt::setController):
     17        (WebCore::DeviceMotionClientQt::startUpdating):
     18        (WebCore::DeviceMotionClientQt::stopUpdating):
     19        (WebCore::DeviceMotionClientQt::currentDeviceMotion):
     20        (WebCore::DeviceMotionClientQt::deviceMotionControllerDestroyed):
     21        * WebCoreSupport/DeviceMotionClientQt.h: Added.
     22        (WebCore::DeviceMotionClientQt::~DeviceMotionClientQt):
     23        * WebCoreSupport/DeviceOrientationClientQt.cpp: Added.
     24        (WebCore::DeviceOrientationClientQt::DeviceOrientationClientQt):
     25        (WebCore::DeviceOrientationClientQt::setController):
     26        (WebCore::DeviceOrientationClientQt::startUpdating):
     27        (WebCore::DeviceOrientationClientQt::stopUpdating):
     28        (WebCore::DeviceOrientationClientQt::lastOrientation):
     29        (WebCore::DeviceOrientationClientQt::deviceOrientationControllerDestroyed):
     30        * WebCoreSupport/DeviceOrientationClientQt.h: Added.
     31        (WebCore::DeviceOrientationClientQt::~DeviceOrientationClientQt):
     32
    1332010-09-30  Robert Hogan  <robert@webkit.org>
    234
Note: See TracChangeset for help on using the changeset viewer.