Title: [89458] trunk/Source/WebKit/efl
Revision
89458
Author
[email protected]
Date
2011-06-22 12:47:07 -0700 (Wed, 22 Jun 2011)

Log Message

2011-06-22  Ryuan Choi  <[email protected]>

        Reviewed by Antonio Gomes.

        [EFL] Add DeviceOrientationClientEfl and DeviceMotionClientEfl.
        https://bugs.webkit.org/show_bug.cgi?id=63125

        Add dummy files to build with ENABLE_DEVICE_ORIENTATION.

        * WebCoreSupport/DeviceMotionClientEfl.cpp: Added.
        (WebCore::DeviceMotionClientEfl::DeviceMotionClientEfl):
        (WebCore::DeviceMotionClientEfl::~DeviceMotionClientEfl):
        (WebCore::DeviceMotionClientEfl::deviceMotionControllerDestroyed):
        (WebCore::DeviceMotionClientEfl::setController):
        (WebCore::DeviceMotionClientEfl::startUpdating):
        (WebCore::DeviceMotionClientEfl::stopUpdating):
        (WebCore::DeviceMotionClientEfl::currentDeviceMotion):
        * WebCoreSupport/DeviceMotionClientEfl.h: Added.
        * WebCoreSupport/DeviceOrientationClientEfl.cpp: Added.
        (WebCore::DeviceOrientationClientEfl::DeviceOrientationClientEfl):
        (WebCore::DeviceOrientationClientEfl::~DeviceOrientationClientEfl):
        (WebCore::DeviceOrientationClientEfl::deviceOrientationControllerDestroyed):
        (WebCore::DeviceOrientationClientEfl::setController):
        (WebCore::DeviceOrientationClientEfl::startUpdating):
        (WebCore::DeviceOrientationClientEfl::stopUpdating):
        (WebCore::DeviceOrientationClientEfl::lastOrientation):
        * WebCoreSupport/DeviceOrientationClientEfl.h: Added.

Modified Paths

Added Paths

Diff

Modified: trunk/Source/WebKit/efl/ChangeLog (89457 => 89458)


--- trunk/Source/WebKit/efl/ChangeLog	2011-06-22 19:39:41 UTC (rev 89457)
+++ trunk/Source/WebKit/efl/ChangeLog	2011-06-22 19:47:07 UTC (rev 89458)
@@ -1,3 +1,31 @@
+2011-06-22  Ryuan Choi  <[email protected]>
+
+        Reviewed by Antonio Gomes.
+
+        [EFL] Add DeviceOrientationClientEfl and DeviceMotionClientEfl.
+        https://bugs.webkit.org/show_bug.cgi?id=63125
+
+        Add dummy files to build with ENABLE_DEVICE_ORIENTATION.
+
+        * WebCoreSupport/DeviceMotionClientEfl.cpp: Added.
+        (WebCore::DeviceMotionClientEfl::DeviceMotionClientEfl):
+        (WebCore::DeviceMotionClientEfl::~DeviceMotionClientEfl):
+        (WebCore::DeviceMotionClientEfl::deviceMotionControllerDestroyed):
+        (WebCore::DeviceMotionClientEfl::setController):
+        (WebCore::DeviceMotionClientEfl::startUpdating):
+        (WebCore::DeviceMotionClientEfl::stopUpdating):
+        (WebCore::DeviceMotionClientEfl::currentDeviceMotion):
+        * WebCoreSupport/DeviceMotionClientEfl.h: Added.
+        * WebCoreSupport/DeviceOrientationClientEfl.cpp: Added.
+        (WebCore::DeviceOrientationClientEfl::DeviceOrientationClientEfl):
+        (WebCore::DeviceOrientationClientEfl::~DeviceOrientationClientEfl):
+        (WebCore::DeviceOrientationClientEfl::deviceOrientationControllerDestroyed):
+        (WebCore::DeviceOrientationClientEfl::setController):
+        (WebCore::DeviceOrientationClientEfl::startUpdating):
+        (WebCore::DeviceOrientationClientEfl::stopUpdating):
+        (WebCore::DeviceOrientationClientEfl::lastOrientation):
+        * WebCoreSupport/DeviceOrientationClientEfl.h: Added.
+
 2011-06-20  Dimitri Glazkov  <[email protected]>
 
         Reviewed by Kent Tamura.

Added: trunk/Source/WebKit/efl/WebCoreSupport/DeviceMotionClientEfl.cpp (0 => 89458)


