Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
2010-05-21 Steve Block <steveblock@google.com>
        Reviewed by Jeremy Orlow.

        Add DeviceOrientation and DeviceOrientationClient
        https://bugs.webkit.org/show_bug.cgi?id=39479

        * src/WebViewImpl.cpp:
        (WebKit::WebViewImpl::WebViewImpl):
2010-05-21  Steve Block  <steveblock@google.com>

        Reviewed by Jeremy Orlow.

        Add DeviceOrientation and DeviceOrientationClient
        https://bugs.webkit.org/show_bug.cgi?id=39479

        * Api/qwebpage.cpp:
        (QWebPagePrivate::QWebPagePrivate):
2010-05-21  Steve Block  <steveblock@google.com>

        Reviewed by Jeremy Orlow.

        Add DeviceOrientation and DeviceOrientationClient
        https://bugs.webkit.org/show_bug.cgi?id=39479

        * webkit/webkitwebview.cpp:
        (webkit_web_view_init):
2010-05-21  Steve Block  <steveblock@google.com>

        Reviewed by Jeremy Orlow.

        Add DeviceOrientation and DeviceOrientationClient
        https://bugs.webkit.org/show_bug.cgi?id=39479

        * WebView.cpp:
        (WebView::initWithFrame):
2010-05-21  Steve Block  <steveblock@google.com>

        Reviewed by Jeremy Orlow.

        Add DeviceOrientation and DeviceOrientationClient
        https://bugs.webkit.org/show_bug.cgi?id=39479

        * WebView/WebView.mm:
        (-[WebView _commonInitializationWithFrameName:groupName:usesDocumentViews:]):
2010-05-21  Steve Block  <steveblock@google.com>

        Reviewed by Jeremy Orlow.

        Add DeviceOrientation and DeviceOrientationClient
        https://bugs.webkit.org/show_bug.cgi?id=39479

        The page owns a DeviceOrientation object, which has a pointer to a
        DeviceOrientationClient object provided by the embedder. The
        DeviceOrientation object forwards requests to start listening to
        orientation to the client, and when updates are available, fires a
        DeviceOrientationEvent on the window object.

        No new tests are possible at this time as the implementation is
        incomplete. Future patches will add LayoutTestController methods
        to provide mock orientation events to test this.

        * Android.mk:
        * CMakeLists.txt:
        * GNUmakefile.am:
        * WebCore.base.exp:
        * WebCore.gypi:
        * WebCore.pro:
        * WebCore.vcproj/WebCore.vcproj
        * WebCore.xcodeproj/project.pbxproj:
        * dom/DeviceOrientation.cpp: Added.
        (WebCore::DeviceOrientation::DeviceOrientation):
        (WebCore::DeviceOrientation::onDeviceOrientationChange):
        * dom/DeviceOrientation.h: Added.
        * dom/DeviceOrientationClient.h: Added.
        (WebCore::DeviceOrientationClient::~DeviceOrientationClient):
        * page/Page.cpp:
        (WebCore::Page::Page):
        * page/Page.h:
        (WebCore::Page::deviceOrientation):
        * svg/graphics/SVGImage.cpp:
        (WebCore::SVGImage::dataChanged):


Canonical link: https://commits.webkit.org/51028@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@59935 268f45cc-cd09-0410-ab3c-d52691b4dbfc
  • Loading branch information
Steve Block committed May 21, 2010
1 parent 3d175a8 commit d13a40d
Show file tree
Hide file tree
Showing 25 changed files with 360 additions and 15 deletions.
1 change: 1 addition & 0 deletions WebCore/Android.mk
Expand Up @@ -145,6 +145,7 @@ LOCAL_SRC_FILES := $(LOCAL_SRC_FILES) \
dom/Notation.cpp \
dom/OptionElement.cpp \
dom/OptionGroupElement.cpp \
dom/DeviceOrientation.cpp \
dom/DeviceOrientationEvent.cpp \
dom/OverflowEvent.cpp \
dom/PageTransitionEvent.cpp \
Expand Down
3 changes: 3 additions & 0 deletions WebCore/CMakeLists.txt
Expand Up @@ -139,6 +139,7 @@ SET(WebCore_IDL_FILES
dom/CustomEvent.idl
dom/DOMCoreException.idl
dom/DOMImplementation.idl
dom/DeviceOrientationEvent.idl
dom/Document.idl
dom/DocumentFragment.idl
dom/DocumentType.idl
Expand Down Expand Up @@ -747,6 +748,8 @@ SET(WebCore_SOURCES
dom/ContainerNode.cpp
dom/CustomEvent.cpp
dom/DOMImplementation.cpp
dom/DeviceOrientation.cpp
dom/DeviceOrientationEvent.cpp
dom/Document.cpp
dom/DocumentFragment.cpp
dom/DocumentType.cpp
Expand Down
38 changes: 38 additions & 0 deletions WebCore/ChangeLog
@@ -1,3 +1,41 @@
2010-05-21 Steve Block <steveblock@google.com>

Reviewed by Jeremy Orlow.

Add DeviceOrientation and DeviceOrientationClient
https://bugs.webkit.org/show_bug.cgi?id=39479

The page owns a DeviceOrientation object, which has a pointer to a
DeviceOrientationClient object provided by the embedder. The
DeviceOrientation object forwards requests to start listening to
orientation to the client, and when updates are available, fires a
DeviceOrientationEvent on the window object.

No new tests are possible at this time as the implementation is
incomplete. Future patches will add LayoutTestController methods
to provide mock orientation events to test this.

* Android.mk:
* CMakeLists.txt:
* GNUmakefile.am:
* WebCore.base.exp:
* WebCore.gypi:
* WebCore.pro:
* WebCore.vcproj/WebCore.vcproj
* WebCore.xcodeproj/project.pbxproj:
* dom/DeviceOrientation.cpp: Added.
(WebCore::DeviceOrientation::DeviceOrientation):
(WebCore::DeviceOrientation::onDeviceOrientationChange):
* dom/DeviceOrientation.h: Added.
* dom/DeviceOrientationClient.h: Added.
(WebCore::DeviceOrientationClient::~DeviceOrientationClient):
* page/Page.cpp:
(WebCore::Page::Page):
* page/Page.h:
(WebCore::Page::deviceOrientation):
* svg/graphics/SVGImage.cpp:
(WebCore::SVGImage::dataChanged):

2010-05-21 Tasuku Suzuki <tasuku.suzuki@nokia.com>

Reviewed by Simon Hausmann.
Expand Down
3 changes: 3 additions & 0 deletions WebCore/GNUmakefile.am
Expand Up @@ -769,6 +769,9 @@ webcore_sources += \
WebCore/dom/DOMCoreException.h \
WebCore/dom/DOMImplementation.cpp \
WebCore/dom/DOMImplementation.h \
WebCore/dom/DeviceOrientation.cpp \
WebCore/dom/DeviceOrientation.h \
WebCore/dom/DeviceOrientationClient.h \
WebCore/dom/DeviceOrientationEvent.cpp \
WebCore/dom/DeviceOrientationEvent.h \
WebCore/dom/Document.cpp \
Expand Down
2 changes: 1 addition & 1 deletion WebCore/WebCore.base.exp
Expand Up @@ -524,7 +524,7 @@ __ZN7WebCore4Page6goBackEv
__ZN7WebCore4Page8goToItemEPNS_11HistoryItemENS_13FrameLoadTypeE
__ZN7WebCore4Page9goForwardEv
__ZN7WebCore4Page9initGroupEv
__ZN7WebCore4PageC1EPNS_12ChromeClientEPNS_17ContextMenuClientEPNS_12EditorClientEPNS_10DragClientEPNS_15InspectorClientEPNS_18PluginHalterClientEPNS_27GeolocationControllerClientE
__ZN7WebCore4PageC1EPNS_12ChromeClientEPNS_17ContextMenuClientEPNS_12EditorClientEPNS_10DragClientEPNS_15InspectorClientEPNS_18PluginHalterClientEPNS_27GeolocationControllerClientEPNS_23DeviceOrientationClientE
__ZN7WebCore4PageD1Ev
__ZN7WebCore4coreEP20NSURLProtectionSpace
__ZN7WebCore4toJSEPN3JSC9ExecStateEPNS_17JSDOMGlobalObjectEPNS_19CSSStyleDeclarationE
Expand Down
3 changes: 3 additions & 0 deletions WebCore/WebCore.gypi
Expand Up @@ -1103,6 +1103,9 @@
'dom/DOMCoreException.h',
'dom/DOMImplementation.cpp',
'dom/DOMImplementation.h',
'dom/DeviceOrientation.cpp',
'dom/DeviceOrientation.h',
'dom/DeviceOrientationClient.h',
'dom/DeviceOrientationEvent.cpp',
'dom/DeviceOrientationEvent.h',
'dom/Document.cpp',
Expand Down
3 changes: 3 additions & 0 deletions WebCore/WebCore.pro
Expand Up @@ -463,6 +463,7 @@ SOURCES += \
dom/ContainerNode.cpp \
dom/CSSMappedAttributeDeclaration.cpp \
dom/CustomEvent.cpp \
dom/DeviceOrientation.cpp \
dom/DeviceOrientationEvent.cpp \
dom/Document.cpp \
dom/DocumentFragment.cpp \
Expand Down Expand Up @@ -1189,6 +1190,8 @@ HEADERS += \
dom/CSSMappedAttributeDeclaration.h \
dom/CustomEvent.h \
dom/default/PlatformMessagePortChannel.h \
dom/DeviceOrientation.h \
dom/DeviceOrientationClient.h \
dom/DeviceOrientationEvent.h \
dom/DocumentFragment.h \
dom/Document.h \
Expand Down
76 changes: 76 additions & 0 deletions WebCore/WebCore.vcproj/WebCore.vcproj
Expand Up @@ -2736,6 +2736,62 @@
RelativePath="$(WebKitOutputDir)\obj\WebCore\DerivedSources\JSDedicatedWorkerContext.h"
>
</File>
<File
RelativePath="$(WebKitOutputDir)\obj\WebCore\DerivedSources\JSDeviceOrientationEvent.cpp"
>
<FileConfiguration
Name="Debug|Win32"
ExcludedFromBuild="true"
>
<Tool
Name="VCCLCompilerTool"
/>
</FileConfiguration>
<FileConfiguration
Name="Release|Win32"
ExcludedFromBuild="true"
>
<Tool
Name="VCCLCompilerTool"
/>
</FileConfiguration>
<FileConfiguration
Name="Debug_Internal|Win32"
ExcludedFromBuild="true"
>
<Tool
Name="VCCLCompilerTool"
/>
</FileConfiguration>
<FileConfiguration
Name="Debug_Cairo|Win32"
ExcludedFromBuild="true"
>
<Tool
Name="VCCLCompilerTool"
/>
</FileConfiguration>
<FileConfiguration
Name="Release_Cairo|Win32"
ExcludedFromBuild="true"
>
<Tool
Name="VCCLCompilerTool"
/>
</FileConfiguration>
<FileConfiguration
Name="Debug_All|Win32"
ExcludedFromBuild="true"
>
<Tool
Name="VCCLCompilerTool"
/>
</FileConfiguration>
</File>
<File
RelativePath="$(WebKitOutputDir)\obj\WebCore\DerivedSources\JSDeviceOrientationEvent.h"
>
</File>
<File
RelativePath="$(WebKitOutputDir)\obj\$(ProjectName)\DerivedSources\JSDocument.cpp"
>
Expand Down Expand Up @@ -29416,6 +29472,26 @@
RelativePath="..\dom\CustomEvent.h"
>
</File>
<File
RelativePath="..\dom\DeviceOrientation.cpp"
>
</File>
<File
RelativePath="..\dom\DeviceOrientation.h"
>
</File>
<File
RelativePath="..\dom\DeviceOrientationClient.h"
>
</File>
<File
RelativePath="..\dom\DeviceOrientationEvent.cpp"
>
</File>
<File
RelativePath="..\dom\DeviceOrientationEvent.h"
>
</File>
<File
RelativePath="..\dom\Document.cpp"
>
Expand Down
12 changes: 12 additions & 0 deletions WebCore/WebCore.xcodeproj/project.pbxproj
Expand Up @@ -1171,6 +1171,9 @@
59A85EA4119D68EC00DEF1EF /* DeviceOrientationEvent.h in Headers */ = {isa = PBXBuildFile; fileRef = 59A85EA3119D68EC00DEF1EF /* DeviceOrientationEvent.h */; };
59A86006119DAF7F00DEF1EF /* JSDeviceOrientationEvent.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 59A86005119DAF7F00DEF1EF /* JSDeviceOrientationEvent.cpp */; };
59A86008119DAFA100DEF1EF /* JSDeviceOrientationEvent.h in Headers */ = {isa = PBXBuildFile; fileRef = 59A86007119DAFA100DEF1EF /* JSDeviceOrientationEvent.h */; };
59A8F1D411A69508001AC34A /* DeviceOrientation.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 59A8F1D311A69508001AC34A /* DeviceOrientation.cpp */; };
59A8F1D611A69513001AC34A /* DeviceOrientation.h in Headers */ = {isa = PBXBuildFile; fileRef = 59A8F1D511A69513001AC34A /* DeviceOrientation.h */; };
59A8F1D811A69520001AC34A /* DeviceOrientationClient.h in Headers */ = {isa = PBXBuildFile; fileRef = 59A8F1D711A69520001AC34A /* DeviceOrientationClient.h */; };
59A9E7B01104758800DFB4C1 /* JavaInstanceJSC.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 59A9E7AF1104758800DFB4C1 /* JavaInstanceJSC.cpp */; };
59A9E7B21104759400DFB4C1 /* JavaInstanceJSC.h in Headers */ = {isa = PBXBuildFile; fileRef = 59A9E7B11104759400DFB4C1 /* JavaInstanceJSC.h */; };
59B597731108656B007159E8 /* BridgeJSC.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 59B597721108656B007159E8 /* BridgeJSC.cpp */; };
Expand Down Expand Up @@ -6779,6 +6782,9 @@
59A85EAA119D7B6E00DEF1EF /* DeviceOrientationEvent.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = DeviceOrientationEvent.idl; sourceTree = "<group>"; };
59A86005119DAF7F00DEF1EF /* JSDeviceOrientationEvent.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSDeviceOrientationEvent.cpp; sourceTree = "<group>"; };
59A86007119DAFA100DEF1EF /* JSDeviceOrientationEvent.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSDeviceOrientationEvent.h; sourceTree = "<group>"; };
59A8F1D311A69508001AC34A /* DeviceOrientation.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = DeviceOrientation.cpp; sourceTree = "<group>"; };
59A8F1D511A69513001AC34A /* DeviceOrientation.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DeviceOrientation.h; sourceTree = "<group>"; };
59A8F1D711A69520001AC34A /* DeviceOrientationClient.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DeviceOrientationClient.h; sourceTree = "<group>"; };
59A9E7AF1104758800DFB4C1 /* JavaInstanceJSC.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = JavaInstanceJSC.cpp; path = jsc/JavaInstanceJSC.cpp; sourceTree = "<group>"; };
59A9E7B11104759400DFB4C1 /* JavaInstanceJSC.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = JavaInstanceJSC.h; path = jsc/JavaInstanceJSC.h; sourceTree = "<group>"; };
59B597721108656B007159E8 /* BridgeJSC.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = BridgeJSC.cpp; path = bridge/jsc/BridgeJSC.cpp; sourceTree = "<group>"; };
Expand Down Expand Up @@ -16421,6 +16427,9 @@
F523D32402DE4478018635CA /* dom */ = {
isa = PBXGroup;
children = (
59A8F1D711A69520001AC34A /* DeviceOrientationClient.h */,
59A8F1D511A69513001AC34A /* DeviceOrientation.h */,
59A8F1D311A69508001AC34A /* DeviceOrientation.cpp */,
59A85EAA119D7B6E00DEF1EF /* DeviceOrientationEvent.idl */,
59A85EA3119D68EC00DEF1EF /* DeviceOrientationEvent.h */,
59A85EA1119D68D900DEF1EF /* DeviceOrientationEvent.cpp */,
Expand Down Expand Up @@ -19286,6 +19295,8 @@
59A85EA4119D68EC00DEF1EF /* DeviceOrientationEvent.h in Headers */,
59A86008119DAFA100DEF1EF /* JSDeviceOrientationEvent.h in Headers */,
2E3FAA0911A36BF100576624 /* CrossThreadTask.h in Headers */,
59A8F1D611A69513001AC34A /* DeviceOrientation.h in Headers */,
59A8F1D811A69520001AC34A /* DeviceOrientationClient.h in Headers */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -21571,6 +21582,7 @@
51327D6111A33A2B004F9D65 /* SinkDocument.cpp in Sources */,
59A85EA2119D68D900DEF1EF /* DeviceOrientationEvent.cpp in Sources */,
59A86006119DAF7F00DEF1EF /* JSDeviceOrientationEvent.cpp in Sources */,
59A8F1D411A69508001AC34A /* DeviceOrientation.cpp in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down
54 changes: 54 additions & 0 deletions WebCore/dom/DeviceOrientation.cpp
@@ -0,0 +1,54 @@
/*
* Copyright 2010, The Android Open Source Project
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
* OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

#include "config.h"
#include "DeviceOrientation.h"

#if ENABLE(DEVICE_ORIENTATION)

#include "DeviceOrientationClient.h"
#include "DeviceOrientationEvent.h"
#include <wtf/UnusedParam.h>

namespace WebCore {

DeviceOrientation::DeviceOrientation(Page* page, DeviceOrientationClient* client)
: m_page(page)
, m_client(client)
{
}

void DeviceOrientation::onDeviceOrientationChange(double alpha, double beta, double gamma)
{
// FIXME: Fire DeviceOrientationEvents on the window object of all frames
// that are listening to orientation.
UNUSED_PARAM(alpha);
UNUSED_PARAM(beta);
UNUSED_PARAM(gamma);
}

} // namespace WebCore

#endif // ENABLE(DEVICE_ORIENTATION)
49 changes: 49 additions & 0 deletions WebCore/dom/DeviceOrientation.h
@@ -0,0 +1,49 @@
/*
* Copyright 2010, The Android Open Source Project
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
* OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

#ifndef DeviceOrientation_h
#define DeviceOrientation_h

namespace WebCore {

class DeviceOrientationClient;
class Page;

class DeviceOrientation {
public:
DeviceOrientation(Page*, DeviceOrientationClient*);

// FIXME: Add methods to start and stop the service.

void onDeviceOrientationChange(double alpha, double beta, double gamma);

private:
Page* m_page;
DeviceOrientationClient* m_client;
};

} // namespace WebCore

#endif // DeviceOrientation_h
42 changes: 42 additions & 0 deletions WebCore/dom/DeviceOrientationClient.h
@@ -0,0 +1,42 @@
/*
* Copyright 2010, The Android Open Source Project
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
* OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

#ifndef DeviceOrientationClient_h
#define DeviceOrientationClient_h

namespace WebCore {

class DeviceOrientationClient {
public:
virtual void startUpdating() = 0;
virtual void stopUpdating() = 0;

protected:
virtual ~DeviceOrientationClient() {}
};

} // namespace WebCore

#endif // DeviceOrientationClient_h

0 comments on commit d13a40d

Please sign in to comment.