--- trunk/Source/WebKit/efl/WebCoreSupport/DeviceMotionClientEfl.cpp	                        (rev 0)
+++ trunk/Source/WebKit/efl/WebCoreSupport/DeviceMotionClientEfl.cpp	2011-06-22 19:47:07 UTC (rev 89458)
@@ -0,0 +1,72 @@
+/*
+ * Copyright (C) 2011 Samsung Electronics
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. 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 APPLE COMPUTER, INC. ``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 APPLE COMPUTER, INC. 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"
+
+#if ENABLE(DEVICE_ORIENTATION)
+#include "DeviceMotionClientEfl.h"
+
+#include "NotImplemented.h"
+
+namespace WebCore {
+
+DeviceMotionClientEfl::DeviceMotionClientEfl()
+{
+}
+
+DeviceMotionClientEfl::~DeviceMotionClientEfl()
+{
+}
+
+void DeviceMotionClientEfl::deviceMotionControllerDestroyed()
+{
+    delete this;
+}
+
+void DeviceMotionClientEfl::setController(DeviceMotionController* controller)
+{
+    m_controller = controller;
+}
+
+void DeviceMotionClientEfl::startUpdating()
+{
+    notImplemented();
+}
+
+void DeviceMotionClientEfl::stopUpdating()
+{
+    notImplemented();
+}
+
+DeviceMotionData* DeviceMotionClientEfl::currentDeviceMotion() const
+{
+    notImplemented();
+    return 0;
+}
+
+}
+#endif

Added: trunk/Source/WebKit/efl/WebCoreSupport/DeviceMotionClientEfl.h (0 => 89458)


--- trunk/Source/WebKit/efl/WebCoreSupport/DeviceMotionClientEfl.h	                        (rev 0)
+++ trunk/Source/WebKit/efl/WebCoreSupport/DeviceMotionClientEfl.h	2011-06-22 19:47:07 UTC (rev 89458)
@@ -0,0 +1,45 @@
+/*
+ * Copyright (C) 2011 Samsung Electronics
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public License
+ * along with this library; see the file COPYING.LIB.  If not, write to
+ * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
+ *
+ */
+#ifndef DeviceMotionClientEfl_h
+#define DeviceMotionClientEfl_h
+
+#include "DeviceMotionClient.h"
+#include "DeviceMotionData.h"
+
+namespace WebCore {
+
+class DeviceMotionClientEfl : public DeviceMotionClient {
+public:
+    DeviceMotionClientEfl();
+    virtual ~DeviceMotionClientEfl();
+
+    virtual void setController(DeviceMotionController*);
+    virtual void startUpdating();
+    virtual void stopUpdating();
+    virtual DeviceMotionData* currentDeviceMotion() const;
+    virtual void deviceMotionControllerDestroyed();
+
+private:
+    DeviceMotionController* m_controller;
+};
+
+} // namespece WebCore
+
+#endif // DeviceMotionClientEfl_h

Added: trunk/Source/WebKit/efl/WebCoreSupport/DeviceOrientationClientEfl.cpp (0 => 89458)


--- trunk/Source/WebKit/efl/WebCoreSupport/DeviceOrientationClientEfl.cpp	                        (rev 0)
+++ trunk/Source/WebKit/efl/WebCoreSupport/DeviceOrientationClientEfl.cpp	2011-06-22 19:47:07 UTC (rev 89458)
@@ -0,0 +1,72 @@
+/*
+ * Copyright (C) 2011 Samsung Electronics
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. 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 APPLE COMPUTER, INC. ``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 APPLE COMPUTER, INC. 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"
+
+#if ENABLE(DEVICE_ORIENTATION)
+#include "DeviceOrientationClientEfl.h"
+
+#include "NotImplemented.h"
+
+namespace WebCore {
+
+DeviceOrientationClientEfl::DeviceOrientationClientEfl()
+{
+}
+
+DeviceOrientationClientEfl::~DeviceOrientationClientEfl()
+{
+}
+
+void DeviceOrientationClientEfl::deviceOrientationControllerDestroyed()
+{
+    delete this;
+}
+
+void DeviceOrientationClientEfl::setController(DeviceOrientationController* controller)
+{
+    m_controller = controller;
+}
+
+void DeviceOrientationClientEfl::startUpdating()
+{
+    notImplemented();
+}
+
+void DeviceOrientationClientEfl::stopUpdating()
+{
+    notImplemented();
+}
+
+DeviceOrientation* DeviceOrientationClientEfl::lastOrientation() const
+{
+    notImplemented();
+    return 0;
+}
+
+}
+#endif

Added: trunk/Source/WebKit/efl/WebCoreSupport/DeviceOrientationClientEfl.h (0 => 89458)


--- trunk/Source/WebKit/efl/WebCoreSupport/DeviceOrientationClientEfl.h	                        (rev 0)
+++ trunk/Source/WebKit/efl/WebCoreSupport/DeviceOrientationClientEfl.h	2011-06-22 19:47:07 UTC (rev 89458)
@@ -0,0 +1,45 @@
+/*
+ * Copyright (C) 2011 Samsung Electronics
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public License
+ * along with this library; see the file COPYING.LIB.  If not, write to
+ * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
+ *
+ */
+#ifndef DeviceOrientationClientEfl_h
+#define DeviceOrientationClientEfl_h
+
+#include "DeviceOrientation.h"
+#include "DeviceOrientationClient.h"
+
+namespace WebCore {
+
+class DeviceOrientationClientEfl : public DeviceOrientationClient {
+public:
+    DeviceOrientationClientEfl();
+    virtual ~DeviceOrientationClientEfl();
+
+    virtual void setController(DeviceOrientationController*);
+    virtual void startUpdating();
+    virtual void stopUpdating();
+    virtual DeviceOrientation* lastOrientation() const;
+    virtual void deviceOrientationControllerDestroyed();
+
+private:
+    DeviceOrientationController* m_controller;
+};
+
+} // namespace WebCore
+
+#endif // DeviceOrientationClientEfl_h
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to